--- a/hotspot/src/share/vm/memory/filemap.cpp Tue Mar 22 18:41:09 2016 -0700
+++ b/hotspot/src/share/vm/memory/filemap.cpp Wed Mar 23 23:36:29 2016 +0100
@@ -372,7 +372,7 @@
fail_continue("Specified shared archive not found.");
} else {
fail_continue("Failed to open shared archive file (%s).",
- strerror(errno));
+ os::strerror(errno));
}
return false;
}
@@ -402,7 +402,7 @@
int fd = open(_full_path, O_RDWR | O_CREAT | O_TRUNC | O_BINARY, 0444);
if (fd < 0) {
fail_stop("Unable to create shared archive file %s: (%s).", _full_path,
- strerror(errno));
+ os::strerror(errno));
}
_fd = fd;
_file_offset = 0;