[kaffe] gc patch
hkraemer at freenet.de
Thu Jun 12 01:18:01 PDT 2003
I've attached a small patch to kaffe's gc and would like to
hear your opinions before commiting it.
On the one hand, it provides for a cleaner seperation between
heap management and garbage collection. Therefore, it moves any
logic how one could free some memory out of gc_heap_malloc into
gcMalloc. Second, gc_system_alloc is renamed to gc_heap_grow and
exported so that gcMalloc can call it.
On the other hand, it contains some bugfixes. The memory that's
allocated by the heap manager is no longer aligned at a hard coded
8 byte boundary, but rather at a ALIGNMENT_OF_SIZE(sizeof(jdouble))
boundary. Second, the initialization of a block in gc_small_block
was somewhat wrong (think that's what's causing the SIGBUS on
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the kaffe