JDK-8252182 : [valhalla/jep390] Diagnose synchronization on @ValueBased classes
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-08-21
  • Updated: 2021-01-07
  • Resolved: 2020-11-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
repo-valhallaFixed
Related Reports
Duplicate :  
Relates :  
Description
Enhance the work done in JDK-8242263 to warn about synchronization performed on any class that is declared with a @ValueBased annotation.

The same behaviors as implemented by JDK-8242263 should apply���VM abort, logged warning, or JFR event.

The -XX:DiagnoseSyncOnPrimitiveWrappers flag should probably be renamed to indicate that it's a check on all value-based classes. (It is probably *not* useful to have two different knobs, one for primitives and one for other value-based classes.)
Comments
JDK-8242263 does not use VirtualMachineError, it aborts the VM with a fatal error.
26-08-2020