Re: A non-sucking garbage collector

"Mark Hahn" <[email protected]> Sat, 17 Jul 2004 18:36:33 -0700
Newsgroups gmane.comp.lang.prothon.user
Message-ID <[email protected]>
I've gotten carried away and started implementing the new GC.  It's easier
to change my code than I thought.

I've also made a major improvement.  I never have to copy data from the
proxy back to the real object.  Now the new copy is the new real object.
The old version is just a saved version for the purpose of the mark pass and
it destroys the old copies (frees memory) as it goes through the mark pass.
This is much more time and space efficient.

This turns out to be almost identical behavior to the standard garbage
collector generational copying techniques.  You copy objects to new
locations in order to free up sections of memory left behind.  So I am more
confident than ever that this will be a smooth running scheme.

I am hoping now that when I do this copying, it can be intelligent and part
of the generation copying algorithm also.

This is getting quite exciting.