8318157: RISC-V: implement ensureMaterializedForStackWalk intrinsic

Reviewed-by: fyang
This commit is contained in:
Olga Mikhaltsova 2023-11-30 08:15:34 +00:00 committed by Vladimir Kempik
parent 7766785098
commit d6b4aa01a2

View File

@ -2378,6 +2378,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)