src/os/solaris/vm/os_solaris.cpp

changeset 8420
b5c3e9670fa0
parent 8317
ebd6745380b9
child 8604
04d83ba48607
child 9289
427b2fb1944f
child 9413
5aa3d728164a
equal deleted inserted replaced
8419:65a0107d52ed 8420:b5c3e9670fa0
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 Thread* t = ThreadLocalStorage::thread(); 6251 INTERRUPTIBLE_RETURN_INT(::write(fd, buf, nBytes), os::Solaris::clear_interrupted);
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 }
6259 } 6252 }
6260 6253
6261 int os::close(int fd) { 6254 int os::close(int fd) {
6262 return ::close(fd); 6255 return ::close(fd);
6263 } 6256 }

mercurial