Make reserved_size for compressed class space and metaspace respect the ergo-initialized CompressedClassSpaceSize flag value

Man Cao manc at google.com
Wed Nov 29 23:21:05 UTC 2017


Hello,

This patch is a follow-up fix for
https://bugs.openjdk.java.net/browse/JDK-8087291

This patch moves the call to set_compressed_class_space_size() after the
flag value for CompressedClassSpaceSize is ergo-initialized, fixing the
issue that the reserved size for compressed class space and metaspace is
excessively large when MaxMetaspaceSize is set to a small value. More
discussion about it is available here:
http://mail.openjdk.java.net/pipermail/hotspot-runtime-dev/2017-November/025200.html

This code patch is attached. Could anyone review and/or sponsor this patch?

Best,
Man
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20171129/0f288e44/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jdk10hs.patch
Type: text/x-patch
Size: 970 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20171129/0f288e44/jdk10hs.patch>


More information about the hotspot-gc-dev mailing list