8320335: Deprecate RegisterFinalizersAtInit option and code

Reviewed-by: eosterlund, dholmes
This commit is contained in:
Dan Heidinga 2023-11-22 05:49:51 +00:00 committed by David Holmes
parent b3616c9ac0
commit 2c31ca525b
2 changed files with 3 additions and 2 deletions

View File

@ -509,6 +509,7 @@ static SpecialFlag const special_jvm_flags[] = {
{ "DynamicDumpSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
{ "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) },
// --- 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() },

View File

@ -667,8 +667,8 @@ const int ObjectAlignmentInBytes = 8;
"Print JVM warnings to output stream") \
\
product(bool, RegisterFinalizersAtInit, true, \
"Register finalizable objects at end of Object.<init> or " \
"after allocation") \
"(Deprecated) Register finalizable objects at end of " \
"Object.<init> or after allocation") \
\
develop(bool, RegisterReferences, true, \
"Tell whether the VM should register soft/weak/final/phantom " \