Skip to content

CAUTION: This site is for reviewing draft documentation. For published content, 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

See also