Heap Usage in Cacao

The following is a short list of all the places where Cacao allocates memory regions on the heap. It contains the source-file and the line of code which calls the allocator.

Heap can contain the following collectable structures:

These objects are known to the GarbageCollector and should be collected. Once considered dead, the memory will be set free automatically.

Uncollectable regions of the Heap acting as root set:

Unappropriate use of Heap:

These calls are specific to the BoehmGC and unapproptiate for the new GarbageCollector.

{i} This strange GCNEW was added by twisti IIRC in order to trigger some Boehm setup code. It is Boehm-specific, so do not worry about it.

Unknown use of Heap:

Hmm, what do these do? One never knows!

{i} The one above is JVMTI related. Probably this line was written by Martin. I see no particular reason to use the heap here. Could be changed, or turned into a proper java array, if it needs to be on the heap (classinfos are valid java objects).

cacaowiki: HeapUsage (last edited 2006-11-21 17:00:29 by MichaelStarzinger)