chicken-users
[Top][All Lists]
Advanced

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

Re: [Chicken-users] (gc) == (gc #t)?


From: Graham Fawcett
Subject: Re: [Chicken-users] (gc) == (gc #t)?
Date: Thu, 23 Aug 2007 19:50:33 -0400

On 8/23/07, felix winkelmann <address@hidden> wrote:
> On 8/23/07, Graham Fawcett <address@hidden> wrote:
> > On my Chicken 2.5 instance, If one calls (gc) with no argument, a
> > minor GC is performed. The documentation on the wiki suggests that it
> > ought to perform a major GC, not a minor one. Is the documentation
> > incorrect, or is this a change in behaviour?
>
> The docs are right. Please create a ticket for this.

On review, my problem was a misinterpretation of the docs. The wiki
describes GC thus:

"Invokes a garbage-collection and returns the number of free bytes in
the heap. The flag specifies whether a minor (#f) or major (#t) GC is
to be triggered. If no argument is given, #t is assumed. When the
argument is #t, all pending finalizers are executed."

I concluded that, since #t is assumed if no argument is given,
therefore (gc) would execute the pending finalizers. (But that is not
the case; and because the finalizers didn't execute, I assumed a minor
GC had occurred.)

If there are no objections, I'll modify the wiki, so that the last
sentence reads, "An explicit #t argument will also cause all pending
finalizers to be executed."

Graham




reply via email to

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