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

PipedOutputStream.flush() accesses sink racily

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: