diff --git a/src/hotspot/share/code/nmethod.inline.hpp b/src/hotspot/share/code/nmethod.inline.hpp index 49af1e0b95f2f..1e556b6825099 100644 --- a/src/hotspot/share/code/nmethod.inline.hpp +++ b/src/hotspot/share/code/nmethod.inline.hpp @@ -33,21 +33,12 @@ inline bool nmethod::is_deopt_pc(address pc) { return is_deopt_entry(pc) || is_deopt_mh_entry(pc); } -// When using JVMCI the address might be off by the size of a call instruction. inline bool nmethod::is_deopt_entry(address pc) { - return pc == deopt_handler_begin() -#if INCLUDE_JVMCI - || (is_compiled_by_jvmci() && pc == (deopt_handler_begin() + NativeCall::byte_size())) -#endif - ; + return pc == deopt_handler_begin(); } inline bool nmethod::is_deopt_mh_entry(address pc) { - return pc == deopt_mh_handler_begin() -#if INCLUDE_JVMCI - || (is_compiled_by_jvmci() && pc == (deopt_mh_handler_begin() + NativeCall::byte_size())) -#endif - ; + return pc == deopt_mh_handler_begin(); } // class ExceptionCache methods