Improve thread safety of Runtime.version()

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 17
    • Affects Version/s: 17
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: