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