8338947: Deprecate the UseLinuxPosixThreadCPUClocks flag and remove it in a future release

Reviewed-by: kbarrett, stuefe
This commit is contained in:
David Holmes 2024-08-26 22:26:40 +00:00
parent a827ff05db
commit 16df090784
3 changed files with 7 additions and 3 deletions

View File

@ -38,10 +38,8 @@
product(bool, UseOprofile, false, \
"enable support for Oprofile profiler") \
\
/* NB: The default value of UseLinuxPosixThreadCPUClocks may be */ \
/* overridden in Arguments::parse_each_vm_init_arg. */ \
product(bool, UseLinuxPosixThreadCPUClocks, true, \
"enable fast Linux Posix clocks where available") \
"(Deprecated) enable fast Linux Posix clocks where available") \
\
product(bool, UseTransparentHugePages, false, \
"Use MADV_HUGEPAGE for large pages") \

View File

@ -506,6 +506,9 @@ 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() },
{ "DontYieldALot", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
#ifdef LINUX
{ "UseLinuxPosixThreadCPUClocks", JDK_Version::jdk(24), JDK_Version::jdk(25), JDK_Version::jdk(26) },
#endif
{ "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

@ -70,6 +70,9 @@ public class VMDeprecatedOptions {
})
);
}
if (Platform.isLinux()) {
deprecated.add(new String[] { "UseLinuxPosixThreadCPUClocks", "true" });
}
if (wb.isJFRIncluded()) {
deprecated.add(new String[] {"FlightRecorder", "false"});
}