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
|
@ -94,13 +94,7 @@ abstract class AbstractPlainSocketImpl extends SocketImpl implements PlatformSoc
|
|||
* Load net library into runtime.
|
||||
*/
|
||||
static {
|
||||
java.security.AccessController.doPrivileged(
|
||||
new java.security.PrivilegedAction<>() {
|
||||
public Void run() {
|
||||
System.loadLibrary("net");
|
||||
return null;
|
||||
}
|
||||
});
|
||||
jdk.internal.loader.BootLoader.loadLibrary("net");
|
||||
}
|
||||
|
||||
private static volatile boolean checkedReusePort;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue