Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.
/ jdk15u-dev Public archive

Commit

Permalink
8255992: JFR EventWriter does not use first string from StringPool wi…
Browse files Browse the repository at this point in the history
…th id 0

Backport-of: c85c9ad1f1b1b7aa358c587b654a2030927a65a8
  • Loading branch information
Ekaterina Vergizova committed Jun 4, 2021
1 parent 92f434e commit f77ca30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jdk.jfr/share/classes/jdk/jfr/internal/StringPool.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

1 comment on commit f77ca30

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.