8302777: CDS should not relocate heap if mapping fails

Reviewed-by: ccheung
This commit is contained in:
Ioi Lam 2023-02-17 19:34:26 +00:00
parent a917fb3fcf
commit a263f28368

View File

@ -472,7 +472,9 @@ void ArchiveHeapLoader::finish_initialization() {
verify_loaded_heap();
}
}
patch_native_pointers();
if (is_fully_available()) {
patch_native_pointers();
}
}
void ArchiveHeapLoader::finish_loaded_heap() {