RFR: 8330242: RISC-V: Simplify and remove CORRECT_COMPILER_ATOMIC_SUPPORT in atomic_linux_riscv.hpp
Gui Cao
gcao at openjdk.org
Mon Apr 15 08:01:51 UTC 2024
Previously, we fixed JDK-8326936 with a workaround for one GCC bug [1]. We define a new `CORRECT_COMPILER_ATOMIC_SUPPORT` macro when building with GCC >= 14. Now this bug has been fixed in gcc trunk and has been backported to GCC-13 branch. The `__atomic_compare_exchange` atomic operation will be usable for the next GCC-13.3 release. So we should relax the condition and require GCC > 13.2. This will also help remove `CORRECT_COMPILER_ATOMIC_SUPPORT` macro and reuse a single `FULL_COMPILER_ATOMIC_SUPPORT` macro.
[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114130
-------------
Commit messages:
- 8330242: RISC-V: Simplify and remove CORRECT_COMPILER_ATOMIC_SUPPORT in atomic_linux_riscv.hpp
Changes: https://git.openjdk.org/jdk/pull/18780/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=18780&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8330242
Stats: 15 lines in 1 file changed: 0 ins; 11 del; 4 mod
Patch: https://git.openjdk.org/jdk/pull/18780.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/18780/head:pull/18780
PR: https://git.openjdk.org/jdk/pull/18780
More information about the hotspot-runtime-dev
mailing list