Why does GC need zap unused heap area?
Y. Srinivas Ramakrishna
Y.S.Ramakrishna at Sun.COM
Sun Jun 28 22:40:37 PDT 2009
It's just a debugging aid, an indicator that a specific portion of the
not yet been allocated to a Java object. It happens when space is
first initialized into the heap (at initialization and space expansion)
and then when newly freed space is identified by GC at the end of
a collection (cycle). As you would have found, in product mode such
"zapping" is not done.
Colin(Du Li) wrote:
> Hi, guys,
> I have a question about GC.
> Why does GC need fill the unused heap area with "badHeapWordVal"
> And when does this happen?
> Du Li
More information about the hotspot-dev