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

Concurrent class unloading with JVMTI

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 12, 13, 14
    • Fix Version/s: None
    • Component/s: hotspot
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: