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

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


This patch is a follow-up fix for

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:

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jdk10hs.patch
Type: text/x-patch
Size: 970 bytes
Desc: not available
URL: <>

More information about the hotspot-gc-dev mailing list