diff --git a/src/hotspot/share/runtime/arguments.cpp b/src/hotspot/share/runtime/arguments.cpp index 024884dbdeb..db576fac181 100644 --- a/src/hotspot/share/runtime/arguments.cpp +++ b/src/hotspot/share/runtime/arguments.cpp @@ -514,6 +514,9 @@ static SpecialFlag const special_jvm_flags[] = { { "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 --git a/src/hotspot/share/runtime/globals.hpp b/src/hotspot/share/runtime/globals.hpp index bcf1c20afde..7b51409b9a9 100644 --- a/src/hotspot/share/runtime/globals.hpp +++ b/src/hotspot/share/runtime/globals.hpp @@ -2444,15 +2444,15 @@ public: "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 --git a/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java b/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java index 8bb564e2033..0c12ba03a4a 100644 --- a/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java +++ b/test/hotspot/jtreg/runtime/CommandLine/VMDeprecatedOptions.java @@ -48,6 +48,9 @@ public class VMDeprecatedOptions { {"UseMembar", "true"}, {"CompilerThreadHintNoPreempt", "true"}, {"VMThreadHintNoPreempt", "false"}, + {"PrintSafepointStatistics", "false"}, + {"PrintSafepointStatisticsCount", "3"}, + {"PrintSafepointStatisticsTimeout", "3"}, // deprecated alias flags (see also aliased_jvm_flags): {"DefaultMaxRAMFraction", "4"},