Skip to content

Commit c971925

Browse files
author
Olga Mikhaltsova
committed
8318157: RISC-V: implement ensureMaterializedForStackWalk intrinsic
Backport-of: d6b4aa01a20eb7ecd44602a9fab3e3380bff3d3a
1 parent 2518d20 commit c971925

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
@@ -2352,6 +2352,11 @@ encode %{
23522352
ciEnv::current()->record_failure("CodeCache is full");
23532353
return;
23542354
}
2355+
} else if (_method->intrinsic_id() == vmIntrinsicID::_ensureMaterializedForStackWalk) {
2356+
// The NOP here is purely to ensure that eliding a call to
2357+
// JVM_EnsureMaterializedForStackWalk doesn't change the code size.
2358+
__ nop();
2359+
__ block_comment("call JVM_EnsureMaterializedForStackWalk (elided)");
23552360
} else {
23562361
int method_index = resolved_method_index(cbuf);
23572362
RelocationHolder rspec = _optimized_virtual ? opt_virtual_call_Relocation::spec(method_index)

0 commit comments

Comments
 (0)