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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 12
    • 12
    • hotspot
    • None
    • b21

      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.

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

              Created:
              Updated:
              Resolved: