8334299: Deprecate LockingMode option, along with LM_LEGACY and LM_MONITOR

Reviewed-by: stuefe, dholmes
This commit is contained in:
Coleen Phillimore 2024-06-24 12:37:53 +00:00
parent 2e64d15144
commit 5ac2149b7b
3 changed files with 5 additions and 3 deletions

View File

@ -505,6 +505,7 @@ static SpecialFlag const special_jvm_flags[] = {
{ "DontYieldALot", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
{ "PreserveAllAnnotations", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
{ "UseNotificationThread", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
{ "LockingMode", JDK_Version::jdk(24), JDK_Version::jdk(26), JDK_Version::jdk(27) },
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
{ "CreateMinidumpOnCrash", JDK_Version::jdk(9), JDK_Version::undefined(), JDK_Version::undefined() },

View File

@ -1957,9 +1957,9 @@ const int ObjectAlignmentInBytes = 8;
"fence. Add cleanliness checks.") \
\
product(int, LockingMode, LM_LIGHTWEIGHT, \
"Select locking mode: " \
"0: monitors only (LM_MONITOR), " \
"1: monitors & legacy stack-locking (LM_LEGACY), " \
"(Deprecated) Select locking mode: " \
"0: (Deprecated) monitors only (LM_MONITOR), " \
"1: (Deprecated) monitors & legacy stack-locking (LM_LEGACY), " \
"2: monitors & new lightweight locking (LM_LIGHTWEIGHT, default)") \
range(0, 2) \
\

View File

@ -58,6 +58,7 @@ public class VMDeprecatedOptions {
// deprecated non-alias flags:
{"AllowRedefinitionToAddDeleteMethods", "true"},
{"ZGenerational", "false"},
{"LockingMode", "1"},
// deprecated alias flags (see also aliased_jvm_flags):
{"CreateMinidumpOnCrash", "false"}