< prev index next >
src/java.desktop/share/classes/sun/awt/AWTAutoShutdown.java
Print this page
*** 32,42 ****
import java.util.IdentityHashMap;
import java.util.Map;
import java.util.Set;
import sun.awt.util.ThreadGroupUtils;
- import sun.misc.ManagedLocalsThread;
import sun.util.logging.PlatformLogger;
/**
* This class is to let AWT shutdown automatically when a user is done
* with AWT. It tracks AWT state using the following parameters:
--- 32,41 ----
*** 335,346 ****
* the new blocker thread starts.
*/
private void activateBlockerThread() {
AccessController.doPrivileged((PrivilegedAction<Thread>) () -> {
String name = "AWT-Shutdown";
! Thread thread = new ManagedLocalsThread(
! ThreadGroupUtils.getRootThreadGroup(), this, name);
thread.setContextClassLoader(null);
thread.setDaemon(false);
blockerThread = thread;
return thread;
}).start();
--- 334,345 ----
* the new blocker thread starts.
*/
private void activateBlockerThread() {
AccessController.doPrivileged((PrivilegedAction<Thread>) () -> {
String name = "AWT-Shutdown";
! Thread thread = new Thread(
! ThreadGroupUtils.getRootThreadGroup(), this, name, 0, false);
thread.setContextClassLoader(null);
thread.setDaemon(false);
blockerThread = thread;
return thread;
}).start();
< prev index next >