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

Class initialization deadlock in java.lang.constant

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 17
    • 15.0.2, 16
    • core-libs
    • None
    • b15
    • generic
    • generic

    Description

      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>

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: