On Sat, Feb 8, 2020 at 4:23 PM David Kastrup <d...@gnu.org> wrote:

>
> > Does this already solve your needs?
>

I found a way, using pthread_create.  Unfortunately, it's doesn't really
work, because there is no way to discover the size of the live set.



> > Jonas
>
> It's worth pointing out that almost _all_ of our Scheme-level
> allocations are routed through the Smob_core class, so doing the heap
> extension _there_ when one passes there next should be workable.


I'd rather not, that path is somewhat hot. But you do give me an idea now:
I could use the smob count as a proxy for the size of the heap, which is
what I wanted all along.


> While
> the code certainly does allocate non-Smob SCM objects a lot as well (by
> calling things like scm_cons), the smobbed ones should be worked often
> enough that extending the heap then should not cause too much churn.
>
> --
> David Kastrup
>


-- 
Han-Wen Nienhuys - hanw...@gmail.com - http://www.xs4all.nl/~hanwen

Reply via email to