Review request (S) JDK-8004241 NPG: Metaspace occupies more memory than specified by -XX:MaxMetaspaceSize option

Mikael Gerdin mikael.gerdin at oracle.com
Thu Mar 21 00:52:55 PDT 2013


John,

On 03/20/2013 05:30 PM, John Cuthbertson wrote:
> Hi Mikael,
>
> Your change looks good to me.

Thanks for taking a look at this.
I'm all set to push this change now.

/Mikael

>
> Cheers,
>
> JohnC
>
> On 3/7/2013 12:54 AM, Mikael Gerdin wrote:
>> Hi
>>
>>
>> When deciding when to reserve more metaspace memory we erroneously
>> looked only at the "capacity" of the metaspace insted of the reserved
>> space (which is what we ask this function when expanding).
>>
>> Additionally, we didn't check MaxMetaspaceSize against the sum of
>> reserved(Class) + reserved(NonClass) which caused us to use more than
>> MaxMetaspaceSize even when it was set.
>>
>> Bug:
>> http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=8004241
>> (not yet available at the time of writing this mail)
>>
>> Webrev:
>> http://cr.openjdk.java.net/~mgerdin/8004241/webrev.0
>>
>> Testing:
>> JPRT with -XX:MaxMetaspaceSize set for all tests to exercise the code
>> path.
>



More information about the hotspot-gc-dev mailing list