src/java.base/windows/classes/sun/net/dns/ResolverConfigurationImpl.java
changeset 55693 9a97b1393e72
parent 52499 768b1c612100
equal deleted inserted replaced
55692:64330bbb9be5 55693:9a97b1393e72
     1 /*
     1 /*
     2  * Copyright (c) 2002, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2002, 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
   158     static native void loadDNSconfig0();
   158     static native void loadDNSconfig0();
   159 
   159 
   160     static native int notifyAddrChange0();
   160     static native int notifyAddrChange0();
   161 
   161 
   162     static {
   162     static {
   163         java.security.AccessController.doPrivileged(
   163         jdk.internal.loader.BootLoader.loadLibrary("net");
   164             new java.security.PrivilegedAction<Void>() {
       
   165                 public Void run() {
       
   166                     System.loadLibrary("net");
       
   167                     return null;
       
   168                 }
       
   169             });
       
   170         init0();
   164         init0();
   171 
   165 
   172         // start the address listener thread
   166         // start the address listener thread
   173         AddressChangeListener thr = new AddressChangeListener();
   167         AddressChangeListener thr = new AddressChangeListener();
   174         thr.setDaemon(true);
   168         thr.setDaemon(true);