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

Improve thread safety of Runtime.version()

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 17
    • 17
    • core-libs
    • None
    • b15

    Description

      As mentioned in this PR:
        https://github.com/openjdk/jdk/pull/2691

      Version has all final fields. But we also need to read it once, as to dodge/resolve the data race on reading the reference to it twice.

      Attachments

        Issue Links

          Activity

            People

              shade Aleksey Shipilev
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: