< prev index next >

test/compiler/rtm/locking/TestRTMSpinLoopCount.java

Print this page
rev 11916 : 8165235: [TESTBUG] RTM tests must check OS version
Summary: Also change enabling RTM on Aix to OS version 7.2.

*** 43,52 **** --- 43,53 ---- import compiler.testlibrary.rtm.BusyLock; import compiler.testlibrary.rtm.CompilableTest; import compiler.testlibrary.rtm.RTMLockingStatistics; import compiler.testlibrary.rtm.RTMTestBase; import compiler.testlibrary.rtm.predicate.SupportedCPU; + import compiler.testlibrary.rtm.predicate.SupportedOS; import compiler.testlibrary.rtm.predicate.SupportedVM; import jdk.test.lib.Asserts; import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.cli.CommandLineOptionTest; import jdk.test.lib.cli.predicate.AndPredicate;
*** 64,74 **** private static final long MAX_ABORTS = RTM_RETRY_COUNT + 1L; private static final int[] SPIN_LOOP_COUNTS = new int[] { 0, 100, 1_000, 1_000_000, 10_000_000 }; private TestRTMSpinLoopCount() { ! super(new AndPredicate(new SupportedVM(), new SupportedCPU())); } @Override protected void runTestCases() throws Throwable { long[] aborts = new long[TestRTMSpinLoopCount.SPIN_LOOP_COUNTS.length]; --- 65,75 ---- private static final long MAX_ABORTS = RTM_RETRY_COUNT + 1L; private static final int[] SPIN_LOOP_COUNTS = new int[] { 0, 100, 1_000, 1_000_000, 10_000_000 }; private TestRTMSpinLoopCount() { ! super(new AndPredicate(new SupportedCPU(), new SupportedOS(), new SupportedVM())); } @Override protected void runTestCases() throws Throwable { long[] aborts = new long[TestRTMSpinLoopCount.SPIN_LOOP_COUNTS.length];
< prev index next >