Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/mutex.hpp @ 6275:957c266d8bc5
Merge with http://hg.openjdk.java.net/hsx/hsx24/hotspot/
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 21 Aug 2012 10:39:19 +0200 |
parents | d2a62e0f25eb |
children | b9a9ed0f8eeb |
comparison
equal
deleted
inserted
replaced
5891:fd8832ae511d | 6275:957c266d8bc5 |
---|---|
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) |