8214816: os::read() should not transition to _thread_blocked with safepoint check on Solaris

Reviewed-by: jiangli, mgronlun
This commit is contained in:
David Holmes 2019-01-13 16:54:01 -05:00
parent 1c5496ac8b
commit c6653432a5
14 changed files with 24 additions and 96 deletions

View file

@ -4027,14 +4027,6 @@ char* os::pd_attempt_reserve_memory_at(size_t bytes, char* requested_addr) {
}
}
size_t os::read(int fd, void *buf, unsigned int nBytes) {
return ::read(fd, buf, nBytes);
}
size_t os::read_at(int fd, void *buf, unsigned int nBytes, jlong offset) {
return ::pread(fd, buf, nBytes, offset);
}
// Sleep forever; naked call to OS-specific sleep; use with CAUTION
void os::infinite_sleep() {
while (true) { // sleep forever ...