< prev index next >

test/lib/jdk/test/lib/thread/VThreadRunner.java

Print this page
*** 32,16 ***
   * Helper class to support tests running tasks a in virtual thread.
   */
  public class VThreadRunner {
      private VThreadRunner() { }
  
-     /**
-      * Characteristic value signifying that the thread cannot set values for its
-      * copy of thread-locals.
-      */
-     public static final int NO_THREAD_LOCALS = 1 << 1;
- 
      /**
       * Characteristic value signifying that initial values for inheritable
       * thread locals are not inherited from the constructing thread.
       */
      public static final int NO_INHERIT_THREAD_LOCALS = 1 << 2;
--- 32,10 ---

*** 83,12 ***
          };
  
          Thread.Builder builder = Thread.ofVirtual();
          if (name != null)
              builder.name(name);
-         if ((characteristics & NO_THREAD_LOCALS) != 0)
-             builder.allowSetThreadLocals(false);
          if ((characteristics & NO_INHERIT_THREAD_LOCALS) != 0)
              builder.inheritInheritableThreadLocals(false);
          Thread thread = builder.start(target);
  
          // wait for thread to terminate
--- 77,10 ---
< prev index next >