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 1 changed file with 2 additions and 0 deletions.
@@ -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
Copy link

@bridgekeeper bridgekeeper bot commented on a0382cd Oct 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.