summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Treehugger Robot <treehugger-gerrit@google.com> 2016-06-08 09:22:39 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-06-08 09:22:39 +0000
commit616723f67e253c3eba8123029b45684e1f33454e (patch)
tree021276108f2a3036c3b01c1d5df261b31be57924
parent923b26fb78b1dfb0054aad39f9ff5d6546e4979c (diff)
parent10278804fb6aa8c3ca2b6705aa56f6a74bb9332c (diff)
Merge "Be pro-active into ensuring a method is JITted in test."
-rw-r--r--test/604-hot-static-interface/hot_static_interface.cc2
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);
}
}
}