diff --git a/src/hotspot/os/linux/os_linux.inline.hpp b/src/hotspot/os/linux/os_linux.inline.hpp index 89411654159..103e5f09e9f 100644 --- a/src/hotspot/os/linux/os_linux.inline.hpp +++ b/src/hotspot/os/linux/os_linux.inline.hpp @@ -102,12 +102,6 @@ inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { return res; } -inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { - size_t res; - RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res); - return res; -} - inline int os::close(int fd) { return ::close(fd); } diff --git a/src/hotspot/os/windows/os_windows.inline.hpp b/src/hotspot/os/windows/os_windows.inline.hpp index 1a1897ede8f..1069438f4e5 100644 --- a/src/hotspot/os/windows/os_windows.inline.hpp +++ b/src/hotspot/os/windows/os_windows.inline.hpp @@ -82,10 +82,6 @@ inline size_t os::restartable_read(int fd, void *buf, unsigned int nBytes) { return ::read(fd, buf, nBytes); } -inline size_t os::write(int fd, const void *buf, unsigned int nBytes) { - return ::write(fd, buf, nBytes); -} - inline int os::close(int fd) { return ::close(fd); }