--- old/src/hotspot/share/runtime/sharedRuntime.cpp 2019-06-25 22:41:27.294997163 -0700 +++ new/src/hotspot/share/runtime/sharedRuntime.cpp 2019-06-25 22:41:26.938984122 -0700 @@ -1964,8 +1964,6 @@ JRT_LEAF(void, SharedRuntime::fixup_callers_callsite(Method* method, address caller_pc)) Method* moop(method); - address entry_point = moop->from_compiled_entry_no_trampoline(); - // It's possible that deoptimization can occur at a call site which hasn't // been resolved yet, in which case this function will be called from // an nmethod that has been patched for deopt and we can ignore the @@ -1977,7 +1975,11 @@ // ask me how I know this... CodeBlob* cb = CodeCache::find_blob(caller_pc); - if (cb == NULL || !cb->is_compiled() || entry_point == moop->get_c2i_entry()) { + if (cb == NULL || !cb->is_compiled()) { + return; + } + address entry_point = moop->from_compiled_entry_no_trampoline(cb->is_compiled_by_c1()); + if (entry_point == moop->get_c2i_entry()) { return; }