[Aldor-l] Garbage collector

Pippijn van Steenhoven pip88nl at gmail.com
Tue Dec 25 19:41:13 EST 2007


On Thu, Dec 20, 2007 at 10:01:08AM -0500, Jacques Carette wrote:
>> I wonder if it would be a
>> good idea to make the GC optional (core code can free the memory it
>> uses) and minimise its use within the compiler.
>>   
> If the GC takes that much time while running the compiler, my guess is 
> you'd need a machine with many many Gigabytes of memory to run the compiler 
> without the GC enabled.  At least that is what I have seen in similar 
> languages.

Well, no.. not many many Gigabytes. In fact, 2.7MiB suffice to compile and run
hello world on an AMD64 platform. Interesting images suddenly become visible:
http://pip.one09.net/files/up/x.png
By the way, I was moaning at the memory errors in Aldor earlier and the exact
source is the GC:

        for (pp = lo; ptrLT(pp, hi0);
             pp = (Pointer *) ptrOff((char *) pp, alignof(Pointer))) {
                p = *pp;

                /* Verify pointer is into heap. */
                if (!isInHeap(p)) continue; // (!)

The error occurs at the line marked with (!). I don't know the code well
enough yet to be able to say whether it is an actual error or whether this is
fine. It does look a bit awkward but it may be perfectly okay. I will be gone
for two weeks by 5:30Z. Have fun chasing bugs in my absence :-)

-- 
Pippijn van Steenhoven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.aldor.org/pipermail/aldor-l_aldor.org/attachments/20071226/3eb42d62/attachment.bin 


More information about the Aldor-l mailing list