On Fri, 4 Aug 2023 14:51:35 GMT, Sergey Tsypanov wrote:
> 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.
The change looks fine to me.
On Fri, 4 Aug 2023 14:51:35 GMT, Sergey Tsypanov wrote:
> 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.
LGTM
-
Marked as
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.
-
Commit messages:
- 8313768: Reduce interaction with volatile field in j.u.l.Str