diff options
| -rw-r--r-- | src/thread_list.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/thread_list.cc b/src/thread_list.cc index 1a342da585..43a856181d 100644 --- a/src/thread_list.cc +++ b/src/thread_list.cc @@ -75,7 +75,7 @@ void ThreadList::ModifySuspendCount(Thread* thread, int delta, bool for_debugger #endif if (delta == -1 && thread->suspend_count_ <= 0) { // This is expected if you attach a thread during a GC. - if (thread->GetState() != kStarting) { + if (thread->GetState() != kStarting && thread->GetPeer() != NULL) { LOG(FATAL) << *thread << " suspend count already zero"; } return; |