RFR(XS): 8037958: ConcurrentMark::cleanup leaks BitMaps if VerifyDuringGC is enabled

Mikael Gerdin mikael.gerdin at oracle.com
Wed Mar 26 09:54:03 UTC 2014


Thanks Stefan{K,J} for the reviews.

I plan to push this now.
/Mikael

On Tuesday 25 March 2014 16.08.25 Stefan Johansson wrote:
> Looks good to me too.
> 
> Stefan
> 
> On 2014-03-21 10:33, Mikael Gerdin wrote:
> > Hi all,
> > 
> > While attempting to track down a memory leak I noticed that G1 leaks two
> > BitMap instances per concurrent cycle if VerifyDuringGC is enabled.
> > 
> > BitMap's destructor does not free the backing store because BitMaps are
> > commonly passed by value. My suggested fix allocates these BitMaps on the
> > VMThread's resource area (VMOperation::evaluate has a ResourceMark).
> > 
> > Bug: https://bugs.openjdk.java.net/browse/JDK-8037958
> > Webrev: http://cr.openjdk.java.net/~mgerdin/8037958/webrev.0
> > 
> > /Mikael




More information about the hotspot-gc-dev mailing list