Integrated: 8313768: Reduce interaction with volatile field in j.u.l.StreamHandler
Sergey Tsypanov
stsypanov at openjdk.org
Thu Aug 10 06:07:29 UTC 2023
On Fri, 4 Aug 2023 14:51:35 GMT, Sergey Tsypanov <stsypanov at openjdk.org> 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.
This pull request has now been integrated.
Changeset: c822183e
Author: Sergey Tsypanov <stsypanov at openjdk.org>
Committer: Jaikiran Pai <jpai at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c822183e98aa26f005338464f3946dcbf34802aa
Stats: 7 lines in 1 file changed: 6 ins; 1 del; 0 mod
8313768: Reduce interaction with volatile field in j.u.l.StreamHandler
Reviewed-by: dfuchs, jpai
-------------
PR: https://git.openjdk.org/jdk/pull/15161
More information about the core-libs-dev
mailing list