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

Improve lazy initialization of fields in java.net.URI

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • None
    • core-libs
    • None
    • b100
    • generic
    • generic

      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

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

              Created:
              Updated:
              Resolved: