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

RISC-V: Simplify weak CAS return value handling

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 20
    • 19, 20
    • 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.

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

                Created:
                Updated:
                Resolved: