mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-06 08:28:27 +00:00
8062250: [TESTBUG] compiler/codecache/CheckSegmentedCodeCache.java fails after CodeCacheMinimumFreeSpace removal
Adapted calculation of minimum code cache size after CodeCacheMinimumFreeSpace was removed by JDK-8046809. Reviewed-by: kvn, anoll
This commit is contained in:
parent
1e7b7a410e
commit
1c866d8433
@ -444,6 +444,7 @@ hotspot_compiler_3 = \
|
||||
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 \
|
||||
|
||||
@ -139,9 +139,8 @@ public class CheckSegmentedCodeCache {
|
||||
|
||||
// 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");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user