equal
deleted
inserted
replaced
1036 } else { |
1036 } else { |
1037 _full_path = Arguments::GetSharedDynamicArchivePath(); |
1037 _full_path = Arguments::GetSharedDynamicArchivePath(); |
1038 } |
1038 } |
1039 int fd = os::open(_full_path, O_RDONLY | O_BINARY, 0); |
1039 int fd = os::open(_full_path, O_RDONLY | O_BINARY, 0); |
1040 if (fd < 0) { |
1040 if (fd < 0) { |
1041 if (is_static()) { |
1041 if (errno == ENOENT) { |
1042 if (errno == ENOENT) { |
1042 fail_continue("Specified shared archive not found (%s).", _full_path); |
1043 // Not locating the shared archive is ok. |
|
1044 fail_continue("Specified shared archive not found (%s).", _full_path); |
|
1045 } else { |
|
1046 fail_continue("Failed to open shared archive file (%s).", |
|
1047 os::strerror(errno)); |
|
1048 } |
|
1049 } else { |
1043 } else { |
1050 log_warning(cds, dynamic)("specified dynamic archive doesn't exist: %s", _full_path); |
1044 fail_continue("Failed to open shared archive file (%s).", |
|
1045 os::strerror(errno)); |
1051 } |
1046 } |
1052 return false; |
1047 return false; |
1053 } |
1048 } |
1054 |
1049 |
1055 _fd = fd; |
1050 _fd = fd; |