--- a/hotspot/src/cpu/x86/vm/templateInterpreterGenerator_x86.cpp Fri Dec 11 13:18:10 2015 +0000
+++ b/hotspot/src/cpu/x86/vm/templateInterpreterGenerator_x86.cpp Fri Dec 11 09:07:07 2015 -0800
@@ -541,8 +541,8 @@
__ subptr(rax, stack_size);
// Use the maximum number of pages we might bang.
- const int max_pages = StackShadowPages > (StackRedPages+StackYellowPages) ? StackShadowPages :
- (StackRedPages+StackYellowPages);
+ 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);