Fix a heap lock/thread list lock deadlock.
We had an uncaught OOME whose uncaught exception handler -- running
with the thread lock held -- was trying to cause a GC while some
other thread had the heap lock and was waiting for the thread list
lock.
Change-Id: I22177129562268837127d9edcc63ef5e93054bdf
diff --git a/src/mutex.h b/src/mutex.h
index 37d5510..eb90565 100644
--- a/src/mutex.h
+++ b/src/mutex.h
@@ -52,9 +52,10 @@
DCHECK_NE(GetOwner(), GetTid());
}
- private:
pid_t GetOwner();
- pid_t GetTid();
+
+ private:
+ static pid_t GetTid();
std::string name_;