Skip to content

Commit 83ea013

Browse files
author
David Holmes
committed
8345629: Remove expired flags in JDK 25
Reviewed-by: kvn, coleenp
1 parent c517ffb commit 83ea013

File tree

2 files changed

+9
-65
lines changed

2 files changed

+9
-65
lines changed

src/hotspot/share/runtime/arguments.cpp

+1-15
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,6 @@ static SpecialFlag const special_jvm_flags[] = {
522522
{ "DynamicDumpSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
523523
{ "RequireSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
524524
{ "UseSharedSpaces", JDK_Version::jdk(18), JDK_Version::jdk(19), JDK_Version::undefined() },
525-
{ "DontYieldALot", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
526525
#ifdef LINUX
527526
{ "UseLinuxPosixThreadCPUClocks", JDK_Version::jdk(24), JDK_Version::jdk(25), JDK_Version::jdk(26) },
528527
#endif
@@ -534,20 +533,7 @@ static SpecialFlag const special_jvm_flags[] = {
534533

535534
{ "MetaspaceReclaimPolicy", JDK_Version::undefined(), JDK_Version::jdk(21), JDK_Version::undefined() },
536535
{ "ZGenerational", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::undefined() },
537-
{ "UseNotificationThread", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
538-
{ "PreserveAllAnnotations", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
539-
{ "UseEmptySlotsInSupers", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
540-
{ "OldSize", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
541-
#if defined(X86)
542-
{ "UseRTMLocking", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
543-
{ "UseRTMDeopt", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
544-
{ "RTMRetryCount", JDK_Version::jdk(23), JDK_Version::jdk(24), JDK_Version::jdk(25) },
545-
#endif // X86
546-
547-
548-
{ "BaseFootPrintEstimate", JDK_Version::undefined(), JDK_Version::jdk(24), JDK_Version::jdk(25) },
549-
{ "HeapFirstMaximumCompactionCount", JDK_Version::undefined(), JDK_Version::jdk(24), JDK_Version::jdk(25) },
550-
{ "UseVtableBasedCHA", JDK_Version::undefined(), JDK_Version::jdk(24), JDK_Version::jdk(25) },
536+
551537
#ifdef ASSERT
552538
{ "DummyObsoleteTestFlag", JDK_Version::undefined(), JDK_Version::jdk(18), JDK_Version::undefined() },
553539
#endif

src/java.base/share/man/java.md

+8-50
Original file line numberDiff line numberDiff line change
@@ -2895,6 +2895,12 @@ when they're used.
28952895
396](https://openjdk.org/jeps/396) and made obsolete in JDK 17
28962896
by [JEP 403](https://openjdk.org/jeps/403).
28972897

2898+
## Removed Java Options
2899+
2900+
These `java` options have been removed in JDK @@VERSION_SPECIFICATION@@ and using them results in an error of:
2901+
2902+
> `Unrecognized VM option` *option-name*
2903+
28982904
`-XX:RTMAbortRatio=`*abort\_ratio*
28992905
: Specifies the RTM abort ratio is specified as a percentage (%) of all
29002906
executed RTM transactions. If a number of aborted transactions becomes
@@ -2954,58 +2960,10 @@ when they're used.
29542960
processors, which forces them to read from main memory instead of their
29552961
cache.
29562962

2957-
## Removed Java Options
2958-
2959-
These `java` options have been removed in JDK @@VERSION_SPECIFICATION@@ and using them results in an error of:
2960-
2961-
> `Unrecognized VM option` *option-name*
2962-
2963-
`-XX:InitialRAMFraction=`*ratio*
2964-
: Sets the initial amount of memory that the JVM may use for the Java heap
2965-
before applying ergonomics heuristics as a ratio of the maximum amount
2966-
determined as described in the `-XX:MaxRAM` option. The default value is
2967-
64.
2968-
2969-
Use the option `-XX:InitialRAMPercentage` instead.
2970-
2971-
`-XX:MaxRAMFraction=`*ratio*
2972-
: Sets the maximum amount of memory that the JVM may use for the Java heap
2973-
before applying ergonomics heuristics as a fraction of the maximum amount
2974-
determined as described in the `-XX:MaxRAM` option. The default value is 4.
2975-
2976-
Specifying this option disables automatic use of compressed oops if
2977-
the combined result of this and other options influencing the maximum amount
2978-
of memory is larger than the range of memory addressable by compressed oops.
2979-
See `-XX:UseCompressedOops` for further information about compressed oops.
2980-
2981-
Use the option `-XX:MaxRAMPercentage` instead.
2982-
2983-
`-XX:MinRAMFraction=`*ratio*
2984-
: Sets the maximum amount of memory that the JVM may use for the Java heap
2985-
before applying ergonomics heuristics as a fraction of the maximum amount
2986-
determined as described in the `-XX:MaxRAM` option for small heaps. A small
2987-
heap is a heap of approximately 125 MB. The default value is 2.
2988-
2989-
Use the option `-XX:MinRAMPercentage` instead.
2990-
2991-
`-XX:+ScavengeBeforeFullGC`
2992-
: Enables GC of the young generation before each full GC. This option is
2993-
enabled by default. It is recommended that you *don't* disable it, because
2994-
scavenging the young generation before a full GC can reduce the number of
2995-
objects reachable from the old generation space into the young generation
2996-
space. To disable GC of the young generation before each full GC, specify
2997-
the option `-XX:-ScavengeBeforeFullGC`.
2998-
2999-
`-Xfuture`
3000-
: Enables strict class-file format checks that enforce close conformance to
3001-
the class-file format specification. Developers should use this flag when
3002-
developing new code. Stricter checks may become the default in future
3003-
releases.
3004-
3005-
Use the option `-Xverify:all` instead.
3006-
30072963
For the lists and descriptions of options removed in previous releases see the *Removed Java Options* section in:
30082964

2965+
- [The `java` Command, Release 24](https://docs.oracle.com/en/java/javase/24/docs/specs/man/java.html)
2966+
30092967
- [The `java` Command, Release 23](https://docs.oracle.com/en/java/javase/23/docs/specs/man/java.html)
30102968

30112969
- [The `java` Command, Release 22](https://docs.oracle.com/en/java/javase/22/docs/specs/man/java.html)

0 commit comments

Comments
 (0)