diff -r a5c7cfdd44e4 -r 4085295dcf51 hotspot/src/os/aix/vm/os_aix.cpp --- a/hotspot/src/os/aix/vm/os_aix.cpp Thu Mar 23 17:45:13 2017 +0100 +++ b/hotspot/src/os/aix/vm/os_aix.cpp Thu Mar 23 11:10:55 2017 -0700 @@ -877,7 +877,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"); // Configure libc guard page. pthread_attr_setguardsize(&attr, os::Aix::default_guard_size(thr_type));