RFR: 8333276: RISC-V: client VM build failure after JDK-8241503
Gui Cao
gcao at openjdk.org
Fri May 31 02:16:26 UTC 2024
Hi, please review this patch that fix the client VM build failed for riscv.
Error log for client VM build to see: [JDK-8333276](https://bugs.openjdk.org/browse/JDK-8333276)
The root cause is that `src/hotspot/share/code/compiledIC.hpp` include `"opto/c2_MacroAssembler.hpp"`, after that `opto/c2_MacroAssembler.hpp` include `c2_MacroAssembler_riscv.hpp`.
The fix is that we extracted the `spill_vmask, unspill_vmask` function definitions into `c2_MacroAssembler_riscv.cpp`. `c2_MacroAssembler_riscv.cpp` will only compile if the `COMPILER2` macro is present.
### Testing
- [x] linux-riscv client VM fastdebug native build
-------------
Commit messages:
- 8333276: RISC-V: client VM build failure after JDK-8241503
Changes: https://git.openjdk.org/jdk/pull/19481/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=19481&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8333276
Stats: 28 lines in 2 files changed: 15 ins; 11 del; 2 mod
Patch: https://git.openjdk.org/jdk/pull/19481.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/19481/head:pull/19481
PR: https://git.openjdk.org/jdk/pull/19481
More information about the hotspot-compiler-dev
mailing list