equal
deleted
inserted
replaced
1392 } |
1392 } |
1393 |
1393 |
1394 // Returns true if the current stack pointer is above the stack shadow |
1394 // Returns true if the current stack pointer is above the stack shadow |
1395 // pages, false otherwise. |
1395 // pages, false otherwise. |
1396 |
1396 |
1397 bool os::stack_shadow_pages_available(Thread *thread, methodHandle method) { |
1397 bool os::stack_shadow_pages_available(Thread *thread, const methodHandle& method) { |
1398 assert(StackRedPages > 0 && StackYellowPages > 0,"Sanity check"); |
1398 assert(StackRedPages > 0 && StackYellowPages > 0,"Sanity check"); |
1399 address sp = current_stack_pointer(); |
1399 address sp = current_stack_pointer(); |
1400 // Check if we have StackShadowPages above the yellow zone. This parameter |
1400 // Check if we have StackShadowPages above the yellow zone. This parameter |
1401 // is dependent on the depth of the maximum VM call stack possible from |
1401 // is dependent on the depth of the maximum VM call stack possible from |
1402 // the handler for stack overflow. 'instanceof' in the stack overflow |
1402 // the handler for stack overflow. 'instanceof' in the stack overflow |