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

Class initialization deadlock in java.lang.constant

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • 15.0.2, 16
    • 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>

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

              Created:
              Updated:
              Resolved: