diff options
| -rw-r--r-- | runtime/base/mutex.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/base/mutex.cc b/runtime/base/mutex.cc index 26a665bd41..9d7b20052b 100644 --- a/runtime/base/mutex.cc +++ b/runtime/base/mutex.cc @@ -1023,6 +1023,7 @@ void ReaderWriterMutex::WakeupToRespondToEmptyCheckpoint() { ConditionVariable::ConditionVariable(const char* name, Mutex& guard) : name_(name), guard_(guard) { + DCHECK(name != nullptr); #if ART_USE_FUTEXES DCHECK_EQ(0, sequence_.load(std::memory_order_relaxed)); num_waiters_ = 0; @@ -1120,7 +1121,7 @@ void ConditionVariable::WaitHoldingLocks(Thread* self) { // EAGAIN == EWOULDBLK, so we let the caller try again. // EINTR implies a signal was sent to this thread. if ((errno != EINTR) && (errno != EAGAIN)) { - PLOG(FATAL) << "futex wait failed for " << name_; + PLOG(FATAL) << "futex wait failed for " << name_ << ": " << strerror(errno); } } SleepIfRuntimeDeleted(self); |