Table A-9. Miscellaneous JVM flags
What it does
When to use it
Revert the Java 7 parallel
classloading scheme to
the Java 6 nonparallel
On large systems loading classes in
only a single thread, startup per-
formance may slightly benefit by
using this flag.
Prevents the stack trace
from being gathered
whenever an exception is
On systems with very deep stacks
where exceptions are frequently
thrown (and where fixing the code
to throw fewer exceptions is not a
Allows non-JDK code to
use the @Contended annota-
Set this if application code uses the
@Contended annotation to pad vari-
ables to prevent false sharing.
Disables JDK code from
using the @Contended an-
This should likely be left enabled.
Disabling may save a small amount
of space in certain JDK classes.
Enables certain optimiza-
tions for the JVM. These
optimizations are likely to
become defaults in future
You can test with this flag to de-
termine if it helps, but be aware
that it may not work the same when
JVM versions change.