1.1 --- a/test/compiler/rtm/locking/TestRTMAbortRatio.java Thu Apr 30 11:47:53 2015 -0700 1.2 +++ b/test/compiler/rtm/locking/TestRTMAbortRatio.java Thu Apr 30 12:06:39 2015 -0700 1.3 @@ -126,10 +126,7 @@ 1.4 1.5 @Override 1.6 public String[] getMethodsToCompileNames() { 1.7 - return new String[] { 1.8 - getMethodWithLockName(), 1.9 - Unsafe.class.getName() + "::addressSize" 1.10 - }; 1.11 + return new String[] { getMethodWithLockName() }; 1.12 } 1.13 1.14 public void lock(boolean abort) { 1.15 @@ -147,10 +144,12 @@ 1.16 public static void main(String args[]) throws Throwable { 1.17 Asserts.assertGTE(args.length, 1, "One argument required."); 1.18 Test t = new Test(); 1.19 - if (Boolean.valueOf(args[0])) { 1.20 + boolean shouldBeInflated = Boolean.valueOf(args[0]); 1.21 + if (shouldBeInflated) { 1.22 AbortProvoker.inflateMonitor(t.monitor); 1.23 } 1.24 for (int i = 0; i < Test.TOTAL_ITERATIONS; i++) { 1.25 + AbortProvoker.verifyMonitorState(t.monitor, shouldBeInflated); 1.26 t.lock(i >= Test.WARMUP_ITERATIONS); 1.27 } 1.28 }