Skip to content

Commit e36c581

Browse files
author
duke
committed
Backport 4ddd3de
1 parent 37c05c0 commit e36c581

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/hotspot/cpu/aarch64/interp_masm_aarch64.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,13 @@ void InterpreterMacroAssembler::dispatch_base(TosState state,
393393
bool verifyoop,
394394
bool generate_poll) {
395395
if (VerifyActivationFrameSize) {
396-
Unimplemented();
396+
Label L;
397+
sub(rscratch2, rfp, esp);
398+
int min_frame_size = (frame::link_offset - frame::interpreter_frame_initial_sp_offset) * wordSize;
399+
subs(rscratch2, rscratch2, min_frame_size);
400+
br(Assembler::GE, L);
401+
stop("broken stack frame");
402+
bind(L);
397403
}
398404
if (verifyoop) {
399405
interp_verify_oop(r0, state);

0 commit comments

Comments
 (0)