mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8295792: Clean up old async close code
Reviewed-by: alanb
This commit is contained in:
parent
5ac6f185ee
commit
2f3f3b6185
12 changed files with 4 additions and 1159 deletions
|
@ -224,21 +224,6 @@ void NET_ThrowUnknownHostExceptionWithGaiError(JNIEnv *env,
|
|||
}
|
||||
}
|
||||
|
||||
#if defined(_AIX)
|
||||
|
||||
/* Initialize stubs for blocking I/O workarounds (see src/solaris/native/java/net/linux_close.c) */
|
||||
extern void aix_close_init();
|
||||
|
||||
void platformInit () {
|
||||
aix_close_init();
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
void platformInit () {}
|
||||
|
||||
#endif
|
||||
|
||||
JNIEXPORT jint JNICALL
|
||||
NET_EnableFastTcpLoopback(int fd) {
|
||||
return 0;
|
||||
|
@ -715,7 +700,7 @@ NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout)
|
|||
pfd.events |= POLLOUT;
|
||||
|
||||
errno = 0;
|
||||
read_rv = NET_Poll(&pfd, 1, nanoTimeout / NET_NSEC_PER_MSEC);
|
||||
read_rv = poll(&pfd, 1, nanoTimeout / NET_NSEC_PER_MSEC);
|
||||
|
||||
newNanoTime = JVM_NanoTime(env, 0);
|
||||
nanoTimeout -= (newNanoTime - prevNanoTime);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue