Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8232729

Shenandoah: assert ShenandoahHeap::cas_oop addresses are aligned

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8-shenandoah, 11-shenandoah, 14
    • Fix Version/s: 14
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
      gc
    • Resolved In Build:
      b20

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: