8344526: RISC-V: implement -XX:+VerifyActivationFrameSize
Co-authored-by: Fei Yang <fyang@openjdk.org> Reviewed-by: mli, fyang
This commit is contained in:
parent
13439113c3
commit
4fbf272017
@ -441,7 +441,14 @@ void InterpreterMacroAssembler::dispatch_base(TosState state,
|
|||||||
Register Rs) {
|
Register Rs) {
|
||||||
// Pay attention to the argument Rs, which is acquiesce in t0.
|
// Pay attention to the argument Rs, which is acquiesce in t0.
|
||||||
if (VerifyActivationFrameSize) {
|
if (VerifyActivationFrameSize) {
|
||||||
Unimplemented();
|
Label L;
|
||||||
|
sub(t1, fp, esp);
|
||||||
|
int min_frame_size =
|
||||||
|
(frame::link_offset - frame::interpreter_frame_initial_sp_offset + frame::metadata_words) * wordSize;
|
||||||
|
sub(t1, t1, min_frame_size);
|
||||||
|
bgez(t1, L);
|
||||||
|
stop("broken stack frame");
|
||||||
|
bind(L);
|
||||||
}
|
}
|
||||||
if (verifyoop && state == atos) {
|
if (verifyoop && state == atos) {
|
||||||
verify_oop(x10);
|
verify_oop(x10);
|
||||||
|
Loading…
Reference in New Issue
Block a user