# HG changeset patch # User coleenp # Date 1519845624 18000 # Node ID 5d1b75086f988358ff32bd01a7a31815b898f145 # Parent 8026f64901de3440e26d41f915cb2e3954b163c1 8191421: Deprecate PrintSafepointStatistics, PrintSafepointStatisticsTimeout and PrintSafepointStatisticsCount options Reviewed-by: dholmes, hseigel diff -r 8026f64901de -r 5d1b75086f98 src/hotspot/share/runtime/arguments.cpp --- a/src/hotspot/share/runtime/arguments.cpp Wed Feb 28 16:00:20 2018 +0100 +++ b/src/hotspot/share/runtime/arguments.cpp Wed Feb 28 14:20:24 2018 -0500 @@ -514,6 +514,9 @@ { "CheckEndorsedAndExtDirs", JDK_Version::jdk(10), JDK_Version::undefined(), JDK_Version::undefined() }, { "CompilerThreadHintNoPreempt", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) }, { "VMThreadHintNoPreempt", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) }, + { "PrintSafepointStatistics", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) }, + { "PrintSafepointStatisticsTimeout", JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) }, + { "PrintSafepointStatisticsCount",JDK_Version::jdk(11), JDK_Version::jdk(12), JDK_Version::jdk(13) }, // --- 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() }, diff -r 8026f64901de -r 5d1b75086f98 src/hotspot/share/runtime/globals.hpp --- a/src/hotspot/share/runtime/globals.hpp Wed Feb 28 16:00:20 2018 +0100 +++ b/src/hotspot/share/runtime/globals.hpp Wed Feb 28 14:20:24 2018 -0500 @@ -2444,15 +2444,15 @@ "ImplicitNullChecks don't work (PPC64).") \ \ product(bool, PrintSafepointStatistics, false, \ - "Print statistics about safepoint synchronization") \ + "(Deprecated) Print statistics about safepoint synchronization") \ \ product(intx, PrintSafepointStatisticsCount, 300, \ - "Total number of safepoint statistics collected " \ + "(Deprecated) Total number of safepoint statistics collected " \ "before printing them out") \ range(1, max_intx) \ \ product(intx, PrintSafepointStatisticsTimeout, -1, \ - "Print safepoint statistics only when safepoint takes " \ + "(Deprecated) Print safepoint statistics only when safepoint takes " \ "more than PrintSafepointSatisticsTimeout in millis") \ LP64_ONLY(range(-1, max_intx/MICROUNITS)) \ NOT_LP64(range(-1, max_intx)) \ diff -r 8026f64901de -r 5d1b75086f98 test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java --- a/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java Wed Feb 28 16:00:20 2018 +0100 +++ b/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java Wed Feb 28 14:20:24 2018 -0500 @@ -48,6 +48,9 @@ {"UseMembar", "true"}, {"CompilerThreadHintNoPreempt", "true"}, {"VMThreadHintNoPreempt", "false"}, + {"PrintSafepointStatistics", "false"}, + {"PrintSafepointStatisticsCount", "3"}, + {"PrintSafepointStatisticsTimeout", "3"}, // deprecated alias flags (see also aliased_jvm_flags): {"DefaultMaxRAMFraction", "4"},