Skip to content

Commit 5598792

Browse files
committed
8351064: JFR: Consistent timestamps
Reviewed-by: mgronlun
1 parent fe806ca commit 5598792

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/jdk.jfr/share/classes/jdk/jfr/internal/consumer/ChunkParser.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,11 @@ private ChunkParser(ChunkHeader header, ChunkParser previous, ParserConfiguratio
127127
this.configuration = previous.configuration;
128128
}
129129
this.metadata = header.readMetadata(previousMetadata);
130-
this.timeConverter = new TimeConverter(chunkHeader, metadata.getGMTOffset() + metadata.getDST());
130+
if (previous == null) {
131+
this.timeConverter = new TimeConverter(chunkHeader, metadata.getGMTOffset() + metadata.getDST());
132+
} else {
133+
this.timeConverter = previous.timeConverter;
134+
}
131135
if (metadata != previousMetadata) {
132136
ParserFactory factory = new ParserFactory(metadata, constantLookups, timeConverter);
133137
parsers = factory.getParsers();

0 commit comments

Comments
 (0)