< prev index next >

src/java.base/share/classes/jdk/internal/misc/JavaLangAccess.java

Print this page
rev 50306 : imported patch loom-fibers

@@ -103,10 +103,22 @@
      * Set current thread's blocker field.
      */
     void blockedOn(Interruptible b);
 
     /**
+     * Returns a reference to the Thread object for the currently executing
+     * kernel thread.
+     */
+    Thread currentKernelThread();
+
+    /**
+     * Returns the value in the current kernel thread's copy of a
+     * thread-local variable.
+     */
+    <T> T getKernelThreadLocal(ThreadLocal<T> local);
+
+    /**
      * Registers a shutdown hook.
      *
      * It is expected that this method with registerShutdownInProgress=true
      * is only used to register DeleteOnExitHook since the first file
      * may be added to the delete on exit list by the application shutdown
< prev index next >