diff options
| -rw-r--r-- | test/604-hot-static-interface/hot_static_interface.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/604-hot-static-interface/hot_static_interface.cc b/test/604-hot-static-interface/hot_static_interface.cc index 9c51ca60ab..21beae8d65 100644 --- a/test/604-hot-static-interface/hot_static_interface.cc +++ b/test/604-hot-static-interface/hot_static_interface.cc @@ -50,6 +50,8 @@ extern "C" JNIEXPORT void JNICALL Java_Main_waitUntilJitted(JNIEnv* env, } else { // yield to scheduler to give time to the JIT compiler. sched_yield(); + // Will either ensure it's compiled or do the compilation itself. + jit->CompileMethod(method, Thread::Current(), /* osr */ false); } } } |