equal
deleted
inserted
replaced
1384 // the handler for stack overflow. 'instanceof' in the stack overflow |
1384 // the handler for stack overflow. 'instanceof' in the stack overflow |
1385 // handler or a println uses at least 8k stack of VM and native code |
1385 // handler or a println uses at least 8k stack of VM and native code |
1386 // respectively. |
1386 // respectively. |
1387 const int framesize_in_bytes = |
1387 const int framesize_in_bytes = |
1388 Interpreter::size_top_interpreter_activation(method()) * wordSize; |
1388 Interpreter::size_top_interpreter_activation(method()) * wordSize; |
1389 int reserved_area = ((StackShadowPages + StackRedPages + StackYellowPages) |
1389 int reserved_area = ((StackShadowPages + StackRedPages + StackYellowPages |
1390 * vm_page_size()) + framesize_in_bytes; |
1390 + StackReservedPages) * vm_page_size()) |
|
1391 + framesize_in_bytes; |
1391 // The very lower end of the stack |
1392 // The very lower end of the stack |
1392 address stack_limit = thread->stack_base() - thread->stack_size(); |
1393 address stack_limit = thread->stack_base() - thread->stack_size(); |
1393 return (sp > (stack_limit + reserved_area)); |
1394 return (sp > (stack_limit + reserved_area)); |
1394 } |
1395 } |
1395 |
1396 |