Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8232091

Concurrent class unloading with JVMTI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 12, 13, 14
    • hotspot
    • None

      In hotspot/share/prims/jvmtiExport.cpp, method JvmtiExport::post_class_unload:

      We have this code:

      assert(thread->is_VM_thread(), "wrong thread");

      // get JavaThread for whom we are proxy
      Thread *calling_thread = ((VMThread *)thread)>vm_operation()>calling_thread();
      if (!calling_thread->is_Java_thread())

      { // cannot post an event to a non-JavaThread return; }

       

      It seems problematic if we would try to post outside a safepoint.

            coleenp Coleen Phillimore
            rehn Robbin Ehn
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: