commit | 81b8871007101f42e2baabf213e1312004073eb0 | [log] [tgz] |
---|---|---|
author | Brian Carlstrom <bdc@google.com> | Mon Nov 05 19:21:30 2012 -0800 |
committer | Brian Carlstrom <bdc@google.com> | Mon Nov 05 19:22:24 2012 -0800 |
tree | 7664b7ebf5dabeb0364806d1312299020c77c1d4 | |
parent | bcc2926b9721f94c17ed98fae5264cc98f0e066f [diff] [blame] |
Broaden scope of gAborting. Fixes hang in HandleUnexpectedSignal. Change-Id: I4c29cd7b67f07bb9f99c308feac5a3d6c236bc2b
diff --git a/src/mutex.h b/src/mutex.h index 4af2ad7..d0c6369 100644 --- a/src/mutex.h +++ b/src/mutex.h
@@ -107,7 +107,7 @@ // Assert that the Mutex is exclusively held by the current thread. void AssertExclusiveHeld(const Thread* self) { - if (kDebugLocking) { + if (kDebugLocking && !gAborting) { CHECK(IsExclusiveHeld(self)) << *this; } }