jdk/src/share/classes/sun/nio/ch/IOUtil.java
changeset 19607 bee007586d06
parent 16921 e70261f11307
child 23010 6dadb192ad81
equal deleted inserted replaced
19606:6c846d61ba2f 19607:bee007586d06
   345 
   345 
   346     static native int iovMax();
   346     static native int iovMax();
   347 
   347 
   348     static native void initIDs();
   348     static native void initIDs();
   349 
   349 
       
   350     /**
       
   351      * Used to trigger loading of native libraries
       
   352      */
       
   353     public static void load() { }
       
   354 
   350     static {
   355     static {
   351         // Note that IOUtil.initIDs is called from within Util.load.
   356         java.security.AccessController.doPrivileged(
   352         Util.load();
   357                 new java.security.PrivilegedAction<Void>() {
       
   358                     public Void run() {
       
   359                         System.loadLibrary("net");
       
   360                         System.loadLibrary("nio");
       
   361                         return null;
       
   362                     }
       
   363                 });
       
   364 
       
   365         initIDs();
       
   366 
   353         IOV_MAX = iovMax();
   367         IOV_MAX = iovMax();
   354     }
   368     }
   355 
   369 
   356 }
   370 }