@@ -205,11 +205,11 @@ assert(_mutable_data != nullptr, "should never be null"); if (_mutable_data != blob_end()) { os::free(_mutable_data); _mutable_data = blob_end(); // Valid not null address } - if (_oop_maps != nullptr) { + if (_oop_maps != nullptr && !AOTCodeCache::is_address_in_aot_cache((address)_oop_maps)) { delete _oop_maps; _oop_maps = nullptr; } NOT_PRODUCT(_asm_remarks.clear()); NOT_PRODUCT(_dbg_strings.clear());