src/hotspot/os/aix/os_aix.cpp
changeset 50502 9c361050293f
parent 50429 83aec1d357d4
child 50667 cc58f1fa0438
equal deleted inserted replaced
50501:3787e9158925 50502:9c361050293f
   897   // thread size in attr unchanged. If this is the minimal stack size as set
   897   // thread size in attr unchanged. If this is the minimal stack size as set
   898   // by pthread_attr_init this leads to crashes after thread creation. E.g. the
   898   // by pthread_attr_init this leads to crashes after thread creation. E.g. the
   899   // guard pages might not fit on the tiny stack created.
   899   // guard pages might not fit on the tiny stack created.
   900   int ret = pthread_attr_setstacksize(&attr, stack_size);
   900   int ret = pthread_attr_setstacksize(&attr, stack_size);
   901   if (ret != 0) {
   901   if (ret != 0) {
   902     log_warning(os, thread)("The thread stack size specified is invalid: " SIZE_FORMAT "k",
   902     log_warning(os, thread)("The %sthread stack size specified is invalid: " SIZE_FORMAT "k",
       
   903                             (thr_type == compiler_thread) ? "compiler " : ((thr_type == java_thread) ? "" : "VM "),
   903                             stack_size / K);
   904                             stack_size / K);
       
   905     thread->set_osthread(NULL);
       
   906     delete osthread;
       
   907     return false;
   904   }
   908   }
   905 
   909 
   906   // Save some cycles and a page by disabling OS guard pages where we have our own
   910   // Save some cycles and a page by disabling OS guard pages where we have our own
   907   // VM guard pages (in java threads). For other threads, keep system default guard
   911   // VM guard pages (in java threads). For other threads, keep system default guard
   908   // pages in place.
   912   // pages in place.