From c9a49d0566c8687a31005a0371ecf61703460fff Mon Sep 17 00:00:00 2001 From: kotori0 Date: Sun, 20 Dec 2020 17:08:29 +0800 Subject: [PATCH] Enhanced branch prediction --- edxp-core/src/main/cpp/main/include/art/runtime/art_method.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edxp-core/src/main/cpp/main/include/art/runtime/art_method.h b/edxp-core/src/main/cpp/main/include/art/runtime/art_method.h index fe828236..49e5a146 100644 --- a/edxp-core/src/main/cpp/main/include/art/runtime/art_method.h +++ b/edxp-core/src/main/cpp/main/include/art/runtime/art_method.h @@ -28,7 +28,7 @@ namespace art { CREATE_HOOK_STUB_ENTRIES(uint32_t, ToDexPc, void** frame, const uintptr_t pc, bool abort_on_failure) { void* method = *frame; - if (LIKELY(edxp::isHooked(method))) { + if (UNLIKELY(edxp::isHooked(method))) { LOGD("art_method::ToDexPc: Method %p is hooked, return kDexNoIndex", method); return 0xFFFFFFFF; // kDexNoIndex }