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

PipedOutputStream.flush() accesses sink racily

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 22
    • None
    • core-libs
    • None
    • b08

    Description

      Just a tiny clean-up to avoid reading the volatile value twice (a relatively expensive operation). As soon as we are within `synchronized` method we can read sink only once.

      Attachments

        Issue Links

          Activity

            People

              stsypanov Sergey Tsypanov
              stsypanov Sergey Tsypanov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: