< prev index next >
test/compiler/rtm/locking/TestRTMDeoptOnLowAbortRatio.java
Print this page
@@ -46,11 +46,10 @@
import compiler.testlibrary.rtm.predicate.SupportedCPU;
import compiler.testlibrary.rtm.predicate.SupportedVM;
import jdk.internal.misc.Unsafe;
import jdk.test.lib.Asserts;
import jdk.test.lib.process.OutputAnalyzer;
-import jdk.test.lib.unsafe.UnsafeHelper;
import jdk.test.lib.cli.CommandLineOptionTest;
import jdk.test.lib.cli.predicate.AndPredicate;
import java.util.List;
@@ -131,11 +130,11 @@
"After LockThreshold was reached, method should be recompiled "
+ "with rtm lock eliding.");
}
public static class Test implements CompilableTest {
- private static final Unsafe UNSAFE = UnsafeHelper.getUnsafe();
+ private static final Unsafe UNSAFE = Unsafe.getUnsafe();
private final Object monitor = new Object();
@Override
public String getMethodWithLockName() {
return this.getClass().getName() + "::forceAbort";
< prev index next >