8230938: Deprecate MonitorBound
authordcubed
Fri, 13 Sep 2019 18:54:43 -0400
changeset 58130 ff0eae1719d0
parent 58128 88bbe06ab8d6
child 58131 3054503bad7d
8230938: Deprecate MonitorBound Reviewed-by: dholmes
src/hotspot/share/runtime/arguments.cpp
src/hotspot/share/runtime/globals.hpp
--- a/src/hotspot/share/runtime/arguments.cpp	Fri Sep 13 09:33:54 2019 -0700
+++ b/src/hotspot/share/runtime/arguments.cpp	Fri Sep 13 18:54:43 2019 -0400
@@ -539,6 +539,7 @@
   { "FlightRecorder",               JDK_Version::jdk(13), JDK_Version::undefined(), JDK_Version::undefined() },
   { "FieldsAllocationStyle",        JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
   { "CompactFields",                JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
+  { "MonitorBound",                 JDK_Version::jdk(14), JDK_Version::jdk(15), JDK_Version::jdk(16) },
 
   // --- 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	Fri Sep 13 09:33:54 2019 -0700
+++ b/src/hotspot/share/runtime/globals.hpp	Fri Sep 13 18:54:43 2019 -0400
@@ -713,7 +713,7 @@
           "Use LWP-based instead of libthread-based synchronization "       \
           "(SPARC only)")                                                   \
                                                                             \
-  product(intx, MonitorBound, 0, "Bound Monitor population")                \
+  product(intx, MonitorBound, 0, "(Deprecated) Bound Monitor population")   \
           range(0, max_jint)                                                \
                                                                             \
   experimental(intx, MonitorUsedDeflationThreshold, 90,                     \