Skip to content

Commit

Permalink
8253235: JFR.dump does not respect maxage parameter
Browse files Browse the repository at this point in the history
Reviewed-by: egahlin
  • Loading branch information
kvergizova authored and Vladimir Kempik committed Oct 19, 2020
1 parent cb7701b commit a0382cd
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -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()) {
Expand Down

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.