hotspot/src/share/vm/runtime/os.cpp
changeset 33593 60764a78fa5c
parent 33148 68fa8b6c4340
child 33604 ad1cd9269bd4
equal deleted inserted replaced
33579:01ade4446d96 33593:60764a78fa5c
  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