src/java.base/share/classes/sun/nio/fs/AbstractPoller.java

Print this page

        

*** 28,38 **** import java.nio.file.*; import java.security.AccessController; import java.security.PrivilegedAction; import java.io.IOException; import java.util.*; - import sun.misc.ManagedLocalsThread; /** * Base implementation of background poller thread used in watch service * implementations. A poller thread waits on events from the file system and * also services "requests" from clients to register for new events or cancel --- 28,37 ----
*** 58,68 **** public void start() { final Runnable thisRunnable = this; AccessController.doPrivileged(new PrivilegedAction<>() { @Override public Object run() { ! Thread thr = new ManagedLocalsThread(thisRunnable); thr.setDaemon(true); thr.start(); return null; } }); --- 57,67 ---- public void start() { final Runnable thisRunnable = this; AccessController.doPrivileged(new PrivilegedAction<>() { @Override public Object run() { ! Thread thr = new Thread(null, thisRunnable, "FileSystemWatchService", 0, false); thr.setDaemon(true); thr.start(); return null; } });