src/java.base/windows/classes/sun/nio/ch/WindowsSelectorImpl.java

Print this page

        

*** 38,48 **** import java.nio.channels.CancelledKeyException; import java.util.List; import java.util.ArrayList; import java.util.HashMap; import java.util.Iterator; - import sun.misc.ManagedLocalsThread; /** * A multi-threaded implementation of Selector for Windows. * * @author Konstantin Kladko --- 38,47 ----
*** 402,418 **** return numKeysUpdated; } } // Represents a helper thread used for select. ! private final class SelectThread extends ManagedLocalsThread { private final int index; // index of this thread final SubSelector subSelector; private long lastRun = 0; // last run number private volatile boolean zombie; // Creates a new thread private SelectThread(int i) { this.index = i; this.subSelector = new SubSelector(i); //make sure we wait for next round of poll this.lastRun = startLock.runsCounter; } --- 401,418 ---- return numKeysUpdated; } } // Represents a helper thread used for select. ! private final class SelectThread extends Thread { private final int index; // index of this thread final SubSelector subSelector; private long lastRun = 0; // last run number private volatile boolean zombie; // Creates a new thread private SelectThread(int i) { + super(null, null, "SelectorHelper", 0, false); this.index = i; this.subSelector = new SubSelector(i); //make sure we wait for next round of poll this.lastRun = startLock.runsCounter; }