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:DiagnoseSyncOnValueBasedClasses

Start of content that applies only to Java 16 and later This HotSpot option provides warnings about improper attempts to synchronize on instances of a value-based class. The option is recognized by Eclipse OpenJ9™ for compatibility.

Syntax

    -XX:DiagnoseSyncOnValueBasedClasses=<number>
<number> value Effect
1 Generate VirtualMachineError error
2 Print a warning message