summaryrefslogtreecommitdiff
path: root/runtime/stack.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/stack.cc')
-rw-r--r--runtime/stack.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/stack.cc b/runtime/stack.cc
index d7d5851130..bf844b48e4 100644
--- a/runtime/stack.cc
+++ b/runtime/stack.cc
@@ -77,7 +77,7 @@ StackVisitor::StackVisitor(Thread* thread,
context_(context),
check_suspended_(check_suspended) {
if (check_suspended_) {
- DCHECK(thread == Thread::Current() || thread->IsSuspended()) << *thread;
+ DCHECK(thread == Thread::Current() || thread->GetState() != ThreadState::kRunnable) << *thread;
}
}
@@ -801,7 +801,7 @@ uint8_t* StackVisitor::GetShouldDeoptimizeFlagAddr() const REQUIRES_SHARED(Locks
template <StackVisitor::CountTransitions kCount>
void StackVisitor::WalkStack(bool include_transitions) {
if (check_suspended_) {
- DCHECK(thread_ == Thread::Current() || thread_->IsSuspended());
+ DCHECK(thread_ == Thread::Current() || thread_->GetState() != ThreadState::kRunnable);
}
CHECK_EQ(cur_depth_, 0U);