8193386: CompressedClassSize too large with MaxMetaspace
authorcoleenp
Tue, 12 Dec 2017 11:55:57 -0500
changeset 48387 7daebcef2e0d
parent 48385 589a6f1d86e9
child 48388 a576e1b6784d
8193386: CompressedClassSize too large with MaxMetaspace Reviewed-by: ysuenaga, coleenp Contributed-by: manc@google.com
src/hotspot/share/memory/metaspace.cpp
--- 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() {