Skip to content
Permalink
Browse files
8253235: JFR.dump does not respect maxage parameter
Reviewed-by: egahlin
  • Loading branch information
kvergizova authored and Vladimir Kempik committed Oct 19, 2020
1 parent cb7701b commit a0382cd17c125ac3f02aaefafa93844b051cc4a3
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java
@@ -331,6 +331,8 @@ public PlatformRecording newSnapshotClone(String reason, Boolean pathToGcRoots)
clone.setShouldWriteActiveRecordingEvent(false);
clone.setName(getName());
clone.setToDisk(true);
clone.setMaxAge(getMaxAge());
clone.setMaxSize(getMaxSize());
// We purposely don't clone settings here, since
// a union a == a
if (!isToDisk()) {

1 comment on commit a0382cd

@bridgekeeper

This comment has been minimized.

Copy link

@bridgekeeper bridgekeeper bot commented on a0382cd Oct 19, 2020

Please sign in to comment.