mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-05 05:56:38 +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();
|
auto new_trampoline = art_method->GetEntryPoint();
|
||||||
art_method->SetEntryPoint(old_trampoline);
|
art_method->SetEntryPoint(old_trampoline);
|
||||||
if (IsDeoptimized(art_method)) {
|
if (IsDeoptimized(art_method)) {
|
||||||
if (new_trampoline != old_trampoline) [[unlikely]] {
|
if (new_trampoline != art_quick_to_interpreter_bridge ||
|
||||||
LOGV("prevent deoptimized method %s from being overwritten",
|
new_trampoline != art_quick_generic_jni_trampoline) {
|
||||||
art_method->PrettyMethod(true).data());
|
LOGV("re-deoptimize for %s", art_method->PrettyMethod(true).data());
|
||||||
|
SetEntryPointsToInterpreter(art_method);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user