Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/hotspot/share/gc/shared/gc_globals.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 " \
Expand Down
2 changes: 2 additions & 0 deletions src/hotspot/share/runtime/arguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() },

Expand Down
40 changes: 20 additions & 20 deletions src/java.base/share/man/java.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down