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

Reduce interaction with volatile field in j.u.l.StreamHandler

    XMLWordPrintable

Details

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

    Description

      In publish0(), flush0() and flushAndClose() methods of StreamHandler we read multiple times from volatile writer. The access number can be reduced by reading the field into local variable 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: