Print lock level in ExclusiveUnlock
Bug: 18713034
Change-Id: I83e1bf1e2023b595d8ddf20008935c75b2b0aa0c
diff --git a/runtime/base/mutex.cc b/runtime/base/mutex.cc
index 9453741..6e00cc7 100644
--- a/runtime/base/mutex.cc
+++ b/runtime/base/mutex.cc
@@ -446,7 +446,8 @@
if (Thread::Current() != nullptr) {
Thread::Current()->GetThreadName(name2);
}
- LOG(FATAL) << name1 << " " << name2;
+ LOG(FATAL) << GetName() << " level=" << level_ << " self=" << name1
+ << " Thread::Current()=" << name2;
}
AssertHeld(self);
DCHECK_NE(exclusive_owner_, 0U);