[jdk17u-dev] RFR: 8301842: JFR: increase checkpoint event size for stacktrace and string pool

Ekaterina Vergizova evergizova at openjdk.org
Wed Feb 15 12:38:53 UTC 2023


On Tue, 14 Feb 2023 19:40:49 GMT, Ekaterina Vergizova <evergizova at openjdk.org> wrote:

> I'd like to backport JDK-8301842 as a small follow up fix for JDK-8298129 which is already included in 17u.
> The patch applies cleanly.
> Tested with tier1 and jdk/jfr.

I successfully opened new .jfr files with JMC 7.0.0.
As I can see it reads checkpoint size as readInt(): 
https://hg.openjdk.java.net/jmc/jmc7/file/63ec7d0ee8d9/core/org.openjdk.jmc.flightrecorder/src/main/java/org/openjdk/jmc/flightrecorder/internal/parser/v1/ChunkLoaderV1.java#l100
and readInt() calls readCompressedLong(): 
https://hg.openjdk.java.net/jmc/jmc7/file/63ec7d0ee8d9/core/org.openjdk.jmc.flightrecorder/src/main/java/org/openjdk/jmc/flightrecorder/internal/parser/v1/SeekableInputStream.java#l236

So it still works for u4 sized events.

-------------

PR: https://git.openjdk.org/jdk17u-dev/pull/1173


More information about the jdk-updates-dev mailing list