GC statistics (was Re: big project ported)

Tom Tromey tromey@cygnus.com
Thu Oct 28 15:41:00 GMT 1999


>>>>> "Hans" == Boehm, Hans <hboehm@exch.hpl.hp.com> writes:

Hans> Our collector does currently clear objects before allocation if
Hans> they are not known to be completely pointer-free to the
Hans> collector, and I believe they never are for gcj.  My guess is
Hans> that's a mistake for gcj, and the collector should be fixed to
Hans> accomodate gcj better.

We currently rely on the zeroing behavior.  We do this to properly
initialize some objects, eg arrays of references.  We used to have an
explicit memzero, but we removed it (as it was redundant) once we
discovered that the collector could do it for us.  (See _Jv_InitGC,
where we set "ok_init = TRUE" on each object kind we allocate.)

Tom



More information about the Java mailing list