Skip to content

Commit 238162a

Browse files
author
David Holmes
committed
8322064: Remove expired flags in JDK 24
Reviewed-by: kvn, stuefe
1 parent fcedde8 commit 238162a

File tree

2 files changed

+50
-87
lines changed

2 files changed

+50
-87
lines changed

src/hotspot/share/runtime/arguments.cpp

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -501,7 +501,6 @@ static SpecialFlag const special_jvm_flags[] = {
501501
{ "DynamicDumpSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
502502
{ "RequireSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
503503
{ "UseSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
504-
{ "RegisterFinalizersAtInit", JDK_Version::jdk(22), JDK_Version::jdk(23), JDK_Version::jdk(24) },
505504
{ "DontYieldALot", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
506505
{ "OldSize", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
507506
{ "PreserveAllAnnotations", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
@@ -514,32 +513,6 @@ static SpecialFlag const special_jvm_flags[] = {
514513

515514
{ "MetaspaceReclaimPolicy", JDK_Version::undefined(), JDK_Version::jdk(21), JDK_Version::undefined() },
516515

517-
{ "G1ConcRefinementGreenZone", JDK_Version::undefined(), JDK_Version::jdk(20), JDK_Version::jdk(24) },
518-
{ "G1ConcRefinementYellowZone", JDK_Version::undefined(), JDK_Version::jdk(20), JDK_Version::jdk(24) },
519-
{ "G1ConcRefinementRedZone", JDK_Version::undefined(), JDK_Version::jdk(20), JDK_Version::jdk(24) },
520-
{ "G1ConcRefinementThresholdStep", JDK_Version::undefined(), JDK_Version::jdk(20), JDK_Version::jdk(24) },
521-
{ "G1UseAdaptiveConcRefinement", JDK_Version::undefined(), JDK_Version::jdk(20), JDK_Version::jdk(24) },
522-
{ "G1ConcRefinementServiceIntervalMillis", JDK_Version::undefined(), JDK_Version::jdk(20), JDK_Version::jdk(24) },
523-
524-
{ "G1ConcRSLogCacheSize", JDK_Version::undefined(), JDK_Version::jdk(21), JDK_Version::jdk(24) },
525-
{ "G1ConcRSHotCardLimit", JDK_Version::undefined(), JDK_Version::jdk(21), JDK_Version::jdk(24) },
526-
{ "RefDiscoveryPolicy", JDK_Version::undefined(), JDK_Version::jdk(21), JDK_Version::jdk(24) },
527-
528-
{ "AdaptiveSizePolicyCollectionCostMargin", JDK_Version::undefined(), JDK_Version::jdk(23), JDK_Version::jdk(24) },
529-
{ "MaxGCMinorPauseMillis", JDK_Version::jdk(8), JDK_Version::jdk(23), JDK_Version::jdk(24) },
530-
{ "MaxRAMFraction", JDK_Version::jdk(10), JDK_Version::jdk(23), JDK_Version::jdk(24) },
531-
{ "MinRAMFraction", JDK_Version::jdk(10), JDK_Version::jdk(23), JDK_Version::jdk(24) },
532-
{ "InitialRAMFraction", JDK_Version::jdk(10), JDK_Version::jdk(23), JDK_Version::jdk(24) },
533-
{ "DefaultMaxRAMFraction", JDK_Version::jdk(8), JDK_Version::jdk(23), JDK_Version::jdk(24) },
534-
{ "TLABStats", JDK_Version::jdk(12), JDK_Version::jdk(23), JDK_Version::jdk(24) },
535-
{ "GCLockerEdenExpansionPercent", JDK_Version::undefined(), JDK_Version::jdk(23), JDK_Version::jdk(24) },
536-
{ "NUMAPageScanRate", JDK_Version::undefined(), JDK_Version::jdk(23), JDK_Version::jdk(24) },
537-
{ "ProcessDistributionStride", JDK_Version::undefined(), JDK_Version::jdk(23), JDK_Version::jdk(24) },
538-
539-
{ "ParallelOldDeadWoodLimiterMean", JDK_Version::undefined(), JDK_Version::jdk(23), JDK_Version::jdk(24) },
540-
{ "ParallelOldDeadWoodLimiterStdDev", JDK_Version::undefined(), JDK_Version::jdk(23), JDK_Version::jdk(24) },
541-
{ "UseNeon", JDK_Version::undefined(), JDK_Version::jdk(23), JDK_Version::jdk(24) },
542-
{ "ScavengeBeforeFullGC", JDK_Version::undefined(), JDK_Version::jdk(23), JDK_Version::jdk(24) },
543516
#if defined(X86)
544517
{ "UseRTMLocking", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
545518
{ "UseRTMDeopt", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },

src/java.base/share/man/java.1

Lines changed: 50 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -3737,45 +3737,6 @@ Example:
37373737
Enables the use of Java Flight Recorder (JFR) during the runtime of the
37383738
application.
37393739
Since JDK 8u40 this option has not been required to use JFR.
3740-
.TP
3741-
\f[V]-XX:InitialRAMFraction=\f[R]\f[I]ratio\f[R]
3742-
Sets the initial amount of memory that the JVM may use for the Java heap
3743-
before applying ergonomics heuristics as a ratio of the maximum amount
3744-
determined as described in the \f[V]-XX:MaxRAM\f[R] option.
3745-
The default value is 64.
3746-
.RS
3747-
.PP
3748-
Use the option \f[V]-XX:InitialRAMPercentage\f[R] instead.
3749-
.RE
3750-
.TP
3751-
\f[V]-XX:MaxRAMFraction=\f[R]\f[I]ratio\f[R]
3752-
Sets the maximum amount of memory that the JVM may use for the Java heap
3753-
before applying ergonomics heuristics as a fraction of the maximum
3754-
amount determined as described in the \f[V]-XX:MaxRAM\f[R] option.
3755-
The default value is 4.
3756-
.RS
3757-
.PP
3758-
Specifying this option disables automatic use of compressed oops if the
3759-
combined result of this and other options influencing the maximum amount
3760-
of memory is larger than the range of memory addressable by compressed
3761-
oops.
3762-
See \f[V]-XX:UseCompressedOops\f[R] for further information about
3763-
compressed oops.
3764-
.PP
3765-
Use the option \f[V]-XX:MaxRAMPercentage\f[R] instead.
3766-
.RE
3767-
.TP
3768-
\f[V]-XX:MinRAMFraction=\f[R]\f[I]ratio\f[R]
3769-
Sets the maximum amount of memory that the JVM may use for the Java heap
3770-
before applying ergonomics heuristics as a fraction of the maximum
3771-
amount determined as described in the \f[V]-XX:MaxRAM\f[R] option for
3772-
small heaps.
3773-
A small heap is a heap of approximately 125 MB.
3774-
The default value is 2.
3775-
.RS
3776-
.PP
3777-
Use the option \f[V]-XX:MinRAMPercentage\f[R] instead.
3778-
.RE
37793740
.SH OBSOLETE JAVA OPTIONS
37803741
.PP
37813742
These \f[V]java\f[R] options are still accepted but ignored, and a
@@ -3789,16 +3750,6 @@ This option was deprecated in JDK 16 by \f[B]JEP 396\f[R]
37893750
[https://openjdk.org/jeps/396] and made obsolete in JDK 17 by \f[B]JEP
37903751
403\f[R] [https://openjdk.org/jeps/403].
37913752
.TP
3792-
\f[V]-XX:+ScavengeBeforeFullGC\f[R]
3793-
Enables GC of the young generation before each full GC.
3794-
This option is enabled by default.
3795-
It is recommended that you \f[I]don\[aq]t\f[R] disable it, because
3796-
scavenging the young generation before a full GC can reduce the number
3797-
of objects reachable from the old generation space into the young
3798-
generation space.
3799-
To disable GC of the young generation before each full GC, specify the
3800-
option \f[V]-XX:-ScavengeBeforeFullGC\f[R].
3801-
.TP
38023753
\f[V]-XX:RTMAbortRatio=\f[R]\f[I]abort_ratio\f[R]
38033754
Specifies the RTM abort ratio is specified as a percentage (%) of all
38043755
executed RTM transactions.
@@ -3884,22 +3835,61 @@ results in an error of:
38843835
\f[V]Unrecognized VM option\f[R] \f[I]option-name\f[R]
38853836
.RE
38863837
.TP
3887-
\f[V]-XX:+UseHugeTLBFS\f[R]
3888-
\f[B]Linux only:\f[R] This option is the equivalent of specifying
3889-
\f[V]-XX:+UseLargePages\f[R].
3890-
This option is disabled by default.
3891-
This option pre-allocates all large pages up-front, when memory is
3892-
reserved; consequently the JVM can\[aq]t dynamically grow or shrink
3893-
large pages memory areas; see \f[V]-XX:UseTransparentHugePages\f[R] if
3894-
you want this behavior.
3838+
\f[V]-XX:InitialRAMFraction=\f[R]\f[I]ratio\f[R]
3839+
Sets the initial amount of memory that the JVM may use for the Java heap
3840+
before applying ergonomics heuristics as a ratio of the maximum amount
3841+
determined as described in the \f[V]-XX:MaxRAM\f[R] option.
3842+
The default value is 64.
3843+
.RS
3844+
.PP
3845+
Use the option \f[V]-XX:InitialRAMPercentage\f[R] instead.
3846+
.RE
38953847
.TP
3896-
\f[V]-XX:+UseSHM\f[R]
3897-
\f[B]Linux only:\f[R] Enables the JVM to use shared memory to set up
3898-
large pages.
3848+
\f[V]-XX:MaxRAMFraction=\f[R]\f[I]ratio\f[R]
3849+
Sets the maximum amount of memory that the JVM may use for the Java heap
3850+
before applying ergonomics heuristics as a fraction of the maximum
3851+
amount determined as described in the \f[V]-XX:MaxRAM\f[R] option.
3852+
The default value is 4.
3853+
.RS
3854+
.PP
3855+
Specifying this option disables automatic use of compressed oops if the
3856+
combined result of this and other options influencing the maximum amount
3857+
of memory is larger than the range of memory addressable by compressed
3858+
oops.
3859+
See \f[V]-XX:UseCompressedOops\f[R] for further information about
3860+
compressed oops.
3861+
.PP
3862+
Use the option \f[V]-XX:MaxRAMPercentage\f[R] instead.
3863+
.RE
3864+
.TP
3865+
\f[V]-XX:MinRAMFraction=\f[R]\f[I]ratio\f[R]
3866+
Sets the maximum amount of memory that the JVM may use for the Java heap
3867+
before applying ergonomics heuristics as a fraction of the maximum
3868+
amount determined as described in the \f[V]-XX:MaxRAM\f[R] option for
3869+
small heaps.
3870+
A small heap is a heap of approximately 125 MB.
3871+
The default value is 2.
3872+
.RS
3873+
.PP
3874+
Use the option \f[V]-XX:MinRAMPercentage\f[R] instead.
3875+
.RE
3876+
.TP
3877+
\f[V]-XX:+ScavengeBeforeFullGC\f[R]
3878+
Enables GC of the young generation before each full GC.
3879+
This option is enabled by default.
3880+
It is recommended that you \f[I]don\[aq]t\f[R] disable it, because
3881+
scavenging the young generation before a full GC can reduce the number
3882+
of objects reachable from the old generation space into the young
3883+
generation space.
3884+
To disable GC of the young generation before each full GC, specify the
3885+
option \f[V]-XX:-ScavengeBeforeFullGC\f[R].
38993886
.PP
39003887
For the lists and descriptions of options removed in previous releases
39013888
see the \f[I]Removed Java Options\f[R] section in:
39023889
.IP \[bu] 2
3890+
\f[B]The \f[VB]java\f[B] Command, Release 23\f[R]
3891+
[https://docs.oracle.com/en/java/javase/23/docs/specs/man/java.html]
3892+
.IP \[bu] 2
39033893
\f[B]The \f[VB]java\f[B] Command, Release 22\f[R]
39043894
[https://docs.oracle.com/en/java/javase/22/docs/specs/man/java.html]
39053895
.IP \[bu] 2

0 commit comments

Comments
 (0)