< prev index next >

src/java.base/share/classes/sun/nio/ch/NativeThreadSet.java

Print this page

        

@@ -41,11 +41,11 @@
 
     // Adds the current native thread to this set, returning its index so that
     // it can efficiently be removed later.
     //
     int add() {
-        long th = NativeThread.current();
+        long th = NativeThread.currentKernelThread();
         // 0 and -1 are treated as placeholders, not real thread handles
         if (th == 0)
             th = -1;
         synchronized (this) {
             int start = 0;
< prev index next >