< prev index next >

src/hotspot/share/runtime/objectMonitor.cpp

Print this page
*** 507,20 ***
    if (is_busy()) {
      // Easy checks are first - the ObjectMonitor is busy so no deflation.
      return false;
    }
  
-   if (ObjectSynchronizer::is_final_audit() && owner_is_DEFLATER_MARKER()) {
-     // The final audit can see an already deflated ObjectMonitor on the
-     // in-use list because MonitorList::unlink_deflated() might have
-     // blocked for the final safepoint before unlinking all the deflated
-     // monitors.
-     assert(contentions() < 0, "must be negative: contentions=%d", contentions());
-     // Already returned 'true' when it was originally deflated.
-     return false;
-   }
- 
    const oop obj = object_peek();
  
    if (obj == nullptr) {
      // If the object died, we can recycle the monitor without racing with
      // Java threads. The GC already broke the association with the object.
--- 507,10 ---
< prev index next >