--- old/src/hotspot/share/runtime/objectMonitor.hpp 2020-01-28 14:37:01.000000000 -0500 +++ new/src/hotspot/share/runtime/objectMonitor.hpp 2020-01-28 14:37:01.000000000 -0500 @@ -239,7 +239,9 @@ // 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. + // old_value. Otherwise, does not change the _owner field. Returns + // the prior value of the _owner field. try_set_owner_from() provides: + // compare-and-exchange void* try_set_owner_from(void* old_value, void* new_value); jint waiters() const;