jdk/src/solaris/classes/sun/nio/ch/EPollArrayWrapper.java
changeset 12872 16fa902b1469
parent 5506 202f599c92aa
child 14342 8435a30053c1
equal deleted inserted replaced
12871:b583b4c82a82 12872:16fa902b1469
    72     // Miscellaneous constants
    72     // Miscellaneous constants
    73     static final int SIZE_EPOLLEVENT  = sizeofEPollEvent();
    73     static final int SIZE_EPOLLEVENT  = sizeofEPollEvent();
    74     static final int EVENT_OFFSET     = 0;
    74     static final int EVENT_OFFSET     = 0;
    75     static final int DATA_OFFSET      = offsetofData();
    75     static final int DATA_OFFSET      = offsetofData();
    76     static final int FD_OFFSET        = DATA_OFFSET;
    76     static final int FD_OFFSET        = DATA_OFFSET;
    77     static final int NUM_EPOLLEVENTS  = Math.min(fdLimit(), 8192);
    77     static final int NUM_EPOLLEVENTS  = Math.min(IOUtil.fdLimit(), 8192);
    78 
    78 
    79     // Base address of the native pollArray
    79     // Base address of the native pollArray
    80     private final long pollArrayAddress;
    80     private final long pollArrayAddress;
    81 
    81 
    82     // Set of "idle" channels
    82     // Set of "idle" channels
   294     private native void epollCtl(int epfd, int opcode, int fd, int events);
   294     private native void epollCtl(int epfd, int opcode, int fd, int events);
   295     private native int epollWait(long pollAddress, int numfds, long timeout,
   295     private native int epollWait(long pollAddress, int numfds, long timeout,
   296                                  int epfd) throws IOException;
   296                                  int epfd) throws IOException;
   297     private static native int sizeofEPollEvent();
   297     private static native int sizeofEPollEvent();
   298     private static native int offsetofData();
   298     private static native int offsetofData();
   299     private static native int fdLimit();
       
   300     private static native void interrupt(int fd);
   299     private static native void interrupt(int fd);
   301     private static native void init();
   300     private static native void init();
   302 }
   301 }