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

Improve thread safety of Runtime.version()

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: