diff -r 57ad70bcf06c -r 15936b142f86 src/hotspot/share/c1/c1_Runtime1.cpp --- a/src/hotspot/share/c1/c1_Runtime1.cpp Wed Nov 13 11:27:50 2019 +0000 +++ b/src/hotspot/share/c1/c1_Runtime1.cpp Wed Nov 13 08:23:23 2019 -0500 @@ -1422,7 +1422,7 @@ assert (nm != NULL, "no more nmethod?"); nm->make_not_entrant(); - methodHandle m(nm->method()); + methodHandle m(thread, nm->method()); MethodData* mdo = m->method_data(); if (mdo == NULL && !HAS_PENDING_EXCEPTION) { @@ -1443,7 +1443,7 @@ if (TracePredicateFailedTraps) { stringStream ss1, ss2; vframeStream vfst(thread); - methodHandle inlinee = methodHandle(vfst.method()); + Method* inlinee = vfst.method(); inlinee->print_short_name(&ss1); m->print_short_name(&ss2); tty->print_cr("Predicate failed trap in method %s at bci %d inlined in %s at pc " INTPTR_FORMAT, ss1.as_string(), vfst.bci(), ss2.as_string(), p2i(caller_frame.pc()));