RFR: 8253235: JFR.dump does not respect maxage parameter
Erik Gahlin
egahlin at openjdk.java.net
Mon Oct 19 13:49:14 UTC 2020
On Fri, 18 Sep 2020 10:15:55 GMT, Ekaterina Vergizova <github.com+71385633+kvergizova at openjdk.org> wrote:
> JFR.dump command creates a clone of the original recording, but maxage and maxsize parameters are not copied to the
> clone in PlatformRecording.newSnapshotClone(). When PlatformRecording.appendChunk() is called for the clone to append
> the latest data, trimToAge() and trimToSize() are not performed because maxAge and maxSize are not set. Therefore the
> clone sometimes dumps outdated chunks to the disk.
> Testing:
> jdk/jdk/jfr/*
Marked as reviewed by egahlin (Reviewer).
-------------
PR: https://git.openjdk.java.net/jdk/pull/239
More information about the hotspot-jfr-dev
mailing list