Skip to content

Commit 8193856

Browse files
committed
8362336: Revert changes in metaspaceShared.cpp done via JDK-8356807
Reviewed-by: iklam
1 parent 10ae602 commit 8193856

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hotspot/share/cds/metaspaceShared.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,20 +1428,20 @@ FileMapInfo* MetaspaceShared::open_dynamic_archive() {
14281428
MapArchiveResult MetaspaceShared::map_archives(FileMapInfo* static_mapinfo, FileMapInfo* dynamic_mapinfo,
14291429
bool use_requested_addr) {
14301430
if (use_requested_addr && static_mapinfo->requested_base_address() == nullptr) {
1431-
report_loading_error("Archive(s) were created with -XX:SharedBaseAddress=0. Always map at os-selected address.");
1431+
aot_log_info(aot)("Archive(s) were created with -XX:SharedBaseAddress=0. Always map at os-selected address.");
14321432
return MAP_ARCHIVE_MMAP_FAILURE;
14331433
}
14341434

14351435
PRODUCT_ONLY(if (ArchiveRelocationMode == 1 && use_requested_addr) {
14361436
// For product build only -- this is for benchmarking the cost of doing relocation.
14371437
// For debug builds, the check is done below, after reserving the space, for better test coverage
14381438
// (see comment below).
1439-
report_loading_error("ArchiveRelocationMode == 1: always map archive(s) at an alternative address");
1439+
aot_log_info(aot)("ArchiveRelocationMode == 1: always map archive(s) at an alternative address");
14401440
return MAP_ARCHIVE_MMAP_FAILURE;
14411441
});
14421442

14431443
if (ArchiveRelocationMode == 2 && !use_requested_addr) {
1444-
report_loading_error("ArchiveRelocationMode == 2: never map archive(s) at an alternative address");
1444+
aot_log_info(aot)("ArchiveRelocationMode == 2: never map archive(s) at an alternative address");
14451445
return MAP_ARCHIVE_MMAP_FAILURE;
14461446
};
14471447

0 commit comments

Comments
 (0)