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

Print this page

        

@@ -28,11 +28,10 @@
 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

@@ -58,11 +57,11 @@
     public void start() {
         final Runnable thisRunnable = this;
         AccessController.doPrivileged(new PrivilegedAction<>() {
             @Override
             public Object run() {
-                Thread thr = new ManagedLocalsThread(thisRunnable);
+                Thread thr = new Thread(null, thisRunnable, "FileSystemWatchService", 0, false);
                 thr.setDaemon(true);
                 thr.start();
                 return null;
             }
          });