guile-user
[Top][All Lists]
Advanced

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

Re: managing external memory


From: Tom Schouten
Subject: Re: managing external memory
Date: Tue, 10 Aug 2004 21:00:51 +0200 (CEST)


On Tue, 10 Aug 2004, Kevin Ryde wrote:

> 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.
>

that worked like a charm! thanks.

in case anyone needs a guiled up image processing tool, just call :)

tom





reply via email to

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