< prev index next >

src/java.desktop/share/classes/java/awt/Toolkit.java

Print this page
rev 55657 : 8227587: Add internal privileged System.loadLibrary
Reviewed-by: rriggs

*** 1372,1388 **** * directly. -hung */ private static boolean loaded = false; static void loadLibraries() { if (!loaded) { ! java.security.AccessController.doPrivileged( ! new java.security.PrivilegedAction<Void>() { ! public Void run() { ! System.loadLibrary("awt"); ! return null; ! } ! }); loaded = true; } } static { --- 1372,1382 ---- * directly. -hung */ private static boolean loaded = false; static void loadLibraries() { if (!loaded) { ! jdk.internal.access.SharedSecrets.getJavaLangAccess().loadLibrary("awt"); loaded = true; } } static {
< prev index next >