< prev index next >
src/java.base/share/classes/java/net/AbstractPlainSocketImpl.java
Print this page
rev 55657 : 8227587: Add internal privileged System.loadLibrary
Reviewed-by: rriggs
@@ -92,17 +92,12 @@
/**
* Load net library into runtime.
*/
static {
- java.security.AccessController.doPrivileged(
- new java.security.PrivilegedAction<>() {
- public Void run() {
- System.loadLibrary("net");
- return null;
- }
- });
+ jdk.internal.access.SharedSecrets.getJavaLangAccess()
+ .loadLibrary(AbstractPlainSocketImpl.class, "net");
}
private static volatile boolean checkedReusePort;
private static volatile boolean isReusePortAvailable;
< prev index next >