Enhanced branch prediction

This commit is contained in:
kotori0 2020-12-20 17:08:29 +08:00
parent 17b8a60b4b
commit c9a49d0566
1 changed files with 1 additions and 1 deletions

View File

@ -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
}