< prev index next >

src/java.desktop/unix/classes/sun/awt/X11/XToolkit.java

Print this page

        

*** 282,293 **** if (log.isLoggable(PlatformLogger.Level.FINE)) { dumpPeers(); } }; String name = "XToolkt-Shutdown-Thread"; ! Thread shutdownThread = new ManagedLocalsThread( ! ThreadGroupUtils.getRootThreadGroup(), r, name); shutdownThread.setContextClassLoader(null); Runtime.getRuntime().addShutdownHook(shutdownThread); return null; }; AccessController.doPrivileged(a); --- 282,293 ---- if (log.isLoggable(PlatformLogger.Level.FINE)) { dumpPeers(); } }; String name = "XToolkt-Shutdown-Thread"; ! Thread shutdownThread = new Thread( ! ThreadGroupUtils.getRootThreadGroup(), r, name, 0, false); shutdownThread.setContextClassLoader(null); Runtime.getRuntime().addShutdownHook(shutdownThread); return null; }; AccessController.doPrivileged(a);
*** 330,341 **** init(); XWM.init(); toolkitThread = AccessController.doPrivileged((PrivilegedAction<Thread>) () -> { String name = "AWT-XAWT"; ! Thread thread = new ManagedLocalsThread( ! ThreadGroupUtils.getRootThreadGroup(), this, name); thread.setContextClassLoader(null); thread.setPriority(Thread.NORM_PRIORITY + 1); thread.setDaemon(true); return thread; }); --- 330,342 ---- init(); XWM.init(); toolkitThread = AccessController.doPrivileged((PrivilegedAction<Thread>) () -> { String name = "AWT-XAWT"; ! Thread thread = new Thread( ! ThreadGroupUtils.getRootThreadGroup(), this, name, ! 0, false); thread.setContextClassLoader(null); thread.setPriority(Thread.NORM_PRIORITY + 1); thread.setDaemon(true); return thread; });
< prev index next >