Skip to content

Commit c85c9ad

Browse files
jiekangegahlin
authored andcommitted
8255992: JFR EventWriter does not use first string from StringPool with id 0
Reviewed-by: egahlin
1 parent c5fe2c1 commit c85c9ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jdk.jfr/share/classes/jdk/jfr/internal/StringPool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ private static boolean getCurrentEpoch() {
4949
}
5050
private static class SimpleStringIdPool {
5151
/* string id index */
52-
private final AtomicLong sidIdx = new AtomicLong();
52+
private final AtomicLong sidIdx = new AtomicLong(1);
5353
/* epoch of cached strings */
5454
private boolean poolEpoch;
5555
/* the cache */

0 commit comments

Comments
 (0)