mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +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
|
@ -212,12 +212,8 @@ AOTLib::~AOTLib() {
|
|||
}
|
||||
|
||||
AOTCodeHeap::~AOTCodeHeap() {
|
||||
if (_classes != NULL) {
|
||||
FREE_C_HEAP_ARRAY(AOTClass, _classes);
|
||||
}
|
||||
if (_code_to_aot != NULL) {
|
||||
FREE_C_HEAP_ARRAY(CodeToAMethod, _code_to_aot);
|
||||
}
|
||||
FREE_C_HEAP_ARRAY(AOTClass, _classes);
|
||||
FREE_C_HEAP_ARRAY(CodeToAMethod, _code_to_aot);
|
||||
}
|
||||
|
||||
AOTLib::AOTLib(void* handle, const char* name, int dso_id) : _valid(true), _dl_handle(handle), _dso_id(dso_id) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue