src/hotspot/share/memory/filemap.cpp
changeset 59235 0f41ac6bb9dd
parent 59128 ac11b83e0f38
child 59282 f5f129bfa403
equal deleted inserted replaced
59234:ee0030a2a306 59235:0f41ac6bb9dd
  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;