src/cpu/x86/vm/templateInterpreter_x86_64.cpp
Print this page
*** 475,486 ****
// 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);
// add in the red and yellow zone sizes
__ addptr(rax, max_pages * page_size);
// check against the current stack bottom
--- 475,486 ----
// 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);
// add in the red and yellow zone sizes
__ addptr(rax, max_pages * page_size);
// check against the current stack bottom