< prev index next > src/hotspot/share/cds/archiveUtils.inline.hpp
Print this page
const bool is_dynamic_dump = CDSConfig::is_dumping_dynamic_archive();
Array<T>* archived_array = ArchiveBuilder::new_ro_array<T>(tmp_array->length());
for (int i = 0; i < tmp_array->length(); i++) {
T ptr = tmp_array->at(i);
- if (!builder->is_in_buffer_space(ptr)) {
+ if (ptr != nullptr && !builder->is_in_buffer_space(ptr)) {
if (is_dynamic_dump && MetaspaceShared::is_in_shared_metaspace(ptr)) {
// We have a pointer that lives in the dynamic archive but points into
// the static archive.
} else {
ptr = builder->get_buffered_addr(ptr);
< prev index next >