< prev index next >
src/hotspot/share/runtime/objectMonitor.hpp
Print this page
rev 57560 : imported patch 8236035.patch.cr0
rev 57561 : dholmes CR - rename simply_set_owner_from() -> set_owner_from() and simply_set_owner_from_BasicLock() -> set_owner_from_BasicLock(); rename release_clear_owner_with_barrier() -> release_clear_owner() and refactor barrier code back into the call sites.
@@ -230,11 +230,19 @@
const char* is_busy_to_string(stringStream* ss);
intptr_t is_entered(Thread* current) const;
void* owner() const;
- void set_owner(void* owner);
+ // Clear _owner field; current value must match old_value.
+ void release_clear_owner(void* old_value);
+ // Simply set _owner field to new_value; current value must match old_value.
+ void set_owner_from(void* old_value, void* new_value);
+ // Simply set _owner field to self; current value must match basic_lock_p.
+ void set_owner_from_BasicLock(void* basic_lock_p, Thread* self);
+ // Try to set _owner field to new_value if the current value matches
+ // old_value. Otherwise, does not change the _owner field.
+ void* try_set_owner_from(void* old_value, void* new_value);
jint waiters() const;
jint contentions() const;
intx recursions() const { return _recursions; }
< prev index next >