RFR: 8292867: RISC-V: Simplify weak CAS return value handling
Yadong Wang
yadongwang at openjdk.org
Thu Aug 25 02:06:27 UTC 2022
On Wed, 24 Aug 2022 19:23:29 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:
> 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`.
>
> Additional testing:
> - [ ] Linux RISC-V fastdebug `java/lang/invoke/VarHandles/`
> - [ ] Linux RISC-V fastdebug `compiler/unsafe`
lgtm
-------------
Marked as reviewed by yadongwang (Author).
PR: https://git.openjdk.org/jdk/pull/10006
More information about the hotspot-dev
mailing list