<div class="__aliyun_email_body_block"><div  style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><div  style="clear:both;"><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;">Hi Vladimir,</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><br ></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;">Extremely interesting, which allows me remember the <span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;"><a  href="https://github.com/riscv-collab/riscv-openjdk/issues/23" target="_blank">https://github.com/riscv-collab/riscv-openjdk/issues/23</a> issue one year before: the "<a  class=" __aliyun_node_has_bgcolor" href="https://github.com/riscv-collab/riscv-openjdk/files/7230851/hs_err_pid4188454.log" target="_blank" style="box-sizing:border-box;background-color:#ffffff;text-decoration:underline;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;">hs_err_pid4188454.log</a>".</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;"><br ></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;">At that time I was developing one RVC prototype; after merge it, we found this issue.</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;"><br ></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;">We can see it has nearly the same interesting thing here, in a similar form.</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><br ></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;">In that hs_err, </div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;">```</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;">> x1(ra)  =0x0000003fa9732c66 is at code_begin+470 in ...</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;">```</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><br ></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;">ra is <span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">0x0000003fa9732c66, so if we search the ra:</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;"><br ></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">```</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">DeoptimizationBlob</span><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">--------------------------------------------------------------------------------</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">Decoding CodeBlob, name: DeoptimizationBlob, at  [0x0000003fa9732a90, 0x0000003fa9732d38]  680 bytes</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732a90:   addi sp,sp,-16</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732a92:   sd ra,8(sp)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732a94:   sd s0,0(sp)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732a96:   mv s0,sp</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732a98:   addi sp,sp,-240</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732a9a:   sd zero,0(sp)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732a9c:   sd gp,8(sp)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732a9e:   sd tp,16(sp)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;">  0x0000003fa9732aa0:   sd t0,24(sp)</span></div><span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">...</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">...</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">0x0000003fa9732c36:   fsd ft9,232(sp)</span><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c38:   fsd ft10,240(sp)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c3a:   fsd ft11,248(sp)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c3c:   li s10,1</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c3e:   ld a3,936(s7)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c42:   sd a3,8(s0)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c44:   sd zero,936(s7)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c48:   auipc t0,0x0</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c4c:   addi t0,t0,30 # 0x0000003fa9732c66</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c50:   sd t0,664(s7)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c54:   mv t0,sp</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c56:   sd t0,656(s7)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c5a:   mv a0,s7</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c5c:   mv a1,s10</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c5e:   auipc t0,0xf2c4</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c62:   jalr -1722(t0) # 0x0000003fb89f65a4 = DeoptReasonSerializer::serialize(JfrCheckpointWriter&)+220   <- ??????? here, very alike your hs_err right? :-) It's flying away. Of course we are not calling JFR here.</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c66:   sd zero,656(s7)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c6a:   sd zero,664(s7)</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;clear:both;">  0x0000003fa9732c6e:   mv a5,a0</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;">  0x0000003fa9732c70:   lwu s10,60(a5)</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;">```</span></div><span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;"><br ></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;"><br ></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">In your presented hs_err, the flying pc is:</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;"><br ></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">```</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">0x0000003f8458af26:   jalr    2014(t0) # 0x0000003f94507700 = SharedRuntime::look_for_reserved_stack_annotated_method(JavaThread*, frame)+892</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">```</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;"><br ></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">Of course in the resolve_static_call it should definitely not going to a function (<span  class=" __aliyun_node_has_color __aliyun_node_has_bgcolor" style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">SharedRuntime::look_for_reserved_stack_annotated_method</span>) only SIG handler calls.</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">(Specially thanks Feilong for preserving the original issue so I can find it)</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;"><br ></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">I have no proof that these two are the same issue anyway, but they look so much similar, which recalls me maybe there has some relationship.</span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;"><br ></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline;">The solution at that time is <span  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;"><a  href="https://github.com/riscv-collab/riscv-openjdk/issues/23#issuecomment-939247481" target="_blank">https://github.com/riscv-collab/riscv-openjdk/issues/23#issuecomment-939247481</a> , from Yadong.</span></span></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><br ></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;">I would like to hear from your opinions about this, for you have the reproducible environment. This is an indeed interesting issue.</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;"><br ></div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;">Best,</div><div  style="margin:.0px;padding:.0px;border:.0px;outline:.0px;color:#000000;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;text-decoration-style:initial;text-decoration-color:initial;clear:both;">Xiaolin</div></div><div  style="clear:both;"><br /></div><blockquote  style="margin-right:0;margin-top:0;margin-bottom:0;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;color:#000000;"><div  style="clear:both;">------------------------------------------------------------------</div><div  style="clear:both;">From:Vladimir Kempik <vladimir.kempik@gmail.com></div><div  style="clear:both;">Send Time:2022年9月15日(星期四) 22:17</div><div  style="clear:both;">To:郑孝林(云矅) <yunyao.zxl@alibaba-inc.com></div><div  style="clear:both;">Cc:riscv-port-dev <riscv-port-dev-retn@openjdk.org>; Aleksey Shipilev <shade@redhat.com>; riscv-port-dev@openjdk.org <riscv-port-dev@openjdk.org></div><div  style="clear:both;">Subject:Re: RVC by default?</div><div  style="clear:both;"><br /></div><head ></head>The main thing there is the amount of to be allocated memory, clearly it’s not normal.<div  class="">Here is another bug with RVC which again happens only on fpga, but stable and I can see wrong code generation, could be interesting to you:</div><div  class=""><br  class=""></div><div  class=""><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">#  SIGILL (0x4) at pc=0x0000003f94507700, pid=363, tid=364</span></div></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><br  class=""></span></div><div  class=""><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">Stack: [0x0000003f939b0000,0x0000003f93bb0000],  sp=0x0000003f93bad9a0,  free space=2038k</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">V  [libjvm.so+0x8dc700]  SharedRuntime::look_for_reserved_stack_annotated_method(JavaThread*, frame)+0x37c</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">J 2 c1 java.lang.String.hashCode()I java.base (60 bytes) @ 0x0000003f7d000874 [0x0000003f7d000580+0x00000000000002f4]</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">j  java.util.ImmutableCollections$SetN.probe(Ljava/lang/Object;)I+1 java.base</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">j  java.util.ImmutableCollections$SetN.<init>([Ljava/lang/Object;)V+35 java.base</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">j  java.util.Set.of([Ljava/lang/Object;)Ljava/util/Set;+64 java.base</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">j  jdk.internal.module.SystemModules$default.moduleDescriptors()[Ljava/lang/module/ModuleDescriptor;+1890 java.base</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">j  jdk.internal.module.SystemModuleFinders.of(Ljdk/internal/module/SystemModules;)Ljava/lang/module/ModuleFinder;+1 java.base</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">j  jdk.internal.module.ModuleBootstrap.boot2()Ljava/lang/ModuleLayer;+240 java.base</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">j  jdk.internal.module.ModuleBootstrap.boot()Ljava/lang/ModuleLayer;+64 java.base</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">j  java.lang.System.initPhase2(ZZ)I+0 java.base</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">v  ~StubRoutines::call_stub 0x0000003f8453849c</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">V  [libjvm.so+0x5b8018]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x1d6</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">V  [libjvm.so+0x5b8274]  JavaCalls::call_static(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0xe8</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">V  [libjvm.so+0xa0320c]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x63c</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">V  [libjvm.so+0x647d6c]  JNI_CreateJavaVM+0x6a</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">C  [libjli.so+0x3658]  JavaMain+0x7a</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">C  [libjli.so+0x670e]  ThreadJavaMain+0xc</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">C  [libc.so.6+0x675a6]</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">C  [libc.so.6+0xb3a02]</span></div></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><br  class=""></span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">pc      =0x0000003f94507700</span></div></span></div><div  class=""><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">x1(ra)  =0x0000003f8458af2a is at code_begin+170 in </span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">[CodeBlob (0x0000003f8458ae10)]</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">Framesize: 62</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">Runtime Stub (0x0000003f8458ae10): resolve_static_call</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">--------------------------------------------------------------------------------</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">Decoding CodeBlob, name: resolve_static_call, at  [0x0000003f8458ae80, 0x0000003f8458b078]  504 bytes</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458ae80:   addi    sp,sp,-16</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458ae84:   sd      ra,8(sp)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458ae88:   sd      s0,0(sp)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458ae8c:   addi    s0,sp,16</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458ae90:   addi    sp,sp,-224</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458ae92:   sd      t0,8(sp)</span></div></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;">…..</span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x0000003f8458af08:   fsd     ft11,248(sp)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af0a:   auipc   t0,0x0</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af0e:   addi    t0,t0,32 # 0x0000003f8458af2a</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af12:   sd      t0,712(s7)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af16:   mv      t0,sp</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af1a:   sd      t0,704(s7)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af1e:   mv      a0,s7</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af22:   auipc   t0,0xff7c</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af26:   jalr    2014(t0) # 0x0000003f94507700 = SharedRuntime::look_for_reserved_stack_annotated_method(JavaThread*, frame)+892</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af2a:   sd      zero,704(s7)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af2e:   sd      zero,712(s7)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af32:   ld      t0,8(s7)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af36:   bnez    t0,0x0000003f8458afd8</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af3a:   ld      t6,800(s7)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af3e:   sd      zero,800(s7)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af42:   sd      t6,472(sp)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af46:   sd      a0,264(sp)</span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><br  class=""></span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;">the interesting line here is </span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">  0x0000003f8458af26:   jalr    2014(t0) # 0x0000003f94507700 = SharedRuntime::look_for_reserved_stack_annotated_method(JavaThread*, frame)+892</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;"><br  class=""></span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;">+892 offset is 0x37c in hex, it’s exactly our crash site as backtrace says ( aka pc = </span><span  class="" style="font-family:Menlo;font-size:11.0px;">0x0000003f94507700)</span> , lets check what’s there</div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><br  class=""></span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><br  class=""></span></div></span></div></span></div><div  class=""><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x0000003f945076e0:   c9 02 23 34 d9 02 23 38 f9 02 ef 60 30 ff 7d 77</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x0000003f945076f0:   93 07 87 70 a2 97 90 63 aa 85 17 65 28 00 13 05</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x0000003f94507700:   65 9e 97 30 b2 ff e7 80 20 05 7d 77 13 07 87 70</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x0000003f94507710:   17 ac 36 00 03 3c 0c 5e 22 97 18 63 83 47 1c 1f</span></div></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><br  class=""></span></div><div  class=""><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076e0:  02c9              addi          t0,t0,18</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076e2:  02d93423          sd            a3,40(s2)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076e6:  02f93823          sd            a5,48(s2)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076ea:  ff3060ef          jal           ra,-1019918                     # 0x3f9440e6dc</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076ee:  777d              lui           a4,-4096</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076f0:  70870793          addi          a5,a4,1800</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076f4:  97a2              add           a5,a5,s0</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076f6:  6390              ld            a2,0(a5)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076f8:  85aa              mv            a1,a0</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076fa:  00286517          auipc         a0,2646016                      # 0x3f9478d6fa</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076fe:  9e650513          addi          a0,a0,-1562</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f94507702:  ffb23097          auipc         ra,-5099520                     # 0x3f9402a702</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f94507706:  052080e7          jalr          ra,ra,82</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f9450770a:  777d              lui           a4,-4096</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f9450770c:  70870713          addi          a4,a4,1800</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f94507710:  0036ac17          auipc         s8,3579904                      # 0x3f94871710</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f94507714:  5e0c3c03          ld            s8,1504(s8)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f94507718:  9722              add           a4,a4,s0</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f9450771a:  6318              ld            a4,0(a4)</span></div><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f9450771c:  1f1c4783          lbu           a5,497(s8)</span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><br  class=""></span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;">so, jalr jumped into the middle of opcode</span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">0x3f945076fe:  9e650513          addi          a0,a0,-1562</span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><br  class=""></span></div></span></div><div  class=""><div >So this could be an issue with runtime blob generation.</div><div >Regards, Vladimir</div><div ><br  class=""><div  class="">15 сент. 2022 г., в 16:01, Xiaolin Zheng <<a  class="" href="mailto:yunyao.zxl@alibaba-inc.com" target="_blank">yunyao.zxl@alibaba-inc.com</a>> написал(а):</div><br  class="Apple-interchange-newline"><div  class=""><div  class="" style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;"><div  class="" style="clear:both;">Hi Vladimir,</div><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;">Thank you for the information. RVC's performance gain is a side effect alike thing, and it seems the larger the icache size, the less performance gain of it. Besides, the current RVC implement in the backend is only a basic one, covering some of C2 match rules, far from complete. So I might not assume observing performance gain with the current RVC implementation, but we should also not observe regressions of generated code here. So of course I'd agree with your analysis.</div><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;"><span  class="">The second one seems interesting as well. Weird, it seems a common native out of memory, so shouldn't turning off RVC reveal the same issue, I guess? I will wait for the JBS issue and do some JVM options tuning to simulate that case to see if I can reproduce it in the meantime.</span></div><div  class="" style="clear:both;"><span  class=""><br  class=""></span></div><div  class="" style="clear:both;"><span  class="">Best,</span></div><div  class="" style="clear:both;"><span  class="">Xiaolin</span></div><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;">------------------------------------------------------------------</div><div  class="" style="clear:both;">From:Vladimir Kempik <<a  class="" href="mailto:vladimir.kempik@gmail.com" target="_blank">vladimir.kempik@gmail.com</a>></div><div  class="" style="clear:both;">Send Time:2022年9月15日(星期四) 20:33</div><div  class="" style="clear:both;">To:郑孝林(云矅) <<a  class="" href="mailto:yunyao.zxl@alibaba-inc.com" target="_blank">yunyao.zxl@alibaba-inc.com</a>></div><div  class="" style="clear:both;">Cc:riscv-port-dev <<a  class="" href="mailto:riscv-port-dev-retn@openjdk.org" target="_blank">riscv-port-dev-retn@openjdk.org</a>>; Aleksey Shipilev <<a  class="" href="mailto:shade@redhat.com" target="_blank">shade@redhat.com</a>>; <a  class="" href="mailto:riscv-port-dev@openjdk.org" target="_blank">riscv-port-dev@openjdk.org</a> <<a  class="" href="mailto:riscv-port-dev@openjdk.org" target="_blank">riscv-port-dev@openjdk.org</a>></div><div  class="" style="clear:both;">Subject:Re: RVC by default?</div><div  class="" style="clear:both;"><br  class=""></div>Hello<div  class="">Yes, it’s slightly unstable. even on fpga.</div><div  class="">I have found I can compare results only from two consequential runs ( e.g. first run without RVC, second run with RVC), then some average result from iterations 5-15, removing some too slow results.</div><div  class="">I think your results shows no perf gain from RVC, that’s expected as RVC gives no perf improvements for opcodes, only requiring less i-cache space.</div><div  class=""><br  class=""></div><div  class="">Another interesting moment with RVC, I see some jdk failure only when RVC is enabled and only on fpga. ( on philosophers test)</div><div  class="">it’s very strange, I will try to debug it and file a bug in JBS if it turns out to be a real jdk bug (or this could easily be a fpga "core" issue)</div><div  class=""><br  class=""></div><div  class="">Regards, Vladimir</div><div  class=""><br  class=""></div><div  class=""><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;"># Native memory allocation (malloc) failed to allocate 4352974235792 bytes for Chunk::new</span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><div  class="" style="margin:.0px;font-stretch:normal;font-size:11.0px;line-height:normal;font-family:Menlo;"><span  class="" style="font-variant-ligatures:no-common-ligatures;">#  Out of Memory Error (arena.cpp:184), pid=5722, tid=5723</span></div><div  class=""><span  class="" style="font-variant-ligatures:no-common-ligatures;"><div  class="">Stack: [0x0000003f83111000,0x0000003f83311000],  sp=0x0000003f8330e2e0,  free space=2036k</div><div  class="">Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)</div><div  class="">V  [libjvm.so+0xa6c064]  VMError::report_and_die(int, char const*, char const*, void*, Thread*, unsigned char*, void*, void*, char const*, int, unsigned long)+0x16a</div><div  class="">V  [libjvm.so+0xa6ca9e]  VMError::report_and_die(Thread*, char const*, int, unsigned long, VMErrorType, char const*, void*)+0x28</div><div  class="">V  [libjvm.so+0x3ff306]  report_vm_out_of_memory(char const*, int, unsigned long, VMErrorType, char const*, ...)+0x6a</div><div  class="">V  [libjvm.so+0x2603de]  Chunk::operator new(unsigned long, AllocFailStrategy::AllocFailEnum, unsigned long)+0x108</div><div  class="">V  [libjvm.so+0x260cf2]  Arena::grow(unsigned long, AllocFailStrategy::AllocFailEnum)+0x36</div><div  class="">V  [libjvm.so+0x8d7392]  AdapterHandlerLibrary::create_adapter(AdapterBlob*&, int, BasicType*, bool)+0x39e</div><div  class="">V  [libjvm.so+0x8dcb7e]  AdapterHandlerLibrary::get_adapter(methodHandle const&)+0x41e</div><div  class="">J 5 c1 java.util.ImmutableCollections$SetN.probe(Ljava/lang/Object;)I java.base (56 bytes) @ 0x0000003f696e5858 [0x0000003f696e5700+0x0000000000000158]</div><div  class="">j  java.util.ImmutableCollections$SetN.<init>([Ljava/lang/Object;)V+35 java.base</div><div  class="">j  java.util.Set.of([Ljava/lang/Object;)Ljava/util/Set;+64 java.base</div><div  class="">j  jdk.internal.module.SystemModules$default.moduleDescriptors()[Ljava/lang/module/ModuleDescriptor;+3619 java.base</div><div  class="">j  jdk.internal.module.SystemModuleFinders.of(Ljdk/internal/module/SystemModules;)Ljava/lang/module/ModuleFinder;+1 java.base</div><div  class="">j  jdk.internal.module.ModuleBootstrap.boot2()Ljava/lang/ModuleLayer;+240 java.base</div><div  class="">j  jdk.internal.module.ModuleBootstrap.boot()Ljava/lang/ModuleLayer;+64 java.base</div><div  class="">j  java.lang.System.initPhase2(ZZ)I+0 java.base</div><div  class="">v  ~StubRoutines::call_stub 0x0000003f70c1c49c</div><div  class="">V  [libjvm.so+0x5b790c]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x1d6</div><div  class="">V  [libjvm.so+0x5b7b68]  JavaCalls::call_static(JavaValue*, Klass*, Symbol*, Symbol*, JavaCallArguments*, JavaThread*)+0xe8</div><div  class="">V  [libjvm.so+0xa0281c]  Threads::create_vm(JavaVMInitArgs*, bool*)+0x63c</div><div  class="">V  [libjvm.so+0x647656]  JNI_CreateJavaVM+0x6a</div><div  class="">C  [libjli.so+0x3658]  JavaMain+0x7a</div><div  class="">C  [libjli.so+0x670e]  ThreadJavaMain+0xc</div><div  class=""><br  class=""></div></span></div></span></div><div  class=""><br  class=""><div  class="">15 сент. 2022 г., в 06:25, Xiaolin Zheng <<a  class="" href="mailto:yunyao.zxl@alibaba-inc.com" target="_blank">yunyao.zxl@alibaba-inc.com</a>> написал(а):</div><br  class="Apple-interchange-newline"><div  class=""><div  class="" style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;"><div  class="" style="clear:both;">Hi Vladimir,</div><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;"><span  class="">There are some minor updates for the philosophers in Renaissance discussed days before: </span><span  class="">I have tested the philosophers on my Unmatched board, and found the test itself seems not stable, even if the JMH version. I gave its JMH version a two-day long run, exclusively, but the score varies in the 13000 ms/op range (iterations = 30 by default), even if RVC doesn't get turned on. Have you encountered the same issue?</span></div><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;"><span  class="">+ /home/ubuntu/yunyao/jdk19-release/bin/java -XX:+UnlockExperimentalVMOptions -XX:-UseRVC -jar renaissance-jmh-0.14.1.jar org.renaissance.scala.stm.JmhPhilosophers.runOperation</span><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  14307.472 ± 656.456  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13175.640 ± 303.038  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13474.124 ± 349.349  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13545.786 ± 327.735  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13085.097 ± 306.891  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  12880.270 ± 265.028  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13232.006 ± 209.613  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13334.098 ± 443.757  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13168.990 ± 575.965  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13424.250 ± 381.084  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13655.426 ± 428.624  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  14430.485 ± 488.797  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13999.061 ± 359.320  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13623.308 ± 531.513  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13757.331 ± 373.905  ms/op</div><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;">+ /home/ubuntu/yunyao/jdk19-release/bin/java -XX:+UnlockExperimentalVMOptions -XX:+UseRVC -jar renaissance-jmh-0.14.1.jar org.renaissance.scala.stm.JmhPhilosophers.runOperation</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  12772.517 ± 227.409  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13456.228 ± 498.724  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13727.211 ± 476.491  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13122.838 ± 246.673  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13082.768 ± 405.194  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13905.753 ± 456.474  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13503.479 ± 351.191  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13365.138 ± 380.285  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13842.509 ± 487.629  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13965.286 ± 330.423  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13615.975 ± 352.590  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13564.777 ± 452.947  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  13720.022 ± 519.965  ms/op</div><div  class="" style="clear:both;">JmhPhilosophers.runOperation    ss   40  14033.287 ± 404.377  ms/op</div><span  class="">JmhPhilosophers.runOperation    ss   40  13680.432 ± 539.549  ms/op</span></div><div  class="" style="clear:both;"><span  class=""><span  class=""><br  class=""></span></span></div><div  class="" style="clear:both;"><span  class=""><span  class="">The noise here is a little big; I was wondering if it's stable on the FPGA?</span></span></div><div  class="" style="clear:both;"><span  class=""><span  class=""><br  class=""></span></span></div><div  class="" style="clear:both;"><span  class="">Maybe I need to find some more stable tests anyway.</span></div><div  class="" style="clear:both;"><span  class=""><br  class=""></span></div><div  class="" style="clear:both;"><span  class=""><br  class=""></span></div><div  class="" style="clear:both;"><span  class=""><br  class=""></span></div><div  class="" style="clear:both;"><span  class="">Best,</span></div><div  class="" style="clear:both;"><span  class="">Xiaolin</span></div><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;">------------------------------------------------------------------</div><div  class="" style="clear:both;">From:Vladimir Kempik <<a  class="" href="mailto:vladimir.kempik@gmail.com" target="_blank">vladimir.kempik@gmail.com</a>></div><div  class="" style="clear:both;">Send Time:2022年9月8日(星期四) 20:24</div><div  class="" style="clear:both;">To:郑孝林(云矅) <<a  class="" href="mailto:yunyao.zxl@alibaba-inc.com" target="_blank">yunyao.zxl@alibaba-inc.com</a>></div><div  class="" style="clear:both;">Cc:riscv-port-dev <<a  class="" href="mailto:riscv-port-dev-retn@openjdk.org" target="_blank">riscv-port-dev-retn@openjdk.org</a>>; Aleksey Shipilev <<a  class="" href="mailto:shade@redhat.com" target="_blank">shade@redhat.com</a>>; <a  class="" href="mailto:riscv-port-dev@openjdk.org" target="_blank">riscv-port-dev@openjdk.org</a> <<a  class="" href="mailto:riscv-port-dev@openjdk.org" target="_blank">riscv-port-dev@openjdk.org</a>></div><div  class="" style="clear:both;">Subject:Re: RVC by default?</div><div  class="" style="clear:both;"><br  class=""></div>Hello<div  class="">To be more specific, I saw slight perf decrease with RVC only on a core running on fpga.</div><div  class="">On thead c910 results ( -RVC and + RVC) are on par.</div><div  class=""><br  class=""></div><div  class="">Regards, Vladimir<br  class=""><div  class=""><br  class=""><div  class="">8 сент. 2022 г., в 15:09, Xiaolin Zheng <<a  class="" href="mailto:yunyao.zxl@alibaba-inc.com" target="_blank">yunyao.zxl@alibaba-inc.com</a>> написал(а):</div><br  class="Apple-interchange-newline"><div  class=""><div  class="" style="line-height:1.7;font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;"><div  class="" style="clear:both;"><span  class="">Hi Aleksey and Vladimir,</span></div><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;">The current RVC support is okay but not complete: it only covers ~10% of total instructions emitted (mostly C2 code, including some part of Stub code), and we might want to transform instructions into the compressed counterparts as much as possible, so maybe the design will change from a whitelist mode (the class CompressibleRegion) to a black list mode. There is one implementation at my local branch <a  class="" href="https://github.com/zhengxiaolinX/jdk/commits/REBASE-rvc-beautify" target="_blank">https://github.com/zhengxiaolinX/jdk/commits/REBASE-rvc-beautify</a> (might not be stable yet, I have not gotten enough time to give it a sufficient test on jtregs and specjbb2015/other benchmarks yet). There are plans reserved to commit them (which cover ~20% of instructions under some tests) after reviewing, but this is currently WIP and waiting loom port to merge first.<br  class=""></div><div  class="" style="clear:both;"><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;">And thank you Vladimir for your observations, I will test the Renaissance benchmark as you have mentioned. I have given tests for specjbb2015 months before and found slight performance increase there; as far as I know, the compile time will increase for the transformation logic is extra overhead during the instruction emission phase, such as the code in Assembler::add. Theoretically, when running the compiled code with RVC turning on, though IPC and CPI are not changed, the code size shrinks; I think it should have the same effect as the icache size becoming larger. Maybe something goes wrong? :-) I might need to look into the performance problem in a high priority, so will test the <span  class=" __aliyun_node_has_bgcolor" style="font-family:Tahoma,Arial,STHeiti,SimSun;font-size:14.0px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:.0px;text-transform:none;white-space:normal;word-spacing:.0px;background-color:#ffffff;float:none;display:inline;">Renaissance</span> first.</div><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;">Best,</div><span  class="">Xiaolin</span></div><div  class="" style="clear:both;"><br  class=""></div><div  class="" style="clear:both;">------------------------------------------------------------------</div><div  class="" style="clear:both;">From:Aleksey Shipilev <<a  class="" href="mailto:shade@redhat.com" target="_blank">shade@redhat.com</a>></div><div  class="" style="clear:both;">Send Time:2022年9月8日(星期四) 18:34</div><div  class="" style="clear:both;">To:undefined <undefined>; undefined <undefined></div><div  class="" style="clear:both;">Subject:RVC by default?</div><div  class="" style="clear:both;"><br  class=""></div>Hi,<br  class=""><br  class="">I was looking at some generated code on RISC-V, and realized while we have RVC support, we don't <br  class="">enable it by default. On HiFive Unleashed:<br  class=""><br  class="">$ test-jdk/bin/java -XX:+UnlockExperimentalVMOptions -XX:+PrintFlagsFinal 2>&1 | grep RVC<br  class="">      bool UseRVC                                   = false                           {ARCH <br  class="">experimental} {default}<br  class=""><br  class=""><br  class="">Is there a reason not to do RVC by default? Can we reliably poll the RVC capabilities in current <br  class="">hardware?<br  class=""><br  class="">-- <br  class="">Thanks,<br  class="">-Aleksey</div></div></div><br  class=""></div></div></div></div><br  class=""></div></div></div></div><br  class=""></div></div></blockquote></div></div>