src/share/vm/runtime/mutex.hpp

changeset 1040
98cb887364d3
parent 631
d1605aabd0a1
child 1445
354d3184f6b2
equal deleted inserted replaced
1039:ec59443af135 1040:98cb887364d3
80 // See orderAccess.hpp. We assume throughout the VM that mutex lock and 80 // See orderAccess.hpp. We assume throughout the VM that mutex lock and
81 // try_lock do fence-lock-acquire, and that unlock does a release-unlock, 81 // try_lock do fence-lock-acquire, and that unlock does a release-unlock,
82 // *in that order*. If their implementations change such that these 82 // *in that order*. If their implementations change such that these
83 // assumptions are violated, a whole lot of code will break. 83 // assumptions are violated, a whole lot of code will break.
84 84
85 // The default length of monitor name is choosen to be 64 to avoid false sharing. 85 // The default length of monitor name is chosen to be 64 to avoid false sharing.
86 static const int MONITOR_NAME_LEN = 64; 86 static const int MONITOR_NAME_LEN = 64;
87 87
88 class Monitor : public CHeapObj { 88 class Monitor : public CHeapObj {
89 89
90 public: 90 public:

mercurial