summaryrefslogtreecommitdiff
path: root/runtime/cha.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/cha.cc')
-rw-r--r--runtime/cha.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/cha.cc b/runtime/cha.cc
index 0c548d384a..8b77f76146 100644
--- a/runtime/cha.cc
+++ b/runtime/cha.cc
@@ -237,10 +237,11 @@ class CHACheckpoint final : public Closure {
: barrier_(0),
method_headers_(method_headers) {}
- void Run(Thread* thread) override REQUIRES_SHARED(Locks::mutator_lock_) {
+ void Run(Thread* thread) override {
// Note thread and self may not be equal if thread was already suspended at
// the point of the request.
Thread* self = Thread::Current();
+ ScopedObjectAccess soa(self);
CHAStackVisitor visitor(thread, nullptr, method_headers_);
visitor.WalkStack();
barrier_.Pass(self);