mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 02:54:35 +02:00
8230398: Remove NULL checks before FREE_C_HEAP_ARRAY
Reviewed-by: dholmes, kbarrett, tschatzl
This commit is contained in:
parent
eafb888c18
commit
4b6f9ed07f
44 changed files with 86 additions and 183 deletions
|
@ -454,9 +454,7 @@ static bool assign_distribution(processorid_t* id_array,
|
|||
board = 0;
|
||||
}
|
||||
}
|
||||
if (available_id != NULL) {
|
||||
FREE_C_HEAP_ARRAY(bool, available_id);
|
||||
}
|
||||
FREE_C_HEAP_ARRAY(bool, available_id);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
@ -493,9 +491,7 @@ bool os::distribute_processes(uint length, uint* distribution) {
|
|||
result = false;
|
||||
}
|
||||
}
|
||||
if (id_array != NULL) {
|
||||
FREE_C_HEAP_ARRAY(processorid_t, id_array);
|
||||
}
|
||||
FREE_C_HEAP_ARRAY(processorid_t, id_array);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue