RFR: 8373096: JFR: Path-to-gc-roots search should be non-recursive [v3]
Thomas Stuefe
stuefe at openjdk.org
Thu Jan 29 11:04:04 UTC 2026
On Wed, 28 Jan 2026 20:36:34 GMT, Erik Gahlin <egahlin at openjdk.org> wrote:
>> Thomas Stuefe has updated the pull request incrementally with one additional commit since the last revision:
>>
>> dont incremement _num_objects_processed for follow-up chunks
>
> test/jdk/jdk/jfr/jcmd/TestJcmdDumpPathToGCRootsDFSBase.java line 67:
>
>> 65: File recording = new File(jfrFileName + r.getId() + ".jfr");
>> 66: recording.delete();
>> 67: JcmdHelper.jcmd("JFR.dump", "name=dodo", pathToGcRoots, "filename=" + recording.getAbsolutePath());
>
> Why do we need to do this using jcmd?
Hmm, I just followed the same approach as `TestJcmdDumpPathToGCRoots`. I guess the alternative would be to start a child process JVM with -XX:StartFlightRecording dumponexit=true?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29382#discussion_r2741088293
More information about the hotspot-dev
mailing list