--- old/src/hotspot/share/memory/metaspace.cpp 2017-12-08 18:42:48.960285998 -0800 +++ new/src/hotspot/share/memory/metaspace.cpp 2017-12-08 18:42:48.600288972 -0800 @@ -3322,7 +3322,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 = @@ -3341,6 +3340,7 @@ min_metaspace_sz); } + set_compressed_class_space_size(CompressedClassSpaceSize); } void Metaspace::global_initialize() {