--- a/src/hotspot/share/ci/ciEnv.cpp Sun Feb 24 16:10:52 2019 -0500
+++ b/src/hotspot/share/ci/ciEnv.cpp Mon Feb 18 16:17:48 2019 +0100
@@ -1253,7 +1253,7 @@
static char buffer[O_BUFLEN];
int ret = jio_snprintf(buffer, O_BUFLEN, "replay_pid%p_compid%d.log", os::current_process_id(), compile_id);
if (ret > 0) {
- int fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
+ int fd = os::open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
if (fd != -1) {
FILE* replay_data_file = os::open(fd, "w");
if (replay_data_file != NULL) {
@@ -1271,7 +1271,7 @@
static char buffer[O_BUFLEN];
int ret = jio_snprintf(buffer, O_BUFLEN, "inline_pid%p_compid%d.log", os::current_process_id(), compile_id);
if (ret > 0) {
- int fd = open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
+ int fd = os::open(buffer, O_RDWR | O_CREAT | O_TRUNC, 0666);
if (fd != -1) {
FILE* inline_data_file = os::open(fd, "w");
if (inline_data_file != NULL) {