PipedOutputStream.flush() accesses sink racily

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 22
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: