src/hotspot/share/code/vtableStubs.cpp
changeset 57745 789e967c2731
parent 54960 e46fe26d7f77
child 57779 0a8407a78a2f
equal deleted inserted replaced
57739:6717d7e59db4 57745:789e967c2731
   232                       is_vtable_stub? "vtbl": "itbl", vtable_index, p2i(VtableStub::receiver_location()));
   232                       is_vtable_stub? "vtbl": "itbl", vtable_index, p2i(VtableStub::receiver_location()));
   233         Disassembler::decode(s->code_begin(), s->code_end());
   233         Disassembler::decode(s->code_begin(), s->code_end());
   234       }
   234       }
   235       // Notify JVMTI about this stub. The event will be recorded by the enclosing
   235       // Notify JVMTI about this stub. The event will be recorded by the enclosing
   236       // JvmtiDynamicCodeEventCollector and posted when this thread has released
   236       // JvmtiDynamicCodeEventCollector and posted when this thread has released
   237       // all locks.
   237       // all locks. Only post this event if a new state is not required. Creating a new state would
       
   238       // cause a safepoint and the caller of this code has a NoSafepointVerifier.
   238       if (JvmtiExport::should_post_dynamic_code_generated()) {
   239       if (JvmtiExport::should_post_dynamic_code_generated()) {
   239         JvmtiExport::post_dynamic_code_generated_while_holding_locks(is_vtable_stub? "vtable stub": "itable stub",
   240         JvmtiExport::post_dynamic_code_generated_while_holding_locks(is_vtable_stub? "vtable stub": "itable stub",
   240                                                                      s->code_begin(), s->code_end());
   241                                                                      s->code_begin(), s->code_end());
   241       }
   242       }
   242     }
   243     }