This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Porting Boehm-gc to embedded m68k environment


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.





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]