8062250: [TESTBUG] compiler/codecache/CheckSegmentedCodeCache.java fails after CodeCacheMinimumFreeSpace removal
Summary: Adapted calculation of minimum code cache size after CodeCacheMinimumFreeSpace was removed by JDK-8046809.
Reviewed-by: kvn, anoll
--- a/hotspot/test/TEST.groups Tue Oct 28 09:17:36 2014 +0100
+++ b/hotspot/test/TEST.groups Tue Oct 28 16:44:39 2014 +0100
@@ -444,6 +444,7 @@
compiler/arraycopy/TestMissingControl.java \
compiler/ciReplay/TestVM_no_comp_level.sh \
compiler/classUnloading/anonymousClass/TestAnonymousClassUnloading.java \
+ compiler/codecache/CheckSegmentedCodeCache.java \
compiler/codecache/CheckUpperLimit.java \
compiler/codegen/ \
compiler/cpuflags/RestoreMXCSR.java \
--- a/hotspot/test/compiler/codecache/CheckSegmentedCodeCache.java Tue Oct 28 09:17:36 2014 +0100
+++ b/hotspot/test/compiler/codecache/CheckSegmentedCodeCache.java Tue Oct 28 16:44:39 2014 +0100
@@ -139,9 +139,8 @@
// Fails if not enough space for VM internal code
long minUseSpace = WHITE_BOX.getUintxVMFlag("CodeCacheMinimumUseSpace");
- long minFreeSpace = WHITE_BOX.getUintxVMFlag("CodeCacheMinimumFreeSpace");
- // minimum size: (CodeCacheMinimumUseSpace DEBUG_ONLY(* 3)) + CodeCacheMinimumFreeSpace
- long minSize = (Platform.isDebugBuild() ? 3 : 1) * minUseSpace + minFreeSpace;
+ // minimum size: CodeCacheMinimumUseSpace DEBUG_ONLY(* 3)
+ long minSize = (Platform.isDebugBuild() ? 3 : 1) * minUseSpace;
pb = ProcessTools.createJavaProcessBuilder("-XX:+SegmentedCodeCache",
"-XX:ReservedCodeCacheSize=" + minSize,
"-XX:InitialCodeCacheSize=100K");