Skip to content

-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