# HG changeset patch # User thartmann # Date 1414511079 -3600 # Node ID 5f970b31939c2431a27dd388eb79b51735dc5eb8 # Parent c148f9c9fd4f9bb44d78d9922ee71a61a65d72a0 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 diff -r c148f9c9fd4f -r 5f970b31939c hotspot/test/TEST.groups --- 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 \ diff -r c148f9c9fd4f -r 5f970b31939c hotspot/test/compiler/codecache/CheckSegmentedCodeCache.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");