Skip to content

Commit a263f28

Browse files
committed
8302777: CDS should not relocate heap if mapping fails
Reviewed-by: ccheung
1 parent a917fb3 commit a263f28

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hotspot/share/cds/archiveHeapLoader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,9 @@ void ArchiveHeapLoader::finish_initialization() {
472472
verify_loaded_heap();
473473
}
474474
}
475-
patch_native_pointers();
475+
if (is_fully_available()) {
476+
patch_native_pointers();
477+
}
476478
}
477479

478480
void ArchiveHeapLoader::finish_loaded_heap() {

0 commit comments

Comments
 (0)