8318157: RISC-V: implement ensureMaterializedForStackWalk intrinsic

Backport-of: d6b4aa01a2
This commit is contained in:
Olga Mikhaltsova
2024-01-30 21:13:28 +00:00
committed by Vitaly Provodin
parent 07e8d4b1f1
commit 0d5eec9b24

View File

@@ -2352,6 +2352,11 @@ encode %{
ciEnv::current()->record_failure("CodeCache is full");
return;
}
} else if (_method->intrinsic_id() == vmIntrinsicID::_ensureMaterializedForStackWalk) {
// The NOP here is purely to ensure that eliding a call to
// JVM_EnsureMaterializedForStackWalk doesn't change the code size.
__ nop();
__ block_comment("call JVM_EnsureMaterializedForStackWalk (elided)");
} else {
int method_index = resolved_method_index(cbuf);
RelocationHolder rspec = _optimized_virtual ? opt_virtual_call_Relocation::spec(method_index)