Mercurial > hg > truffle
comparison src/share/vm/runtime/mutex.hpp @ 6204:90d5a592ea8f
Merge
author | coleenp |
---|---|
date | Thu, 12 Jul 2012 14:26:25 -0400 |
parents | d2a62e0f25eb |
children | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
6196:3759236eea14 | 6204:90d5a592ea8f |
---|---|
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) |