56 // I'd make OSThread a ValueObj embedded in Thread to avoid an indirection, but |
56 // I'd make OSThread a ValueObj embedded in Thread to avoid an indirection, but |
57 // the assembler test in java.cpp expects that it can install the OSThread of |
57 // the assembler test in java.cpp expects that it can install the OSThread of |
58 // the main thread into its own Thread at will. |
58 // the main thread into its own Thread at will. |
59 |
59 |
60 |
60 |
61 class OSThread: public CHeapObj { |
61 class OSThread: public CHeapObj<mtThread> { |
62 friend class VMStructs; |
62 friend class VMStructs; |
63 private: |
63 private: |
64 OSThreadStartFunc _start_proc; // Thread start routine |
64 OSThreadStartFunc _start_proc; // Thread start routine |
65 void* _start_parm; // Thread start routine parameter |
65 void* _start_parm; // Thread start routine parameter |
66 volatile ThreadState _state; // Thread state *hint* |
66 volatile ThreadState _state; // Thread state *hint* |