RFR: 8271949: dumppath in -XX:FlightRecorderOptions does not affect
Denghui Dong
ddong at openjdk.java.net
Mon Aug 30 06:58:28 UTC 2021
On Mon, 30 Aug 2021 06:41:15 GMT, Yasumasa Suenaga <ysuenaga at openjdk.org> wrote:
>> src/jdk.jfr/share/classes/jdk/jfr/internal/Options.java line 51:
>>
>>> 49: private static final boolean DEFAULT_SAMPLE_THREADS = true;
>>> 50: private static final long DEFAULT_MAX_CHUNK_SIZE = 12 * 1024 * 1024;
>>> 51: private static final SafePath DEFAULT_DUMP_PATH = new SafePath(".");
>>
>> Why do need to change DEFAULT_DUMP_PATH here?
>
> Emergency dump will be dumped on current work directory now. This default value does not effect. So I changed it to current behavior, and it is nature because other dumps (hs_err, cireplay) are also dumped on current directory.
Make sense, I think we could remove `SecuritySupport.USER_HOME` since no place uses it now.
-------------
PR: https://git.openjdk.java.net/jdk/pull/5019
More information about the hotspot-jfr-dev
mailing list