hotspot/src/os/bsd/vm/os_bsd.cpp
changeset 46346 4085295dcf51
parent 46331 e3017116b9e5
child 46507 7db40fa6eff7
equal deleted inserted replaced
46345:a5c7cfdd44e4 46346:4085295dcf51
   757   pthread_attr_init(&attr);
   757   pthread_attr_init(&attr);
   758   pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
   758   pthread_attr_setdetachstate(&attr, PTHREAD_CREATE_DETACHED);
   759 
   759 
   760   // calculate stack size if it's not specified by caller
   760   // calculate stack size if it's not specified by caller
   761   size_t stack_size = os::Posix::get_initial_stack_size(thr_type, req_stack_size);
   761   size_t stack_size = os::Posix::get_initial_stack_size(thr_type, req_stack_size);
   762   pthread_attr_setstacksize(&attr, stack_size);
   762   int status = pthread_attr_setstacksize(&attr, stack_size);
       
   763   assert_status(status == 0, status, "pthread_attr_setstacksize");
   763 
   764 
   764   ThreadState state;
   765   ThreadState state;
   765 
   766 
   766   {
   767   {
   767     pthread_t tid;
   768     pthread_t tid;