equal
deleted
inserted
replaced
56 inline void* ObjectMonitor::owner() const { |
56 inline void* ObjectMonitor::owner() const { |
57 return _owner; |
57 return _owner; |
58 } |
58 } |
59 |
59 |
60 inline void ObjectMonitor::clear() { |
60 inline void ObjectMonitor::clear() { |
61 assert(_header, "Fatal logic error in ObjectMonitor header!"); |
61 assert(_header != NULL, "Fatal logic error in ObjectMonitor header!"); |
62 assert(_count == 0, "Fatal logic error in ObjectMonitor count!"); |
62 assert(_count == 0, "Fatal logic error in ObjectMonitor count!"); |
63 assert(_waiters == 0, "Fatal logic error in ObjectMonitor waiters!"); |
63 assert(_waiters == 0, "Fatal logic error in ObjectMonitor waiters!"); |
64 assert(_recursions == 0, "Fatal logic error in ObjectMonitor recursions!"); |
64 assert(_recursions == 0, "Fatal logic error in ObjectMonitor recursions!"); |
65 assert(_object != NULL, "Fatal logic error in ObjectMonitor object!"); |
65 assert(_object != NULL, "Fatal logic error in ObjectMonitor object!"); |
66 assert(_owner == 0, "Fatal logic error in ObjectMonitor owner!"); |
66 assert(_owner == NULL, "Fatal logic error in ObjectMonitor owner!"); |
67 |
67 |
68 _header = NULL; |
68 _header = NULL; |
69 _object = NULL; |
69 _object = NULL; |
70 } |
70 } |
71 |
|
72 |
71 |
73 inline void* ObjectMonitor::object() const { |
72 inline void* ObjectMonitor::object() const { |
74 return _object; |
73 return _object; |
75 } |
74 } |
76 |
75 |
93 } |
92 } |
94 } |
93 } |
95 return true; |
94 return true; |
96 } |
95 } |
97 |
96 |
98 |
|
99 // return number of threads contending for this monitor |
97 // return number of threads contending for this monitor |
100 inline jint ObjectMonitor::contentions() const { |
98 inline jint ObjectMonitor::contentions() const { |
101 return _count; |
99 return _count; |
102 } |
100 } |
103 |
101 |
107 inline void ObjectMonitor::set_owner(void* owner) { |
105 inline void ObjectMonitor::set_owner(void* owner) { |
108 _owner = owner; |
106 _owner = owner; |
109 _recursions = 0; |
107 _recursions = 0; |
110 } |
108 } |
111 |
109 |
112 |
|
113 #endif // SHARE_RUNTIME_OBJECTMONITOR_INLINE_HPP |
110 #endif // SHARE_RUNTIME_OBJECTMONITOR_INLINE_HPP |