changeset 48658:7daebcef2e0d

8193386: CompressedClassSize too large with MaxMetaspace Reviewed-by: ysuenaga, coleenp Contributed-by: manc@google.com
author coleenp
date Tue, 12 Dec 2017 11:55:57 -0500
parents 589a6f1d86e9
children a576e1b6784d
files src/hotspot/share/memory/metaspace.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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() {