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: |