summaryrefslogtreecommitdiff
path: root/runtime/debugger.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r--runtime/debugger.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc
index 969a229660..af365310ef 100644
--- a/runtime/debugger.cc
+++ b/runtime/debugger.cc
@@ -349,10 +349,7 @@ void Dbg::DdmSetThreadNotification(bool enable) {
Dbg::DdmSendThreadNotification(thread, CHUNK_TYPE("THCR"));
finish_barrier.Pass(cls_self);
});
- // TODO: The above eventually results in calls to EventHandler::DispatchEvent, which does a
- // ScopedThreadStateChange, which amounts to a thread state change inside the checkpoint run
- // method. Hence the normal check would fail, and thus we specify Unchecked here.
- size_t checkpoints = Runtime::Current()->GetThreadList()->RunCheckpointUnchecked(&fc);
+ size_t checkpoints = Runtime::Current()->GetThreadList()->RunCheckpoint(&fc);
ScopedThreadSuspension sts(self, ThreadState::kWaitingForCheckPointsToRun);
finish_barrier.Increment(self, checkpoints);
}