Skip to content

Commit a0382cd

Browse files
kvergizovaVladimir Kempik
authored andcommitted
8253235: JFR.dump does not respect maxage parameter
Reviewed-by: egahlin
1 parent cb7701b commit a0382cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,8 @@ public PlatformRecording newSnapshotClone(String reason, Boolean pathToGcRoots)
331331
clone.setShouldWriteActiveRecordingEvent(false);
332332
clone.setName(getName());
333333
clone.setToDisk(true);
334+
clone.setMaxAge(getMaxAge());
335+
clone.setMaxSize(getMaxSize());
334336
// We purposely don't clone settings here, since
335337
// a union a == a
336338
if (!isToDisk()) {

0 commit comments

Comments
 (0)