Integrated: 8259354 Fix race condition in AbstractEventStream.nextThreadName
Carter Kozak
github.com+3854321+carterkozak at openjdk.java.net
Thu Jan 7 06:13:57 UTC 2021
On Tue, 22 Dec 2020 21:11:33 GMT, Carter Kozak <github.com+3854321+carterkozak at openjdk.org> wrote:
> The result of `AtomicLong.incrementAndGet()` is used rather than
> incrementing the long and reading its value separately. The
> previous approach allowed for the static counter to be incremented
> several times before any caller read the value, resulting in
> several callers with the same value.
This pull request has now been integrated.
Changeset: 81c06242
Author: Carter Kozak <ckozak at ckozak.net>
Committer: Erik Gahlin <egahlin at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/81c06242
Stats: 2 lines in 1 file changed: 0 ins; 1 del; 1 mod
8259354: Fix race condition in AbstractEventStream.nextThreadName
Reviewed-by: egahlin
-------------
PR: https://git.openjdk.java.net/jdk/pull/1871
More information about the hotspot-jfr-dev
mailing list