Skip to content

Commit d46f769

Browse files
author
Jaroslav Bachorik
committed
8315380: AsyncGetCallTrace crash in frame::safe_for_sender
Reviewed-by: phh, shade, apangin
1 parent 8894d6a commit d46f769

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hotspot/cpu/aarch64/frame_aarch64.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ bool frame::safe_for_sender(JavaThread *thread) {
8484
// So unextended sp must be within the stack but we need not to check
8585
// that unextended sp >= sp
8686

87-
bool unextended_sp_safe = (unextended_sp < thread->stack_base());
87+
bool unextended_sp_safe = (unextended_sp < thread->stack_base() && unextended_sp >= thread->stack_end());
8888

8989
if (!unextended_sp_safe) {
9090
return false;

0 commit comments

Comments
 (0)