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

Lazy-init thread safety problems in core reflection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2
    • 9
    • None
    • core-libs
    • b42
    • generic
    • generic
    • Not verified

    Backports

      Description

        We need to sprinkle volatile (or in future find some better way of doing lazy-init) over some fields in core reflection that appear to be accessed via a data race. This adds to the sprinkling of "final" in the same classes in JDK-8062771 and coordinates with related fixes to jdk7u and jdk8u

        Webrev: http://cr.openjdk.java.net/~martin/webrevs/openjdk9/core-reflection-volatile/

        Attachments

          Issue Links

            Activity

              People

                martin Martin Buchholz
                martin Martin Buchholz
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: