Re: Garbage collection of extended data types

From: Erick Gallesio <eg_at_kaolin.unice.fr>
Date: Mon, 02 Oct 1995 09:24:49 +0000

> David Fox writes
> I have some C++ structures that are used as extended scheme
> types from STk, and I use the mark and free functions to
> do garbage collection of them, however...
>
> Some of them are fairly complex, and during the marking phase
> I traverse them to find which ones are live. I even have a
> mark flag in them to reduce unnecessary traversals. Problem
> is, I don't know when the marking phase is over so I can reset
> my marks. Is there a way to tell? Should there be?
>

Normally, a structure should not be scaned twice, is it your case or is it due
to the complex nature of your extension?

BTW, I plan to add (soon) a way to assign a Scheme handler for each POSIX
signal
and for GC. The idea is to have a hook so that user can add code upon signal
reception (of course the notion of signal will be extended to the GC).
What people think of this, and what syntax would be more convenient?
 

                -- Erick
Received on Mon Oct 02 1995 - 09:27:38 CET

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