guile-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: managing external memory


From: Kevin Ryde
Subject: Re: managing external memory
Date: Tue, 10 Aug 2004 10:37:26 +1000
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux)

Tom Schouten <address@hidden> writes:
>
> obviously i'm doing something terribly wrong, so i wondered if there is a
> way to tell the gc how much 'external memory' a smob refers to, without
> changing the way the memory allocation in libpdp works.

In 1.6, scm_done_malloc and scm_done_free can tell the gc how much is
in use.  Those funcs don't actually do any malloc or free, they just
let the gc keep score of how much is in use.  When it gets above a
threshold a gc is run to try to reduce.

But these funcs aren't actually documented, and in the cvs head I
think they're changing to scm_gc_register_collectable_memory and
scm_gc_unregister_collectable_memory.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]