< prev index next >

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

Print this page
@@ -41,11 +41,10 @@
  import java.security.ProtectionDomain;
  import java.util.List;
  import java.util.Map;
  import java.util.Set;
  import java.util.concurrent.ConcurrentHashMap;
- import java.util.concurrent.Executor;
  import java.util.concurrent.RejectedExecutionException;
  import java.util.stream.Stream;
  
  import jdk.internal.loader.NativeLibraries;
  import jdk.internal.misc.CarrierThreadLocal;

@@ -627,13 +626,18 @@
       * @throws RejectedExecutionException if the scheduler cannot accept a task
       */
      void unparkVirtualThread(Thread thread);
  
      /**
-      * Returns the virtual thread default scheduler.
+      * Returns the builtin virtual thread scheduler.
       */
-     Executor virtualThreadDefaultScheduler();
+     Thread.VirtualThreadScheduler builtinVirtualThreadScheduler();
+ 
+     /**
+      * Returns the default virtual thread scheduler.
+      */
+     Thread.VirtualThreadScheduler defaultVirtualThreadScheduler();
  
      /**
       * Creates a new StackWalker
       */
      StackWalker newStackWalkerInstance(Set<StackWalker.Option> options,
< prev index next >