The problem with the D GC

Lutger lutger.blijdestijn at gmail.com
Tue Jan 9 04:29:17 PST 2007


Luís Marques wrote:
> Sean Kelly wrote:
>> It's a modified version of the DMD GC.  The "don't scan blocks 
>> containing elements smaller than pointer size" feature is built-in, 
>> and there is user-level control of that behavior on a per-block basis, 
>> among other things.  But it's still the same old mark/sweep GC at heart.
> 
> Does the new GC allow setting a hook to be informed of when a given 
> object was collected? (I need that)
> 
> Luís

This is possible with these functions in Object:
final void notifyRegister(void delegate(Object) dg);
final void notifyUnRegister(void delegate(Object) dg);



More information about the Digitalmars-d mailing list