hotspot/src/share/vm/runtime/os.cpp
changeset 35071 a0910b1d3e0d
parent 35061 be6025ebffea
child 35148 5cfafc99d791
child 35201 996db89f378e
equal deleted inserted replaced
35066:cd4ac076bf7f 35071:a0910b1d3e0d
  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