RFR: 8358892: RISC-V: jvm crash when running dacapo sunflow after JDK-8352504 [v6]

Hamlin Li mli at openjdk.org
Thu Jun 12 16:57:46 UTC 2025


On Thu, 12 Jun 2025 06:32:19 GMT, Fei Yang <fyang at openjdk.org> wrote:

>> Hamlin Li has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   adjust arguments orders
>
> src/hotspot/cpu/riscv/macroAssembler_riscv.cpp line 1385:
> 
>> 1383:   if (is_single) {
>> 1384:     // jump if cmp1 < cmp2 or either is NaN
>> 1385:     // not jump (i.e. move src to dst) if cmp1 >= cmp2
> 
> Or simply: `// fallthrough (i.e. move src to dst) if cmp1 >= cmp2`? Similar for other friends.

Yes, fixed.

> test/hotspot/jtreg/compiler/c2/irTests/TestFPComparison2.java line 70:
> 
>> 68:         // Booltest::ge
>> 69:         TestFramework framework = new TestFramework(Test_ge_1.class);
>> 70:         framework.addFlags("-XX:-TieredCompilation", "-XX:+UseZicond", "-Xlog:jit+compilation=trace").start();
> 
> I see `-XX:+UseZicond` and `-XX:-UseZicond` options are used in this test. What if the testing platform doesn't have the Zicond extension? Maybe we can simply remove use of these options as option `UseZicond` will be auto-enabled for fastdebug builds for test coverage purpose if this extension is available.

Make sense, fixed.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/25696#discussion_r2143223776
PR Review Comment: https://git.openjdk.org/jdk/pull/25696#discussion_r2143223992


More information about the hotspot-compiler-dev mailing list