8259354: Fix race condition in AbstractEventStream.nextThreadName

Reviewed-by: egahlin
This commit is contained in:
Carter Kozak 2021-01-07 06:11:32 +00:00 committed by Erik Gahlin
parent 227f99d394
commit 81c0624286

View File

@ -276,8 +276,7 @@ public abstract class AbstractEventStream implements EventStream {
}
private String nextThreadName() {
counter.incrementAndGet();
return "JFR Event Stream " + counter;
return "JFR Event Stream " + counter.incrementAndGet();
}
@Override