JDK-8224139 : Deprecate -XX:FlightRecorder option
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: jfr
  • Affected Version: 11,12,13
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-05-17
  • Updated: 2022-01-19
  • Resolved: 2019-06-07
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 13 JDK 14
13 b25Fixed 14Fixed
Related Reports
Blocks :  
CSR :  
Relates :  
Description
This option is no longer needed as of JDK 11. It prints a warning and does nothing

===================== globals.hpp still contains the declaration for this option:
JFR_ONLY(product(bool, FlightRecorder, false,                             \
         “Enable Flight Recorder”))        

(src/hotspot/share/runtime/globals.hpp)
Comments
URL: http://hg.openjdk.java.net/jdk/jdk/rev/0d44bf1ead37 User: egahlin Date: 2019-06-07 03:05:14 +0000
07-06-2019

JFR is disabled by default, you don't need to run -XX:-FlightRecorder to turn it off.
21-05-2019

There is a showstopper bug related to running JFR on JDK11 https://bugs.openjdk.java.net/browse/JDK-8220293 that causes the JVM to become non-responsive. The only work-around is to disable FlightRecorder using flag "-XX:-FlightRecorder" option. So the option must do something in JDK11 and it seems useful to be able to disable when it's causing problems.
20-05-2019