comparison src/share/vm/runtime/mutex.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 f95d63e2154a
children b9a9ed0f8eeb
comparison
equal deleted inserted replaced
6174:74533f63b116 6197:d2a62e0f25eb
82 // assumptions are violated, a whole lot of code will break. 82 // assumptions are violated, a whole lot of code will break.
83 83
84 // The default length of monitor name is chosen to be 64 to avoid false sharing. 84 // The default length of monitor name is chosen to be 64 to avoid false sharing.
85 static const int MONITOR_NAME_LEN = 64; 85 static const int MONITOR_NAME_LEN = 64;
86 86
87 class Monitor : public CHeapObj { 87 class Monitor : public CHeapObj<mtInternal> {
88 88
89 public: 89 public:
90 // A special lock: Is a lock where you are guaranteed not to block while you are 90 // A special lock: Is a lock where you are guaranteed not to block while you are
91 // holding it, i.e., no vm operation can happen, taking other locks, etc. 91 // holding it, i.e., no vm operation can happen, taking other locks, etc.
92 // NOTE: It is critical that the rank 'special' be the lowest (earliest) 92 // NOTE: It is critical that the rank 'special' be the lowest (earliest)