Skip to content
This repository was archived by the owner on Sep 2, 2022. It is now read-only.
/ jdk16 Public archive

8257621: JFR StringPool misses cached items across consecutive recordings #18

Closed
wants to merge 8 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/jdk.jfr/share/classes/jdk/jfr/internal/StringPool.java
Original file line number Diff line number Diff line change
@@ -65,7 +65,9 @@ private static class SimpleStringIdPool {

private void reset() {
this.cache.clear();
this.currentSizeUTF16 = 0;
synchronized(SimpleStringIdPool.class) {
this.currentSizeUTF16 = 0;
}
}

private long addString(String s) {