chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] Multiple concurrent top levels?


From: John Cowan
Subject: Re: [Chicken-users] Multiple concurrent top levels?
Date: Sat, 3 Aug 2013 10:35:43 -0400
User-agent: Mutt/1.5.20 (2009-06-14)

Dan Leslie scripsit:

> Oh, how much control over the GC does Chibi grant you?

If we confine ourselves to the presently documented API, there are only
two calls: one to increment the reference count of an object and one
to decrement it.  An object with a non-zero reference count will never
be reclaimed by the garbage collector, though its home heap can still
be destroyed.

The undocumented call sexp_gc(sexp ctx, size_t *sum) will invoke garbage
collection on the heap pointed to by ctx, setting *sum to the number of
cells freed unless sum is NULL.  (This is a no-op if you are using the
conservative BDW collector, which is inherently global to the process.)

-- 
Clear?  Huh!  Why a four-year-old child         John Cowan
could understand this report.  Run out          address@hidden
and find me a four-year-old child.  I           http://www.ccil.org/~cowan
can't make head or tail out of it.
        --Rufus T. Firefly on government reports



reply via email to

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