mirror of
https://github.com/openjdk/jdk.git
synced 2026-03-14 18:03:44 +00:00
8370843: Deprecate AlwaysActAsServerClassMachine and NeverActAsServerClassMachine
Reviewed-by: ayang, kvn
This commit is contained in:
parent
f48ad21ecc
commit
c0b82ff2e5
@ -263,10 +263,10 @@
|
||||
"before pushing a continuation entry") \
|
||||
\
|
||||
product_pd(bool, NeverActAsServerClassMachine, \
|
||||
"Never act like a server-class machine") \
|
||||
"(Deprecated) Never act like a server-class machine") \
|
||||
\
|
||||
product(bool, AlwaysActAsServerClassMachine, false, \
|
||||
"Always act like a server-class machine") \
|
||||
"(Deprecated) Always act like a server-class machine") \
|
||||
\
|
||||
product(uint64_t, MaxRAM, 0, \
|
||||
"(Deprecated) Real memory size (in bytes) used to set maximum " \
|
||||
|
||||
@ -537,6 +537,8 @@ static SpecialFlag const special_jvm_flags[] = {
|
||||
{ "PSChunkLargeArrays", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
|
||||
{ "MaxRAM", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
|
||||
{ "AggressiveHeap", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
|
||||
{ "NeverActAsServerClassMachine", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
|
||||
{ "AlwaysActAsServerClassMachine", JDK_Version::jdk(26), JDK_Version::jdk(27), JDK_Version::jdk(28) },
|
||||
// --- 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() },
|
||||
|
||||
|
||||
@ -1235,26 +1235,6 @@ These `java` options control the runtime behavior of the Java HotSpot VM.
|
||||
|
||||
This option is only supported on Linux with GNU C Library (glibc).
|
||||
|
||||
`-XX:+NeverActAsServerClassMachine`
|
||||
: Enable the "Client VM emulation" mode which only uses the C1 JIT compiler,
|
||||
a 32Mb CodeCache and the Serial GC. The maximum amount of memory that the
|
||||
JVM may use (controlled by the `-XX:MaxRAM=n` flag) is set to 1GB by default.
|
||||
The string "emulated-client" is added to the JVM version string.
|
||||
|
||||
By default the flag is set to `true` only on Windows in 32-bit mode and
|
||||
`false` in all other cases.
|
||||
|
||||
The "Client VM emulation" mode will not be enabled if any of the following
|
||||
flags are used on the command line:
|
||||
|
||||
```
|
||||
-XX:{+|-}TieredCompilation
|
||||
-XX:CompilationMode=mode
|
||||
-XX:TieredStopAtLevel=n
|
||||
-XX:{+|-}EnableJVMCI
|
||||
-XX:{+|-}UseJVMCICompiler
|
||||
```
|
||||
|
||||
`-XX:ObjectAlignmentInBytes=`*alignment*
|
||||
: Sets the memory alignment of Java objects (in bytes). By default, the value
|
||||
is set to 8 bytes. The specified value should be a power of 2, and must be
|
||||
@ -2951,6 +2931,26 @@ they're used.
|
||||
the configuration of the computer (RAM and CPU). By default, the option
|
||||
is disabled and the heap sizes are configured less aggressively.
|
||||
|
||||
`-XX:+NeverActAsServerClassMachine`
|
||||
: Enable the "Client VM emulation" mode which only uses the C1 JIT compiler,
|
||||
a 32Mb CodeCache and the Serial GC. The maximum amount of memory that the
|
||||
JVM may use (controlled by the `-XX:MaxRAM=n` flag) is set to 1GB by default.
|
||||
The string "emulated-client" is added to the JVM version string.
|
||||
|
||||
By default the flag is set to `true` only on Windows in 32-bit mode and
|
||||
`false` in all other cases.
|
||||
|
||||
The "Client VM emulation" mode will not be enabled if any of the following
|
||||
flags are used on the command line:
|
||||
|
||||
```
|
||||
-XX:{+|-}TieredCompilation
|
||||
-XX:CompilationMode=mode
|
||||
-XX:TieredStopAtLevel=n
|
||||
-XX:{+|-}EnableJVMCI
|
||||
-XX:{+|-}UseJVMCICompiler
|
||||
```
|
||||
|
||||
## Obsolete Java Options
|
||||
|
||||
These `java` options are still accepted but ignored, and a warning is issued
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user