RFR: 8316645: RISC-V: Remove dependency on libatomic by adding cmpxchg 1b

Magnus Ihse Bursie ihse at openjdk.org
Wed Sep 27 09:05:23 UTC 2023


On Tue, 26 Sep 2023 12:04:49 GMT, Robbin Ehn <rehn at openjdk.org> wrote:

> Hi all, please consider.
> 
> latomic is used for non native atomic operation which causes problems with extra dependency.
> This have been fixed in recent gcc, so latomic is no longer needed.
> 
> Added new gtest, passes t1 on vf2/qemu.

Ok, so let me see if I get this right. With gcc >= 13.2, we will use a gcc intrinsic. But this patch will work for older gcc versions as well, but then it uses assembly code?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/15919#issuecomment-1736998057


More information about the build-dev mailing list