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

Improve lazy initialization of fields in java.net.URI

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b100
    • CPU:
      generic
    • OS:
      generic

      Description

      URI has a number of volatile fields that should be reconsidered. Either:

      - each accessor should avoid re-reading volatile fields on fast-path
      - if creating more than one String of each field is benign, consider making the fields non-volatile

        Attachments

          Activity

            People

            Assignee:
            redestad Claes Redestad
            Reporter:
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: