RFR: 8025313: MetaspaceMemoryPool incorrectly reports undefined size for max

Jesper Wilhelmsson jesper.wilhelmsson at oracle.com
Mon Sep 30 08:47:10 PDT 2013


Looks good!

I added a comment about this dependency in JDK-8024137. We should fix that at 
some point.
/Jesper


Erik Helin skrev 30/9/13 5:20 PM:
> Hi all,
>
> this patch fixes an issue where the metaspace memory pool reports -1 for
> MemoryPoolMXBean.getUsage().getMax(), even though the user has set
> MaxMetaspaceSize on the command line.
>
> The problem is that we in collectorPolicy.cpp use FLAG_SET_ERGO when
> aligning MaxMetaspaceSize while at the same time relying on
> FLAG_IS_CMDLINE in memoryPool.cpp when deciding what to return for
> MetaspacePool::calculate_max_size.
>
> This patch removes FLAG_SET_ERGO and instead simply sets
> MaxMetaspaceSize.
>
> Webrev:
> http://cr.openjdk.java.net/~ehelin/8025313/webrev.00/
>
> Bug:
> https://bugs.openjdk.java.net/browse/JDK-8025313
>
> Thanks,
> Erik
>


More information about the hotspot-gc-dev mailing list