commit | 10278804fb6aa8c3ca2b6705aa56f6a74bb9332c | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Wed Jun 08 09:18:38 2016 +0100 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Wed Jun 08 09:18:38 2016 +0100 |
tree | 021276108f2a3036c3b01c1d5df261b31be57924 | |
parent | 923b26fb78b1dfb0054aad39f9ff5d6546e4979c [diff] |
Be pro-active into ensuring a method is JITted in test. Change-Id: I27d7bb76178478e6153e87a076bb39a4dc61f50b
diff --git a/test/604-hot-static-interface/hot_static_interface.cc b/test/604-hot-static-interface/hot_static_interface.cc index 9c51ca6..21beae8 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 @@ } 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); } } }