JDK-8232729 : Shenandoah: assert ShenandoahHeap::cas_oop addresses are aligned
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 8-shenandoah,11-shenandoah,14
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2019-10-21
  • Updated: 2020-01-22
  • Resolved: 2019-10-21
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.
JDK 14
14 b20Fixed
Related Reports
Relates :  
Relates :  
Description
Current ShenandoahHeap::cas_oop routines perform CASes on given address, hoping the hardware would handle it properly. In most cases, this is guaranteed by callers who pass aligned addresses to it. However, we should assert this directly, to catch bugs. This would fail the asserts with proper message rather than obscure SIGBUS on some platforms like AArch64.
Comments
URL: https://hg.openjdk.java.net/jdk/jdk/rev/ca620b06b5c9 User: shade Date: 2019-10-21 20:45:16 +0000
21-10-2019