[fpc-devel] Boehm garbage collector for freepascal
Michael Schnell
mschnell at lumino.de
Wed Nov 17 10:01:35 CET 2010
On 11/15/2010 02:04 PM, Thaddy wrote: ...
If you want to extend a compiler to allow for garbage collection, would
it not be appropriate to have it manage an additional type of variables
that is supposed to be "garbage collection enabled" pointers and have it
always create double indirect accesses to this type of variables. The
"garbage collection enabled memory allocator" would manage a list of
these variables and see that the value of the pointer is an entry in
this list that again is a pointer to the instance. Now that garbage
collector can do it's work without the user program knowing about this.
Of course there are lots of issues regarding maybe excessive latency
when the garbage collector is running (and thus the main program is in a
hold-off) and with threads ,,,
-Michael
More information about the fpc-devel
mailing list