Class initialization deadlock in java.lang.constant

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: 15.0.2, 16
    • Component/s: core-libs
    • None
    • b15
    • generic
    • generic

      The various classes in the java.lang.constant package have cyclic dependencies. This can lead to deadlocks when multiple threads initialize classes from these packages concurrently.

      The attached reproducer class deadlocks very reliably for me.

      The cycle is between ConstantDescs.<clinit> and DynamicConstantDesc.<clinit>

            Assignee:
            Jaikiran Pai
            Reporter:
            Christian Wimmer (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: