RISC-V: Simplify weak CAS return value handling

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 20
    • Affects Version/s: 19, 20
    • Component/s: hotspot
    • b13
    • riscv

        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.

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

                Created:
                Updated:
                Resolved: