mirror of
https://github.com/LSPosed/LSPlant.git
synced 2025-05-05 05:56:38 +08:00
Fix crash when logging uninitialized methods
This commit is contained in:
parent
d55d96929a
commit
79f2f13517
@ -82,14 +82,14 @@ private:
|
|||||||
if (IsDeoptimized(art_method)) {
|
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) {
|
new_trampoline != art_quick_generic_jni_trampoline) {
|
||||||
LOGV("re-deoptimize for %s", art_method->PrettyMethod(true).data());
|
LOGV("re-deoptimize for %p", art_method);
|
||||||
SetEntryPointsToInterpreter(art_method);
|
SetEntryPointsToInterpreter(art_method);
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (auto backup_method = IsHooked(art_method); backup_method) [[likely]] {
|
if (auto backup_method = IsHooked(art_method); backup_method) [[likely]] {
|
||||||
if (new_trampoline != old_trampoline) [[unlikely]] {
|
if (new_trampoline != old_trampoline) [[unlikely]] {
|
||||||
LOGV("propagate entrypoint for %s", backup_method->PrettyMethod(true).data());
|
LOGV("propagate entrypoint for %p", backup_method);
|
||||||
backup_method->SetEntryPoint(new_trampoline);
|
backup_method->SetEntryPoint(new_trampoline);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user