--- old/src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java 2019-03-15 17:43:19.378214184 +0900 +++ new/src/jdk.jfr/share/classes/jdk/jfr/internal/PlatformRecording.java 2019-03-15 17:43:19.138216342 +0900 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2016, 2019, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -57,6 +57,8 @@ public final class PlatformRecording implements AutoCloseable { + public static final String REASON_DUMPED_BY_USER = "Dumped by user"; + private final PlatformRecorder recorder; private final long id; // Recording settings @@ -160,7 +162,7 @@ this.stopTime = Instant.now(); newState = getState(); } - WriteableUserPath dest = getDestination(); + WriteableUserPath dest = reason.equals(REASON_DUMPED_BY_USER) ? null : getDestination(); if (dest != null) { try {