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

-XX:ShareClassesDisableBCI /
-XX:ShareClassesEnableBCI

The option -Xshareclasses:enableBCI improves startup performance without using a modification context, when using JVMTI class modification. This suboption allows classes loaded from the shared cache to be modified using a JVMTI ClassFileLoadHook, or a java.lang.instrument agent, and prevents modified classes being stored in the shared classes cache. You can turn off this option by specifying -XX:ShareClassesDisableBCI when you start your Java™ application.

Syntax

    -XX:ShareClassesDisableBCI|ShareClassesEnableBCI
Setting Effect Default
-XX:ShareClassesDisableBCI Disable
-XX:ShareClassesEnableBCI Enable yes

These options are equivalent to -Xshareclasses:disableBCI and -Xshareclasses:enableBCI. For more information, see -Xshareclasses.

See also