summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/debugger.cc2
-rw-r--r--src/thread_list.cc2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/debugger.cc b/src/debugger.cc
index 1dbccccf48..604560e846 100644
--- a/src/debugger.cc
+++ b/src/debugger.cc
@@ -1525,7 +1525,7 @@ void Dbg::SuspendVM() {
}
void Dbg::ResumeVM() {
- Runtime::Current()->GetThreadList()->ResumeAll(true);
+ Runtime::Current()->GetThreadList()->UndoDebuggerSuspensions();
}
void Dbg::SuspendThread(JDWP::ObjectId threadId) {
diff --git a/src/thread_list.cc b/src/thread_list.cc
index 951a2beba2..186ddbc93e 100644
--- a/src/thread_list.cc
+++ b/src/thread_list.cc
@@ -274,7 +274,7 @@ void ThreadList::ResumeAll(bool for_debugger) {
MutexLock mu(thread_suspend_count_lock_);
for (It it = list_.begin(), end = list_.end(); it != end; ++it) {
Thread* thread = *it;
- if (thread == self || (for_debugger && thread == debug_thread) || thread->suspend_count_ == 0) {
+ if (thread == self || (for_debugger && thread == debug_thread)) {
continue;
}
ModifySuspendCount(thread, -1, for_debugger);