--- a/jdk/src/solaris/native/sun/nio/ch/EPollArrayWrapper.c Wed Jun 06 10:05:54 2012 +0800
+++ b/jdk/src/solaris/native/sun/nio/ch/EPollArrayWrapper.c Wed Jun 06 17:59:29 2012 +0100
@@ -31,7 +31,6 @@
#include "sun_nio_ch_EPollArrayWrapper.h"
#include <unistd.h>
-#include <sys/resource.h>
#include <sys/time.h>
#include <sys/epoll.h>
@@ -92,16 +91,6 @@
}
JNIEXPORT jint JNICALL
-Java_sun_nio_ch_EPollArrayWrapper_fdLimit(JNIEnv *env, jclass this)
-{
- struct rlimit rlp;
- if (getrlimit(RLIMIT_NOFILE, &rlp) < 0) {
- JNU_ThrowIOExceptionWithLastError(env, "getrlimit failed");
- }
- return (jint)rlp.rlim_max;
-}
-
-JNIEXPORT jint JNICALL
Java_sun_nio_ch_EPollArrayWrapper_sizeofEPollEvent(JNIEnv* env, jclass this)
{
return sizeof(struct epoll_event);