[jdk21u-dev] RFR: 8341586: RISC-V: riscv_flush_icache.cpp build fail with gcc9.2

SendaoYan syan at openjdk.org
Wed Oct 9 03:43:36 UTC 2024


Hi all,
The `src/hotspot/cpu/riscv/icache_riscv.cpp` build fails `riscv_flush_icache.cpp:51:29: error: requested alignment 64 is larger than 16 [-Werror=attributes]` with gcc9.2.0. Alignment 16 will be enough, though the [NR_riscv_flush_icache syscall](https://github.com/torvalds/linux/blob/master/tools/arch/riscv/include/uapi/asm/unistd.h) doesn't reqiure alignment.

Gcc10 is the [minimum](https://github.com/openjdk/jdk/blame/50426b3841240c5fda0df11439e52fa1ae9e7e07/make/autoconf/toolchain.m4#L53) supported version since JDK 23, so I create PR in jdk21u-dev.

Addiontional testing:

- [ ] riscv native build with release conf and slowdebug conf
- [ ] jtreg tier1 tests with release build

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

Commit messages:
 - 8341586: RISC-V: riscv_flush_icache.cpp build fail with gcc9.2

Changes: https://git.openjdk.org/jdk21u-dev/pull/1038/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk21u-dev&pr=1038&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8341586
  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk21u-dev/pull/1038.diff
  Fetch: git fetch https://git.openjdk.org/jdk21u-dev.git pull/1038/head:pull/1038

PR: https://git.openjdk.org/jdk21u-dev/pull/1038


More information about the jdk-updates-dev mailing list