Mercurial > hg > graal-jvmci-8
changeset 22553:114750c43459
JVMCIRuntime::parse_properties use ::read instead of os::read
author | Stefan Anzinger <stefan.anzinger@oracle.com> |
---|---|
date | Mon, 14 Sep 2015 14:40:16 +0200 |
parents | 778602e2403c |
children | f9f6d683c1d5 |
files | src/share/vm/jvmci/jvmciRuntime.cpp |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/share/vm/jvmci/jvmciRuntime.cpp Fri Sep 11 14:11:11 2015 -0700 +++ b/src/share/vm/jvmci/jvmciRuntime.cpp Mon Sep 14 14:40:16 2015 +0200 @@ -988,18 +988,18 @@ void JVMCIRuntime::parse_lines(char* path, ParseClosure* closure, bool warnStatFailure) { struct stat st; - if (os::stat(path, &st) == 0 && (st.st_mode & S_IFREG) == S_IFREG) { // exists & is regular file - int file_handle = os::open(path, 0, 0); + if (::stat(path, &st) == 0 && (st.st_mode & S_IFREG) == S_IFREG) { // exists & is regular file + int file_handle = ::open(path, 0, 0); if (file_handle != -1) { char* buffer = NEW_C_HEAP_ARRAY(char, st.st_size + 1, mtInternal); int num_read; - num_read = (int) os::read(file_handle, (char*) buffer, st.st_size); + num_read = (int) ::read(file_handle, (char*) buffer, st.st_size); if (num_read == -1) { warning("Error reading file %s due to %s", path, strerror(errno)); } else if (num_read != st.st_size) { warning("Only read %d of " SIZE_FORMAT " bytes from %s", num_read, (size_t) st.st_size, path); } - os::close(file_handle); + ::close(file_handle); closure->set_filename(path); if (num_read == st.st_size) { buffer[num_read] = '\0';