diff --git a/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/AbstractEventStream.java b/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/AbstractEventStream.java index 3d78b43a218..cc1c691cc81 100644 --- a/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/AbstractEventStream.java +++ b/src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/AbstractEventStream.java @@ -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