src/java.base/share/classes/sun/nio/ch/IOUtil.java
changeset 55693 9a97b1393e72
parent 49430 e376090dc07e
child 58801 119ac9128c1b
equal deleted inserted replaced
55692:64330bbb9be5 55693:9a97b1393e72
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   430      * Used to trigger loading of native libraries
   430      * Used to trigger loading of native libraries
   431      */
   431      */
   432     public static void load() { }
   432     public static void load() { }
   433 
   433 
   434     static {
   434     static {
   435         java.security.AccessController.doPrivileged(
   435         jdk.internal.loader.BootLoader.loadLibrary("net");
   436                 new java.security.PrivilegedAction<Void>() {
   436         jdk.internal.loader.BootLoader.loadLibrary("nio");
   437                     public Void run() {
       
   438                         System.loadLibrary("net");
       
   439                         System.loadLibrary("nio");
       
   440                         return null;
       
   441                     }
       
   442                 });
       
   443 
       
   444         initIDs();
   437         initIDs();
   445 
   438 
   446         IOV_MAX = iovMax();
   439         IOV_MAX = iovMax();
   447     }
   440     }
   448 
   441