8331021: Deprecate and then obsolete the DontYieldALot flag

Reviewed-by: coleenp, stuefe, shade
This commit is contained in:
David Holmes 2024-04-30 06:53:16 +00:00
parent 819f3d6fc7
commit b128bd7b5a
3 changed files with 3 additions and 4 deletions

View File

@ -501,6 +501,7 @@ static SpecialFlag const special_jvm_flags[] = {
{ "RequireSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
{ "UseSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
{ "RegisterFinalizersAtInit", JDK_Version::jdk(22), JDK_Version::jdk(23), JDK_Version::jdk(24) },
{ "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) },
{ "UseEmptySlotsInSupers", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },

View File

@ -698,7 +698,7 @@ const int ObjectAlignmentInBytes = 8;
"registering as parallel capable") \
\
product_pd(bool, DontYieldALot, \
"Throw away obvious excess yield calls") \
"(Deprecated) Throw away obvious excess yield calls") \
\
product(bool, DisablePrimordialThreadGuardPages, false, EXPERIMENTAL, \
"Disable the use of stack guard pages if the JVM is loaded " \
@ -1313,9 +1313,6 @@ const int ObjectAlignmentInBytes = 8;
develop(intx, MethodHistogramCutoff, 100, \
"The cutoff value for method invocation histogram (+CountCalls)") \
\
develop(intx, DontYieldALotInterval, 10, \
"Interval between which yields will be dropped (milliseconds)") \
\
develop(intx, DeoptimizeALotInterval, 5, \
"Number of exits until DeoptimizeALot kicks in") \
\

View File

@ -56,6 +56,7 @@ public class VMDeprecatedOptions {
ArrayList<String[]> deprecated = new ArrayList(
Arrays.asList(new String[][] {
// deprecated non-alias flags:
{"DontYieldALot", "false"},
{"UseNotificationThread", "true"},
{"PreserveAllAnnotations", "true"},
{"AllowRedefinitionToAddDeleteMethods", "true"},