Avoid prttymethod during SetStatus

It may crash
This commit is contained in:
LoveSy 2022-10-29 15:08:27 +08:00
parent a67f36b695
commit 0b0b69a07c
No known key found for this signature in database

View File

@ -42,8 +42,7 @@ private:
[[unlikely]] { [[unlikely]] {
for (auto method : found->second) { for (auto method : found->second) {
if (method->IsStatic()) { if (method->IsStatic()) {
LOGV("Backup hooked method %s because of initialization", LOGV("Backup hooked method %p because of initialization", method);
method->PrettyMethod(true).data());
out.emplace_back(method, method->GetEntryPoint()); out.emplace_back(method, method->GetEntryPoint());
} }
} }
@ -55,8 +54,7 @@ private:
found != deoptimized_classes_.end()) [[unlikely]] { found != deoptimized_classes_.end()) [[unlikely]] {
for (auto method : found->second) { for (auto method : found->second) {
if (method->IsStatic()) { if (method->IsStatic()) {
LOGV("Backup deoptimized method %s because of initialization", LOGV("Backup deoptimized method %p because of initialization", method);
method->PrettyMethod(true).data());
out.emplace_back(method, method->GetEntryPoint()); out.emplace_back(method, method->GetEntryPoint());
} }
} }