< prev index next >

src/hotspot/share/runtime/lockStack.cpp

Print this page
*** 146,11 ***
        assert(mark.is_fast_locked() || mark.monitor()->is_owner_anonymous(),
               "must be fast_locked or inflated by other thread");
        top_index--;
      } else {
        assert(!mark.is_fast_locked(), "must be inflated");
!       assert(mark.monitor()->owner_raw() == get_thread() ||
               (!leaf_frame && get_thread()->current_waiting_monitor() == mark.monitor()),
               "must be owned by (or waited on by) thread");
        assert(!contains(obj), "must not be on lock_stack");
      }
    }
--- 146,11 ---
        assert(mark.is_fast_locked() || mark.monitor()->is_owner_anonymous(),
               "must be fast_locked or inflated by other thread");
        top_index--;
      } else {
        assert(!mark.is_fast_locked(), "must be inflated");
!       assert(mark.monitor()->is_owner(get_thread()) ||
               (!leaf_frame && get_thread()->current_waiting_monitor() == mark.monitor()),
               "must be owned by (or waited on by) thread");
        assert(!contains(obj), "must not be on lock_stack");
      }
    }
< prev index next >