mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-04 20:42:02 +08:00
Redeoptimize when class initialized
This commit is contained in:
parent
65a276ff91
commit
d5a057b025
@ -70,9 +70,10 @@ private:
|
||||
auto new_trampoline = art_method->GetEntryPoint();
|
||||
art_method->SetEntryPoint(old_trampoline);
|
||||
if (IsDeoptimized(art_method)) {
|
||||
if (new_trampoline != old_trampoline) [[unlikely]] {
|
||||
LOGV("prevent deoptimized method %s from being overwritten",
|
||||
art_method->PrettyMethod(true).data());
|
||||
if (new_trampoline != art_quick_to_interpreter_bridge ||
|
||||
new_trampoline != art_quick_generic_jni_trampoline) {
|
||||
LOGV("re-deoptimize for %s", art_method->PrettyMethod(true).data());
|
||||
SetEntryPointsToInterpreter(art_method);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user