Request for review - 7197557

Jon Masamitsu jon.masamitsu at
Mon Sep 17 03:09:10 UTC 2012

NPG: nsk/sysdict/vm/stress/chain/chain004 hangs intermittently

The code that was doing a GC to find dead class loaders so that metadata
could be freed does not correctly account for GC_locker activity (i.e., use
of JNI critical sections which stall GC).  Added code to recognize if
a GC_locker is active and expand the Metaspace and allocate out of the
expanded area.  If the expansion cannot provide metadata, wait for
the GC_locker to inactivate so that a GC can be done.

Note that there are three places in the different GC's that need to
account for GC_locker activity.  I am investigating whether this
code can be unified.

More information about the hotspot-gc-dev mailing list