Re: Mark & Sweep functions - Garbage Collection

From: David Fox <fox_at_first.cs.nyu.edu>
Date: Fri, 11 Nov 94 16:56:40 -0500

If the C struct for your new type contains any SCM objects
you should call gc_mark on them in your gc_mark_fct, so the
garbage collector knows they are still in use. Otherwise,
the mark function doesn't have to do anything. The sweep
function should just deallocate any storage that was
allocated in order to create the object. I once put print
statements in my mark and sweep functions to verify they
were working, and then called (gc) from the STk command line.

I haven't used the is_procp function, so I won't venture a
guess as to what it does. Oh, heck, I'll venture a guess
that it determines what the scheme "procedure?" function
will return if you pass an object of your new type.
Received on Fri Nov 11 1994 - 22:57:44 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST