summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2020-10-08 20:27:22 +0100
committer Nicolas Geoffray <ngeoffray@google.com> 2020-10-09 09:51:10 +0000
commit2e299f4d0eb8e2fd432c98b83f3f3c6ddd09c0f5 (patch)
tree48104981e48944597421d26fd3180d5384ccc1a0
parent4f0e8daf7ed79c0712c0fd927c8ad2c903c15773 (diff)
Handle nterp when precompiling with JIT zygote.
Test: test.py Test: app startup with JIT zygote Bug: 169773857 Change-Id: I3e68e5e0dd276fd7fe11e435be0ce906bdca2a6c
-rw-r--r--runtime/jit/jit.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/jit/jit.cc b/runtime/jit/jit.cc
index f8ec005e47..3a68f39dab 100644
--- a/runtime/jit/jit.cc
+++ b/runtime/jit/jit.cc
@@ -1329,6 +1329,7 @@ bool Jit::CompileMethodFromProfile(Thread* self,
const void* entry_point = method->GetEntryPointFromQuickCompiledCode();
if (class_linker->IsQuickToInterpreterBridge(entry_point) ||
class_linker->IsQuickGenericJniStub(entry_point) ||
+ (entry_point == interpreter::GetNterpEntryPoint()) ||
// We explicitly check for the stub. The trampoline is for methods backed by
// a .oat file that has a compiled version of the method.
(entry_point == GetQuickResolutionStub())) {