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

Improve lazy initialization of fields in java.net.URI

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 9
    • None
    • core-libs
    • None
    • b100
    • generic
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: