Skip to content
Permalink
Browse files
8255992: JFR EventWriter does not use first string from StringPool wi…
…th id 0

Backport-of: c85c9ad1f1b1b7aa358c587b654a2030927a65a8
  • Loading branch information
Ekaterina Vergizova committed Jun 4, 2021
1 parent 92f434e commit f77ca300bb5c6c45de6b27a63d9cb2da37d70c2b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/jdk.jfr/share/classes/jdk/jfr/internal/StringPool.java
@@ -49,7 +49,7 @@ private static boolean getCurrentEpoch() {
}
private static class SimpleStringIdPool {
/* string id index */
private final AtomicLong sidIdx = new AtomicLong();
private final AtomicLong sidIdx = new AtomicLong(1);
/* epoch of cached strings */
private boolean poolEpoch;
/* the cache */

1 comment on commit f77ca30

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on f77ca30 Jun 4, 2021

Please sign in to comment.