hotspot/src/os/bsd/vm/os_bsd.cpp
changeset 46346 4085295dcf51
parent 46331 e3017116b9e5
child 46507 7db40fa6eff7
--- a/hotspot/src/os/bsd/vm/os_bsd.cpp	Thu Mar 23 17:45:13 2017 +0100
+++ b/hotspot/src/os/bsd/vm/os_bsd.cpp	Thu Mar 23 11:10:55 2017 -0700
@@ -759,7 +759,8 @@
 
   // calculate stack size if it's not specified by caller
   size_t stack_size = os::Posix::get_initial_stack_size(thr_type, req_stack_size);
-  pthread_attr_setstacksize(&attr, stack_size);
+  int status = pthread_attr_setstacksize(&attr, stack_size);
+  assert_status(status == 0, status, "pthread_attr_setstacksize");
 
   ThreadState state;