fixed logic bug for re-deoptimize condition in RestoreBackup (#59)

This commit is contained in:
葫芦娃 2023-11-22 17:57:39 +08:00 committed by GitHub
parent 7c732a7215
commit 439f38f48c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -80,7 +80,7 @@ private:
auto new_trampoline = art_method->GetEntryPoint();
art_method->SetEntryPoint(old_trampoline);
if (IsDeoptimized(art_method)) {
if (new_trampoline != art_quick_to_interpreter_bridge ||
if (new_trampoline != art_quick_to_interpreter_bridge &&
new_trampoline != art_quick_generic_jni_trampoline) {
LOGV("re-deoptimize for %p", art_method);
SetEntryPointsToInterpreter(art_method);