Mercurial > hg > graal-compiler
comparison src/share/vm/runtime/osThread.hpp @ 6197:d2a62e0f25eb
6995781: Native Memory Tracking (Phase 1)
7151532: DCmd for hotspot native memory tracking
Summary: Implementation of native memory tracking phase 1, which tracks VM native memory usage, and related DCmd
Reviewed-by: acorn, coleenp, fparain
author | zgu |
---|---|
date | Thu, 28 Jun 2012 17:03:16 -0400 |
parents | 960a442eae91 |
children | bdd155477289 |
comparison
equal
deleted
inserted
replaced
6174:74533f63b116 | 6197:d2a62e0f25eb |
---|---|
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* |