mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8227587: Add internal privileged System.loadLibrary
Reviewed-by: rriggs, mchung, chegar
This commit is contained in:
parent
ec7f1c13d9
commit
78a1c8ea0a
26 changed files with 97 additions and 218 deletions
|
@ -28,7 +28,6 @@ package java.net;
|
|||
import java.util.Arrays;
|
||||
import java.util.Enumeration;
|
||||
import java.util.NoSuchElementException;
|
||||
import java.security.AccessController;
|
||||
import java.util.Spliterator;
|
||||
import java.util.Spliterators;
|
||||
import java.util.stream.Stream;
|
||||
|
@ -57,13 +56,7 @@ public final class NetworkInterface {
|
|||
private static final int defaultIndex; /* index of defaultInterface */
|
||||
|
||||
static {
|
||||
AccessController.doPrivileged(
|
||||
new java.security.PrivilegedAction<>() {
|
||||
public Void run() {
|
||||
System.loadLibrary("net");
|
||||
return null;
|
||||
}
|
||||
});
|
||||
jdk.internal.loader.BootLoader.loadLibrary("net");
|
||||
|
||||
init();
|
||||
defaultInterface = DefaultInterface.getDefault();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue