mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-22 03:54:33 +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
|
@ -25,8 +25,6 @@
|
|||
|
||||
package sun.nio.fs;
|
||||
|
||||
import java.security.AccessController;
|
||||
import java.security.PrivilegedAction;
|
||||
import jdk.internal.misc.Unsafe;
|
||||
|
||||
import static sun.nio.fs.WindowsConstants.*;
|
||||
|
@ -1153,13 +1151,9 @@ class WindowsNativeDispatcher {
|
|||
private static native void initIDs();
|
||||
|
||||
static {
|
||||
AccessController.doPrivileged(new PrivilegedAction<Void>() {
|
||||
public Void run() {
|
||||
// nio.dll has dependency on net.dll
|
||||
System.loadLibrary("net");
|
||||
System.loadLibrary("nio");
|
||||
return null;
|
||||
}});
|
||||
// nio.dll has dependency on net.dll
|
||||
jdk.internal.loader.BootLoader.loadLibrary("net");
|
||||
jdk.internal.loader.BootLoader.loadLibrary("nio");
|
||||
initIDs();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue