Re: Mark & Sweep functions - Garbage Collection

From: Erick Gallesio <eg_at_kaolin.unice.fr>
Date: Tue, 22 Nov 1994 14:12:27 +0000

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

No more to add.

Everything will be described in the 2.2 (you know the one which will be out
soon :-> ). I'm trying to work on STk now but it is hard to find time for now.
In
fact, STk is ported on different OS and it takes time to integerate things
which should work on machine that you can't access.

The paper decribing how to extend STk is awaited by numerous people and I have
started to work on it such that I can diffuse it soon (eventually before 2.2).

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

You win! It exactly it's purpose.


                -- Erick
Received on Tue Nov 22 1994 - 14:12:28 CET

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