--- old/src/hotspot/share/runtime/objectMonitor.hpp 2019-07-11 14:36:31.000000000 -0400 +++ new/src/hotspot/share/runtime/objectMonitor.hpp 2019-07-11 14:36:31.000000000 -0400 @@ -249,13 +249,6 @@ // _ref_count is for indicating that the ObjectMonitor* is in // use which is orthogonal to whether the ObjectMonitor itself // is in use for a locking operation. - return _contentions|_waiters|intptr_t(_owner)|intptr_t(_cxq)|intptr_t(_EntryList); - } - const char* is_busy_to_string(stringStream* ss); - - // Version of is_busy() that accounts for the special value in - // _owner when AsyncDeflateIdleMonitors is enabled. - intptr_t is_busy_async() const { intptr_t ret_code = _contentions | _waiters | intptr_t(_cxq) | intptr_t(_EntryList); if (!AsyncDeflateIdleMonitors) { ret_code |= intptr_t(_owner); @@ -266,10 +259,13 @@ } return ret_code; } + const char* is_busy_to_string(stringStream* ss); intptr_t is_entered(Thread* current) const; void* owner() const; // Returns NULL if DEFLATER_MARKER is observed. + // Returns true if owner field == DEFLATER_MARKER and false otherwise. + bool owner_is_DEFLATER_MARKER(); void set_owner(void* owner); jint waiters() const;