< prev index next >
src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.hotspot.test/src/org/graalvm/compiler/hotspot/test/HotSpotMethodSubstitutionTest.java
Print this page
@@ -132,33 +132,19 @@
}
@Test
public void testThreadSubstitutions() {
testGraph("currentThread");
- assertInGraph(testGraph("threadIsInterrupted", "isInterrupted", true), IfNode.class);
- assertInGraph(testGraph("threadInterrupted", "isInterrupted", true), IfNode.class);
-
Thread currentThread = Thread.currentThread();
test("currentThread", currentThread);
- test("threadIsInterrupted", currentThread);
}
@SuppressWarnings("all")
public static boolean currentThread(Thread other) {
return Thread.currentThread() == other;
}
- @SuppressWarnings("all")
- public static boolean threadIsInterrupted(Thread thread) {
- return thread.isInterrupted();
- }
-
- @SuppressWarnings("all")
- public static boolean threadInterrupted() {
- return Thread.interrupted();
- }
-
@Test
public void testSystemSubstitutions() {
testGraph("systemTime");
testGraph("systemIdentityHashCode");
< prev index next >