jdk/src/java.base/share/classes/java/util/concurrent/ForkJoinWorkerThread.java
changeset 36936 bfcdf736a998
parent 33674 566777f73c32
child 39723 9aa34e4a0469
equal deleted inserted replaced
36935:9a10a2c4dc13 36936:bfcdf736a998
    90      * Version for InnocuousForkJoinWorkerThread.
    90      * Version for InnocuousForkJoinWorkerThread.
    91      */
    91      */
    92     ForkJoinWorkerThread(ForkJoinPool pool, ThreadGroup threadGroup,
    92     ForkJoinWorkerThread(ForkJoinPool pool, ThreadGroup threadGroup,
    93                          AccessControlContext acc) {
    93                          AccessControlContext acc) {
    94         super(threadGroup, null, "aForkJoinWorkerThread");
    94         super(threadGroup, null, "aForkJoinWorkerThread");
    95         U.putOrderedObject(this, INHERITEDACCESSCONTROLCONTEXT, acc);
    95         U.putObjectRelease(this, INHERITEDACCESSCONTROLCONTEXT, acc);
    96         eraseThreadLocals(); // clear before registering
    96         eraseThreadLocals(); // clear before registering
    97         this.pool = pool;
    97         this.pool = pool;
    98         this.workQueue = pool.registerWorker(this);
    98         this.workQueue = pool.registerWorker(this);
    99     }
    99     }
   100 
   100