summaryrefslogtreecommitdiff
path: root/runtime/gc/reference_processor.cc
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/gc/reference_processor.cc')
-rw-r--r--runtime/gc/reference_processor.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/gc/reference_processor.cc b/runtime/gc/reference_processor.cc
index e34d140db4..12b13373d2 100644
--- a/runtime/gc/reference_processor.cc
+++ b/runtime/gc/reference_processor.cc
@@ -155,6 +155,7 @@ ObjPtr<mirror::Object> ReferenceProcessor::GetReferent(Thread* self,
started_trace = true;
start_millis = MilliTime();
}
+ ScopedThreadSuspension sts(self, ThreadState::kSuspended);
condition_.WaitHoldingLocks(self);
}
if (started_trace) {