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


Browse files Browse the repository at this point in the history
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 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/
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

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.