diff a/src/hotspot/os/solaris/os_solaris.cpp b/src/hotspot/os/solaris/os_solaris.cpp --- a/src/hotspot/os/solaris/os_solaris.cpp +++ b/src/hotspot/os/solaris/os_solaris.cpp @@ -452,13 +452,11 @@ board += 1; if (board * processors_per_board + 0 >= limit_id) { board = 0; } } - if (available_id != NULL) { - FREE_C_HEAP_ARRAY(bool, available_id); - } + FREE_C_HEAP_ARRAY(bool, available_id); return true; } void os::set_native_thread_name(const char *name) { if (Solaris::_pthread_setname_np != NULL) { @@ -491,13 +489,11 @@ result = assign_distribution(id_array, id_length, distribution, length); } else { result = false; } } - if (id_array != NULL) { - FREE_C_HEAP_ARRAY(processorid_t, id_array); - } + FREE_C_HEAP_ARRAY(processorid_t, id_array); return result; } bool os::bind_to_processor(uint processor_id) { // We assume that a processorid_t can be stored in a uint.