HotSpot has other options, which may significantly change its behavior. Here we will make use of some of these options, which are used only on the dev versions of OpenJDK.
We will use parameters that are available in the developer version of OpenJDK. In the production builds, they are disabled or set as constant values.
To make use of these parameters, we will run Java as follows:
java - -XX:<optionName>
Here is a list of some usable dev options:
InlineUnsafeOps
: This option will, if enabled, inline native memory operations fromsun.misc.Unsafe
. It may offer some performance improvements in some cases.DieOnSafepointTimeout
: This option will kill the process if the safepoint is not reached, but the timeout is exceeded. It is disabled by default.ZapResourceArea
: This option will zap freed resource / arena space with0xABABABAB
. It is true in debug mode...