[Openmcl-devel] question about manual garbage collection

David L. Rager ragerdl at cs.utexas.edu
Thu Jun 7 13:11:39 PDT 2012


Hi,

Indeed, calling ccl:gc is the way to manually trigger the CCL garbage collector.

If you're interested in configuring the way that automatic garbage
collection occurs, you might look into the details of the Ephemeral
Garbage Collector (EGC):
http://ccl.clozure.com/manual/chapter16.2.html

You can do things like disable the EGC:
(ccl:egc nil)

I think it's also possible to set the thresholds for each generation,
but I don't have any example forms handy for that.

David



On Thu, Jun 7, 2012 at 3:00 PM, Robert Goldman <rpgoldman at sift.info> wrote:
> On 6/7/12 Jun 7 -2:57 PM, Faheem Mitha wrote:
>>
>> Hi,
>>
>> SBCL lets one collect garbage manually, if I understand the
>> documentation correctly, with
>>
>> (gc :full t)
>>
>> CCL accepts (gc) but not (gc :full t), and it does collect garbage,
>> though the heap in CCL never seems to get very large. However, I could
>> not find any documentation for the 'gc' function, at least not in the
>> manual.
>>
>> So, what is the correct way to collect garbage manually for CCL? If it
>> is not (gc) then is the fact that (gc) works just an accident? I'd
>> appreciate a clarification of this point. Please CC me on any reply.
>
> I haven't tested it fully, but perhaps you would find the
> TRIVIAL-GARBAGE library helpful.  It provides an
> implementation-independent API to control of garbage collection.
>
> cheers,
> r
>
> _______________________________________________
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
> http://clozure.com/mailman/listinfo/openmcl-devel



More information about the Openmcl-devel mailing list