RFR(S): 8198337: -XX:StartFlightRecording=dumponexit=true, disk=false doesn't work

Markus Gronlund markus.gronlund at oracle.com
Thu May 17 20:41:17 UTC 2018


Hi Erik,

Looks good, great to have this fixed.

Markus

-----Original Message-----
From: Erik Gahlin 
Sent: den 17 maj 2018 20:42
To: hotspot-jfr-dev at openjdk.java.net
Subject: RFR(S): 8198337: -XX:StartFlightRecording=dumponexit=true, disk=false doesn't work

Hi,

Could I please have a review of this fix.

Problem is that a recording file is not written when the JVM exits, if the user starts it up with -XX:StartFlightRecording:dumponexit=true,disk=false.

This is because data is dumped directly from memory to file, bypassing the disk repository, which means the generated filename is not used. If the user specify a filename, or disk=true (which is default), this doesn't happen.

Bug:
https://bugs.openjdk.java.net/browse/JDK-8198337

Webrev:
http://cr.openjdk.java.net/~egahlin/8198337.1/

Testing:
Added a test case and ran existing tests in test/jdk/jdk/jfr.

Will fix typo before checking in ("recoding" -> "recording")

Thanks
Erik



More information about the hotspot-jfr-dev mailing list