< prev index next >

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

Print this page

        

*** 46,65 **** // set to true when shutdown private boolean shutdown; protected AbstractPoller() { ! this.requestList = new LinkedList<Request>(); this.shutdown = false; } /** * Starts the poller thread */ public void start() { final Runnable thisRunnable = this; ! AccessController.doPrivileged(new PrivilegedAction<Object>() { @Override public Object run() { Thread thr = new ManagedLocalsThread(thisRunnable); thr.setDaemon(true); thr.start(); --- 46,65 ---- // set to true when shutdown private boolean shutdown; protected AbstractPoller() { ! this.requestList = new LinkedList<>(); this.shutdown = false; } /** * Starts the poller thread */ 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();
< prev index next >