Skip to content

Commit c0b82ff

Browse files
committed
8370843: Deprecate AlwaysActAsServerClassMachine and NeverActAsServerClassMachine
Reviewed-by: ayang, kvn
1 parent f48ad21 commit c0b82ff

File tree

3 files changed

+24
-22
lines changed

3 files changed

+24
-22
lines changed

src/hotspot/share/gc/shared/gc_globals.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,10 @@
263263
"before pushing a continuation entry") \
264264
\
265265
product_pd(bool, NeverActAsServerClassMachine, \
266-
"Never act like a server-class machine") \
266+
"(Deprecated) Never act like a server-class machine") \
267267
\
268268
product(bool, AlwaysActAsServerClassMachine, false, \
269-
"Always act like a server-class machine") \
269+
"(Deprecated) Always act like a server-class machine") \
270270
\
271271
product(uint64_t, MaxRAM, 0, \
272272
"(Deprecated) Real memory size (in bytes) used to set maximum " \

src/hotspot/share/runtime/arguments.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,8 @@ static SpecialFlag const special_jvm_flags[] = {
537537
{ "PSChunkLargeArrays", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
538538
{ "MaxRAM", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
539539
{ "AggressiveHeap", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
540+
{ "NeverActAsServerClassMachine", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
541+
{ "AlwaysActAsServerClassMachine", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
540542
// --- Deprecated alias flags (see also aliased_jvm_flags) - sorted by obsolete_in then expired_in:
541543
{ "CreateMinidumpOnCrash", JDK_Version::jdk(9), JDK_Version::undefined(), JDK_Version::undefined() },
542544

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

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1235,26 +1235,6 @@ These `java` options control the runtime behavior of the Java HotSpot VM.
12351235

12361236
This option is only supported on Linux with GNU C Library (glibc).
12371237

1238-
`-XX:+NeverActAsServerClassMachine`
1239-
: Enable the "Client VM emulation" mode which only uses the C1 JIT compiler,
1240-
a 32Mb CodeCache and the Serial GC. The maximum amount of memory that the
1241-
JVM may use (controlled by the `-XX:MaxRAM=n` flag) is set to 1GB by default.
1242-
The string "emulated-client" is added to the JVM version string.
1243-
1244-
By default the flag is set to `true` only on Windows in 32-bit mode and
1245-
`false` in all other cases.
1246-
1247-
The "Client VM emulation" mode will not be enabled if any of the following
1248-
flags are used on the command line:
1249-
1250-
```
1251-
-XX:{+|-}TieredCompilation
1252-
-XX:CompilationMode=mode
1253-
-XX:TieredStopAtLevel=n
1254-
-XX:{+|-}EnableJVMCI
1255-
-XX:{+|-}UseJVMCICompiler
1256-
```
1257-
12581238
`-XX:ObjectAlignmentInBytes=`*alignment*
12591239
: Sets the memory alignment of Java objects (in bytes). By default, the value
12601240
is set to 8 bytes. The specified value should be a power of 2, and must be
@@ -2951,6 +2931,26 @@ they're used.
29512931
the configuration of the computer (RAM and CPU). By default, the option
29522932
is disabled and the heap sizes are configured less aggressively.
29532933

2934+
`-XX:+NeverActAsServerClassMachine`
2935+
: Enable the "Client VM emulation" mode which only uses the C1 JIT compiler,
2936+
a 32Mb CodeCache and the Serial GC. The maximum amount of memory that the
2937+
JVM may use (controlled by the `-XX:MaxRAM=n` flag) is set to 1GB by default.
2938+
The string "emulated-client" is added to the JVM version string.
2939+
2940+
By default the flag is set to `true` only on Windows in 32-bit mode and
2941+
`false` in all other cases.
2942+
2943+
The "Client VM emulation" mode will not be enabled if any of the following
2944+
flags are used on the command line:
2945+
2946+
```
2947+
-XX:{+|-}TieredCompilation
2948+
-XX:CompilationMode=mode
2949+
-XX:TieredStopAtLevel=n
2950+
-XX:{+|-}EnableJVMCI
2951+
-XX:{+|-}UseJVMCICompiler
2952+
```
2953+
29542954
## Obsolete Java Options
29552955

29562956
These `java` options are still accepted but ignored, and a warning is issued

0 commit comments

Comments
 (0)