Porting Boehm-gc to embedded m68k environment

David Daney ddaney@avtrex.com
Wed Nov 5 06:05:00 GMT 2003


John Neil wrote:

>3.  Why do the Jv_realloc and Jv_malloc functions in prims.cc us
>realloc/malloc directly rather than the corresponding GC function's
>GC_malloc/GC_alloc.  Is this for efficiency reasons, to reduce the amount of
>memory the GC has to scan during a collection.
>
Jv_malloc et. al. are used to allocate non-garbage-collected memory.  So by definition you cannot used GCed memory for this.

They are used by the parts of the runtime need to explicitly manage their own memory.  The support for soft and weak references uses it.  And there are surely other parts of the runtime that need it as well.

David Daney.






More information about the Java mailing list