8242524: Use different default CDS archives depending on UseCompressOops

Reviewed-by: erikj, iklam, ccheung
This commit is contained in:
Yumin Qi 2020-05-14 14:24:55 -07:00
parent 71cc95e4b1
commit 8da07d1ae9
5 changed files with 46 additions and 12 deletions

View file

@ -1069,6 +1069,7 @@ bool FileMapInfo::open_for_read() {
} else {
_full_path = Arguments::GetSharedDynamicArchivePath();
}
log_info(cds)("trying to map %s", _full_path);
int fd = os::open(_full_path, O_RDONLY | O_BINARY, 0);
if (fd < 0) {
if (errno == ENOENT) {