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

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

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: