8224139: Deprecate -XX:FlightRecorder option
authoregahlin
Fri, 07 Jun 2019 04:57:51 +0200
changeset 55277 0d44bf1ead37
parent 55276 5a5f83da57eb
child 55278 9772d90df0d0
8224139: Deprecate -XX:FlightRecorder option Reviewed-by: mgronlun, mseledtsov
src/hotspot/share/runtime/arguments.cpp
src/hotspot/share/runtime/globals.hpp
--- a/src/hotspot/share/runtime/arguments.cpp	Thu Jun 06 18:57:28 2019 -0700
+++ b/src/hotspot/share/runtime/arguments.cpp	Fri Jun 07 04:57:51 2019 +0200
@@ -537,6 +537,7 @@
   { "AllowJNIEnvProxy",             JDK_Version::jdk(13), JDK_Version::jdk(14), JDK_Version::jdk(15) },
   { "ThreadLocalHandshakes",        JDK_Version::jdk(13), JDK_Version::jdk(14), JDK_Version::jdk(15) },
   { "AllowRedefinitionToAddDeleteMethods", JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
+  { "FlightRecorder",               JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
 
   // --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
   { "DefaultMaxRAMFraction",        JDK_Version::jdk(8),  JDK_Version::undefined(), JDK_Version::undefined() },
--- a/src/hotspot/share/runtime/globals.hpp	Thu Jun 06 18:57:28 2019 -0700
+++ b/src/hotspot/share/runtime/globals.hpp	Fri Jun 07 04:57:51 2019 +0200
@@ -2455,7 +2455,7 @@
           "leverage profiling for table/lookup switch")                     \
                                                                             \
   JFR_ONLY(product(bool, FlightRecorder, false,                             \
-          "Enable Flight Recorder"))                                        \
+          "(Deprecated) Enable Flight Recorder"))                                        \
                                                                             \
   JFR_ONLY(product(ccstr, FlightRecorderOptions, NULL,                      \
           "Flight Recorder options"))                                       \