diff options
Diffstat (limited to 'test/common/runtime_state.cc')
| -rw-r--r-- | test/common/runtime_state.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/common/runtime_state.cc b/test/common/runtime_state.cc index 4c22bd16e9..7a2943cb3c 100644 --- a/test/common/runtime_state.cc +++ b/test/common/runtime_state.cc @@ -173,11 +173,8 @@ extern "C" JNIEXPORT jboolean JNICALL Java_Main_isAotCompiled(JNIEnv* env, if (oat_code == nullptr) { return false; } - const void* actual_code = method->GetEntryPointFromQuickCompiledCodePtrSize(kRuntimePointerSize); - bool interpreter = - Runtime::Current()->GetClassLinker()->ShouldUseInterpreterEntrypoint(method, actual_code) || - (actual_code == interpreter::GetNterpEntryPoint()); - return !interpreter; + const void* actual_code = Runtime::Current()->GetInstrumentation()->GetCodeForInvoke(method); + return actual_code == oat_code; } static ArtMethod* GetMethod(ScopedObjectAccess& soa, jclass cls, const ScopedUtfChars& chars) |