src/cpu/x86/vm/templateInterpreter_x86_32.cpp
Print this page
*** 504,515 ****
// Add stack base to locals and subtract stack size
__ addptr(rax, stack_base);
__ subptr(rax, stack_size);
// Use the maximum number of pages we might bang.
! const int max_pages = StackShadowPages > (StackRedPages+StackYellowPages) ? StackShadowPages :
! (StackRedPages+StackYellowPages);
__ addptr(rax, max_pages * page_size);
// check against the current stack bottom
__ cmpptr(rsp, rax);
__ jcc(Assembler::above, after_frame_check_pop);
--- 504,515 ----
// Add stack base to locals and subtract stack size
__ addptr(rax, stack_base);
__ subptr(rax, stack_size);
// Use the maximum number of pages we might bang.
! const int max_pages = StackShadowPages > (StackRedPages+StackYellowPages+StackReservedPages) ? StackShadowPages :
! (StackRedPages+StackYellowPages+StackReservedPages);
__ addptr(rax, max_pages * page_size);
// check against the current stack bottom
__ cmpptr(rsp, rax);
__ jcc(Assembler::above, after_frame_check_pop);