src/os/solaris/vm/os_solaris.cpp

changeset 8317
ebd6745380b9
parent 8211
b40d68340feb
child 8420
b5c3e9670fa0
equal deleted inserted replaced
8316:626f594dffa6 8317:ebd6745380b9
6246 6246
6247 return true; 6247 return true;
6248 } 6248 }
6249 6249
6250 size_t os::write(int fd, const void *buf, unsigned int nBytes) { 6250 size_t os::write(int fd, const void *buf, unsigned int nBytes) {
6251 INTERRUPTIBLE_RETURN_INT(::write(fd, buf, nBytes), os::Solaris::clear_interrupted); 6251 Thread* t = ThreadLocalStorage::thread();
6252 if (t->is_Java_thread()) {
6253 INTERRUPTIBLE_RETURN_INT(::write(fd, buf, nBytes), os::Solaris::clear_interrupted);
6254 } else {
6255 size_t res;
6256 RESTARTABLE((size_t) ::write(fd, buf, (size_t) nBytes), res);
6257 return res;
6258 }
6252 } 6259 }
6253 6260
6254 int os::close(int fd) { 6261 int os::close(int fd) {
6255 return ::close(fd); 6262 return ::close(fd);
6256 } 6263 }

mercurial