changeset 27431:5f970b31939c

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
author thartmann
date Tue, 28 Oct 2014 16:44:39 +0100
parents c148f9c9fd4f
children 45b98fbc138b
files hotspot/test/TEST.groups hotspot/test/compiler/codecache/CheckSegmentedCodeCache.java
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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");