From 056d7756152bb3ced81dd57781be5028428ce2bd Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 30 Nov 2017 09:12:13 +0000 Subject: Revert "Revert "Revert "JIT JNI stubs.""" Still seeing occasional failures on 667-jit-jni-stub Bug: 65574695 Bug: 69843562 This reverts commit e7441631a11e2e07ce863255a59ee4de29c6a56f. Change-Id: I3db751679ef7bdf31c933208aaffe4fac749a14b --- test/655-jit-clinit/src/Main.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/655-jit-clinit/src/Main.java') diff --git a/test/655-jit-clinit/src/Main.java b/test/655-jit-clinit/src/Main.java index 2fb8f2a86e..44b315478f 100644 --- a/test/655-jit-clinit/src/Main.java +++ b/test/655-jit-clinit/src/Main.java @@ -23,7 +23,7 @@ public class Main { Foo.hotMethod(); } - public native static boolean hasJitCompiledEntrypoint(Class cls, String methodName); + public native static boolean isJitCompiled(Class cls, String methodName); private native static boolean hasJit(); } @@ -36,7 +36,7 @@ class Foo { static { array = new Object[10000]; - while (!Main.hasJitCompiledEntrypoint(Foo.class, "hotMethod")) { + while (!Main.isJitCompiled(Foo.class, "hotMethod")) { Foo.hotMethod(); try { // Sleep to give a chance for the JIT to compile `hotMethod`. -- cgit v1.2.3-59-g8ed1b