@@ -795,7 +795,7 @@ JRT_ENTRY(void, Runtime1::deoptimize(JavaThread* current, jint trap_request))
795795 Deoptimization::DeoptReason reason = Deoptimization::trap_request_reason(trap_request);
796796
797797 if (action == Deoptimization::Action_make_not_entrant) {
798- if (nm->make_not_entrant ()) {
798+ if (nm->make_not_entrant (" C1 deoptimize " )) {
799799 if (reason == Deoptimization::Reason_tenured) {
800800 MethodData* trap_mdo = Deoptimization::get_method_data (current, method, true /* create_if_missing*/ );
801801 if (trap_mdo != nullptr ) {
@@ -1087,7 +1087,7 @@ JRT_ENTRY(void, Runtime1::patch_code(JavaThread* current, C1StubId stub_id ))
10871087 // safepoint, but if it's still alive then make it not_entrant.
10881088 nmethod* nm = CodeCache::find_nmethod (caller_frame.pc ());
10891089 if (nm != nullptr ) {
1090- nm->make_not_entrant ();
1090+ nm->make_not_entrant (" C1 code patch " );
10911091 }
10921092
10931093 Deoptimization::deoptimize_frame (current, caller_frame.id ());
@@ -1335,7 +1335,7 @@ void Runtime1::patch_code(JavaThread* current, C1StubId stub_id) {
13351335 // Make sure the nmethod is invalidated, i.e. made not entrant.
13361336 nmethod* nm = CodeCache::find_nmethod (caller_frame.pc ());
13371337 if (nm != nullptr ) {
1338- nm->make_not_entrant ();
1338+ nm->make_not_entrant (" C1 deoptimize for patching " );
13391339 }
13401340 }
13411341
@@ -1463,7 +1463,7 @@ JRT_ENTRY(void, Runtime1::predicate_failed_trap(JavaThread* current))
14631463
14641464 nmethod* nm = CodeCache::find_nmethod(caller_frame.pc());
14651465 assert (nm != nullptr , " no more nmethod?" );
1466- nm->make_not_entrant ();
1466+ nm->make_not_entrant (" C1 predicate failed trap " );
14671467
14681468 methodHandle m (current, nm->method ());
14691469 MethodData* mdo = m->method_data ();
0 commit comments