src/java.base/aix/classes/sun/nio/ch/AixPollPort.java

Print this page
rev 12972 : 8140606: Update library code to use internal Unsafe
Reviewed-by: duke


  17  *
  18  * You should have received a copy of the GNU General Public License version
  19  * 2 along with this work; if not, write to the Free Software Foundation,
  20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  21  *
  22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  23  * or visit www.oracle.com if you need additional information or have any
  24  * questions.
  25  */
  26 
  27 package sun.nio.ch;
  28 
  29 import java.nio.channels.spi.AsynchronousChannelProvider;
  30 import java.io.IOException;
  31 import java.util.HashSet;
  32 import java.util.Iterator;
  33 import java.util.concurrent.ArrayBlockingQueue;
  34 import java.util.concurrent.RejectedExecutionException;
  35 import java.util.concurrent.atomic.AtomicInteger;
  36 import java.util.concurrent.locks.ReentrantLock;
  37 import sun.misc.Unsafe;
  38 
  39 /**
  40  * AsynchronousChannelGroup implementation based on the AIX pollset framework.
  41  */
  42 final class AixPollPort
  43     extends Port
  44 {
  45     private static final Unsafe unsafe = Unsafe.getUnsafe();
  46 
  47     static {
  48         IOUtil.load();
  49         init();
  50     }
  51 
  52     /**
  53      * struct pollfd {
  54      *     int fd;
  55      *     short events;
  56      *     short revents;
  57      * }




  17  *
  18  * You should have received a copy of the GNU General Public License version
  19  * 2 along with this work; if not, write to the Free Software Foundation,
  20  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  21  *
  22  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  23  * or visit www.oracle.com if you need additional information or have any
  24  * questions.
  25  */
  26 
  27 package sun.nio.ch;
  28 
  29 import java.nio.channels.spi.AsynchronousChannelProvider;
  30 import java.io.IOException;
  31 import java.util.HashSet;
  32 import java.util.Iterator;
  33 import java.util.concurrent.ArrayBlockingQueue;
  34 import java.util.concurrent.RejectedExecutionException;
  35 import java.util.concurrent.atomic.AtomicInteger;
  36 import java.util.concurrent.locks.ReentrantLock;
  37 import jdk.internal.misc.Unsafe;
  38 
  39 /**
  40  * AsynchronousChannelGroup implementation based on the AIX pollset framework.
  41  */
  42 final class AixPollPort
  43     extends Port
  44 {
  45     private static final Unsafe unsafe = Unsafe.getUnsafe();
  46 
  47     static {
  48         IOUtil.load();
  49         init();
  50     }
  51 
  52     /**
  53      * struct pollfd {
  54      *     int fd;
  55      *     short events;
  56      *     short revents;
  57      * }