Integrated: 8292867: RISC-V: Simplify weak CAS return value handling
Aleksey Shipilev
shade at openjdk.org
Thu Aug 25 16:28:06 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:
> - [x] Linux RISC-V fastdebug `java/lang/invoke/VarHandles/`
> - [x] Linux RISC-V fastdebug `compiler/unsafe`
This pull request has now been integrated.
Changeset: f57d3424
Author: Aleksey Shipilev <shade at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/f57d34242c9b47936d137589fc75ab794d39a9d1
Stats: 39 lines in 2 files changed: 2 ins; 13 del; 24 mod
8292867: RISC-V: Simplify weak CAS return value handling
Reviewed-by: yadongwang, fyang
-------------
PR: https://git.openjdk.org/jdk/pull/10006
More information about the hotspot-dev
mailing list