src/hotspot/share/aot/aotCodeHeap.cpp
changeset 58084 cddef3bde924
parent 57786 948ac3112da8
child 58226 408c445d04e8
equal deleted inserted replaced
58083:9046db64ca39 58084:cddef3bde924
   210 AOTLib::~AOTLib() {
   210 AOTLib::~AOTLib() {
   211   os::free((void*) _name);
   211   os::free((void*) _name);
   212 }
   212 }
   213 
   213 
   214 AOTCodeHeap::~AOTCodeHeap() {
   214 AOTCodeHeap::~AOTCodeHeap() {
   215   if (_classes != NULL) {
   215   FREE_C_HEAP_ARRAY(AOTClass, _classes);
   216     FREE_C_HEAP_ARRAY(AOTClass, _classes);
   216   FREE_C_HEAP_ARRAY(CodeToAMethod, _code_to_aot);
   217   }
       
   218   if (_code_to_aot != NULL) {
       
   219     FREE_C_HEAP_ARRAY(CodeToAMethod, _code_to_aot);
       
   220   }
       
   221 }
   217 }
   222 
   218 
   223 AOTLib::AOTLib(void* handle, const char* name, int dso_id) : _valid(true), _dl_handle(handle), _dso_id(dso_id) {
   219 AOTLib::AOTLib(void* handle, const char* name, int dso_id) : _valid(true), _dl_handle(handle), _dso_id(dso_id) {
   224   _name = (const char*) os::strdup(name);
   220   _name = (const char*) os::strdup(name);
   225 
   221