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

RISC-V: Simplify weak CAS return value handling

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P4
    • 20
    • 19, 20
    • hotspot
    • b13
    • riscv

    Backports

      Description

        I see that current weak CAS implementations in macroAssembler_riscv.cpp return 0 on success, and then invert it in riscv.ad to match the Java's `boolean` result. I think we can just return the final value from MacroAssembler.

        Attachments

          Issue Links

            Activity

              People

                shade Aleksey Shipilev
                shade Aleksey Shipilev
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: