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

Avoid holding Compile_lock when blocking for GC in ObjArrayKlass::allocate_objArray_klass()

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 12
    • Fix Version/s: 12
    • Component/s: hotspot
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b21

      Description

      In ObjArrayKlass::allocate_objArray_klass(), the Compile_lock is held when performing an allocation, which might need to blockingly wait for GC.
      However, with concurrent class unloading, the GC needs to hold this lock during certain paths while unloading. That causes a deadlock.

        Attachments

          Activity

            People

            Assignee:
            eosterlund Erik Ă–sterlund
            Reporter:
            eosterlund Erik Ă–sterlund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: