Skip to content

Commit d6b4aa0

Browse files
Olga MikhaltsovaVladimir Kempik
Olga Mikhaltsova
authored and
Vladimir Kempik
committed
8318157: RISC-V: implement ensureMaterializedForStackWalk intrinsic
Reviewed-by: fyang
1 parent 7766785 commit d6b4aa0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/hotspot/cpu/riscv/riscv.ad

+5
Original file line numberDiff line numberDiff line change
@@ -2378,6 +2378,11 @@ encode %{
23782378
ciEnv::current()->record_failure("CodeCache is full");
23792379
return;
23802380
}
2381+
} else if (_method->intrinsic_id() == vmIntrinsicID::_ensureMaterializedForStackWalk) {
2382+
// The NOP here is purely to ensure that eliding a call to
2383+
// JVM_EnsureMaterializedForStackWalk doesn't change the code size.
2384+
__ nop();
2385+
__ block_comment("call JVM_EnsureMaterializedForStackWalk (elided)");
23812386
} else {
23822387
int method_index = resolved_method_index(cbuf);
23832388
RelocationHolder rspec = _optimized_virtual ? opt_virtual_call_Relocation::spec(method_index)

0 commit comments

Comments
 (0)