Skip to content

CAUTION: This site hosts draft documentation for the next release. For published content of the latest release, visit www.eclipse.org/openj9/docs

-XX:[+|-]ShareUnsafeClasses

This option enables or disables the storage of VM classes created through Unsafe.defineClass in the shared classes cache.

The option is enabled by default, which means that unsafe classes are stored in the shared classes cache and are therefore available for ahead-of-time (AOT) compilation, potentially improving startup performance.

Syntax

    -XX:[+|-]ShareUnsafeClasses
Setting Effect Default
-XX:+ShareUnsafeClasses Enable yes
-XX:-ShareUnsafeClasses Disable

See also