< prev index next >

src/java.base/share/classes/java/lang/Thread.java

Print this page




 177     }
 178 
 179     /* ThreadLocal values pertaining to this thread. This map is maintained
 180      * by the ThreadLocal class. */
 181     ThreadLocal.ThreadLocalMap threadLocals = null;
 182 
 183     /*
 184      * InheritableThreadLocal values pertaining to this thread. This map is
 185      * maintained by the InheritableThreadLocal class.
 186      */
 187     ThreadLocal.ThreadLocalMap inheritableThreadLocals = null;
 188 
 189     /*
 190      * The requested stack size for this thread, or 0 if the creator did
 191      * not specify a stack size.  It is up to the VM to do whatever it
 192      * likes with this number; some VMs will ignore it.
 193      */
 194     private final long stackSize;
 195 
 196     /*
 197      * JVM-private state that persists after native thread termination.
 198      */
 199     private long nativeParkEventPointer;
 200 
 201     /*
 202      * Thread ID
 203      */
 204     private final long tid;
 205 
 206     /* For generating thread ID */
 207     private static long threadSeqNumber;
 208 
 209     private static synchronized long nextThreadID() {
 210         return ++threadSeqNumber;
 211     }
 212 
 213     /*
 214      * Java thread status for tools, default indicates thread 'not yet started'
 215      */
 216     private volatile int threadStatus;
 217 
 218     /**
 219      * The argument supplied to the current call to
 220      * java.util.concurrent.locks.LockSupport.park.
 221      * Set by (private) java.util.concurrent.locks.LockSupport.setBlocker




 177     }
 178 
 179     /* ThreadLocal values pertaining to this thread. This map is maintained
 180      * by the ThreadLocal class. */
 181     ThreadLocal.ThreadLocalMap threadLocals = null;
 182 
 183     /*
 184      * InheritableThreadLocal values pertaining to this thread. This map is
 185      * maintained by the InheritableThreadLocal class.
 186      */
 187     ThreadLocal.ThreadLocalMap inheritableThreadLocals = null;
 188 
 189     /*
 190      * The requested stack size for this thread, or 0 if the creator did
 191      * not specify a stack size.  It is up to the VM to do whatever it
 192      * likes with this number; some VMs will ignore it.
 193      */
 194     private final long stackSize;
 195 
 196     /*





 197      * Thread ID
 198      */
 199     private final long tid;
 200 
 201     /* For generating thread ID */
 202     private static long threadSeqNumber;
 203 
 204     private static synchronized long nextThreadID() {
 205         return ++threadSeqNumber;
 206     }
 207 
 208     /*
 209      * Java thread status for tools, default indicates thread 'not yet started'
 210      */
 211     private volatile int threadStatus;
 212 
 213     /**
 214      * The argument supplied to the current call to
 215      * java.util.concurrent.locks.LockSupport.park.
 216      * Set by (private) java.util.concurrent.locks.LockSupport.setBlocker


< prev index next >