8301098: Remove dead code FileMapInfo::stop_sharing_and_unmap()

Reviewed-by: coleenp, ccheung
This commit is contained in:
Ioi Lam 2023-01-25 20:04:50 +00:00
parent 9f0887e205
commit adcfd25735
2 changed files with 0 additions and 26 deletions
src/hotspot/share/cds

@ -2755,29 +2755,6 @@ bool FileMapInfo::validate_header() {
}
}
// Unmap mapped regions of shared space.
void FileMapInfo::stop_sharing_and_unmap(const char* msg) {
MetaspaceShared::set_shared_metaspace_range(nullptr, nullptr, nullptr);
FileMapInfo *map_info = FileMapInfo::current_info();
if (map_info) {
map_info->fail_continue("%s", msg);
for (int i = 0; i < MetaspaceShared::num_non_heap_regions; i++) {
if (!HeapShared::is_heap_region(i)) {
map_info->unmap_region(i);
}
}
// Dealloc the archive heap regions only without unmapping. The regions are part
// of the java heap. Unmapping of the heap regions are managed by GC.
map_info->dealloc_heap_regions(open_heap_regions,
num_open_heap_regions);
map_info->dealloc_heap_regions(closed_heap_regions,
num_closed_heap_regions);
} else if (DumpSharedSpaces) {
fail_stop("%s", msg);
}
}
#if INCLUDE_JVMTI
ClassPathEntry** FileMapInfo::_classpath_entries_for_jvmti = nullptr;

@ -492,9 +492,6 @@ public:
NOT_CDS(return false;)
}
// Stop CDS sharing and unmap CDS regions.
static void stop_sharing_and_unmap(const char* msg);
static void allocate_shared_path_table(TRAPS);
static void copy_shared_path_table(ClassLoaderData* loader_data, TRAPS);
static void clone_shared_path_table(TRAPS);