src/hotspot/os/solaris/os_solaris.cpp
changeset 58084 cddef3bde924
parent 58083 9046db64ca39
child 58196 cea6839598e8
equal deleted inserted replaced
58083:9046db64ca39 58084:cddef3bde924
   452     board += 1;
   452     board += 1;
   453     if (board * processors_per_board + 0 >= limit_id) {
   453     if (board * processors_per_board + 0 >= limit_id) {
   454       board = 0;
   454       board = 0;
   455     }
   455     }
   456   }
   456   }
   457   if (available_id != NULL) {
   457   FREE_C_HEAP_ARRAY(bool, available_id);
   458     FREE_C_HEAP_ARRAY(bool, available_id);
       
   459   }
       
   460   return true;
   458   return true;
   461 }
   459 }
   462 
   460 
   463 void os::set_native_thread_name(const char *name) {
   461 void os::set_native_thread_name(const char *name) {
   464   if (Solaris::_pthread_setname_np != NULL) {
   462   if (Solaris::_pthread_setname_np != NULL) {
   491       result = assign_distribution(id_array, id_length, distribution, length);
   489       result = assign_distribution(id_array, id_length, distribution, length);
   492     } else {
   490     } else {
   493       result = false;
   491       result = false;
   494     }
   492     }
   495   }
   493   }
   496   if (id_array != NULL) {
   494   FREE_C_HEAP_ARRAY(processorid_t, id_array);
   497     FREE_C_HEAP_ARRAY(processorid_t, id_array);
       
   498   }
       
   499   return result;
   495   return result;
   500 }
   496 }
   501 
   497 
   502 bool os::bind_to_processor(uint processor_id) {
   498 bool os::bind_to_processor(uint processor_id) {
   503   // We assume that a processorid_t can be stored in a uint.
   499   // We assume that a processorid_t can be stored in a uint.