Mercurial > hg > graal-jvmci-8
diff src/share/vm/jvmci/jvmciRuntime.cpp @ 22585:678f989f3953
JVMCIRuntime::parse_lines use os::default_file_open_flags for opening files
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Fri, 18 Sep 2015 16:23:13 +0200 |
parents | 569c82ebb96e |
children | cf99b5e5b0b4 |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciRuntime.cpp Fri Sep 18 10:49:43 2015 +0200 +++ b/src/share/vm/jvmci/jvmciRuntime.cpp Fri Sep 18 16:23:13 2015 +0200 @@ -1012,7 +1012,7 @@ void JVMCIRuntime::parse_lines(char* path, ParseClosure* closure, bool warnStatFailure) { struct stat st; if (::stat(path, &st) == 0 && (st.st_mode & S_IFREG) == S_IFREG) { // exists & is regular file - int file_handle = ::open(path, 0, 0); + int file_handle = os::open(path, os::default_file_open_flags(), 0); if (file_handle != -1) { char* buffer = NEW_C_HEAP_ARRAY(char, st.st_size + 1, mtInternal); int num_read;