equal
deleted
inserted
replaced
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; |