< prev index next > src/hotspot/share/code/codeBlob.cpp
Print this page
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) {
delete _oop_maps;
_oop_maps = nullptr;
}
NOT_PRODUCT(_asm_remarks.clear());
NOT_PRODUCT(_dbg_strings.clear());
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 && !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());
void CodeBlob::print_code_on(outputStream* st) {
ResourceMark m;
Disassembler::decode(this, st);
}
+ void CodeBlob::prepare_for_archiving() {
+ set_name(nullptr);
+ _oop_maps = nullptr;
+ _mutable_data = nullptr;
+ #ifndef PRODUCT
+ asm_remarks().clear();
+ dbg_strings().clear();
+ #endif /* PRODUCT */
+ }
+
//-----------------------------------------------------------------------------------------
// Creates a RuntimeBlob from a CodeBuffer and copy code and relocation info.
RuntimeBlob::RuntimeBlob(
const char* name,
< prev index next >