8193386: CompressedClassSize too large with MaxMetaspace
Reviewed-by: ysuenaga, coleenp
Contributed-by: manc@google.com
--- a/src/hotspot/share/memory/metaspace.cpp Sat Dec 09 07:50:50 2017 -0800
+++ b/src/hotspot/share/memory/metaspace.cpp Tue Dec 12 11:55:57 2017 -0500
@@ -3695,7 +3695,6 @@
MaxMetaspaceExpansion = align_down_bounded(MaxMetaspaceExpansion, _commit_alignment);
CompressedClassSpaceSize = align_down_bounded(CompressedClassSpaceSize, _reserve_alignment);
- set_compressed_class_space_size(CompressedClassSpaceSize);
// Initial virtual space size will be calculated at global_initialize()
size_t min_metaspace_sz =
@@ -3714,6 +3713,7 @@
min_metaspace_sz);
}
+ set_compressed_class_space_size(CompressedClassSpaceSize);
}
void Metaspace::global_initialize() {