src/hotspot/share/code/vtableStubs.cpp
changeset 57745 789e967c2731
parent 54960 e46fe26d7f77
child 57779 0a8407a78a2f
--- a/src/hotspot/share/code/vtableStubs.cpp	Wed Aug 14 11:14:54 2019 +0100
+++ b/src/hotspot/share/code/vtableStubs.cpp	Wed Aug 14 10:07:00 2019 -0400
@@ -234,7 +234,8 @@
       }
       // Notify JVMTI about this stub. The event will be recorded by the enclosing
       // JvmtiDynamicCodeEventCollector and posted when this thread has released
-      // all locks.
+      // all locks. Only post this event if a new state is not required. Creating a new state would
+      // cause a safepoint and the caller of this code has a NoSafepointVerifier.
       if (JvmtiExport::should_post_dynamic_code_generated()) {
         JvmtiExport::post_dynamic_code_generated_while_holding_locks(is_vtable_stub? "vtable stub": "itable stub",
                                                                      s->code_begin(), s->code_end());