summaryrefslogtreecommitdiff
path: root/runtime/gc/reference_processor.h
diff options
context:
space:
mode:
author Hans Boehm <hboehm@google.com> 2021-08-16 16:50:28 -0700
committer Hans Boehm <hboehm@google.com> 2021-08-18 17:14:17 +0000
commit0529cfa3efd0f6f7a167aa833fce99d6cf29a518 (patch)
treee0079b2b55ecb84f11582eb65387d92cc36e570c /runtime/gc/reference_processor.h
parent555eefef9a27995ef341cdf44ed60c61953e2e3f (diff)
Add GC deadlock discussion
Only comment and markdown changes. Bug: 195336624 Bug: 195261575 Test: Treehugger Change-Id: I3118ab4009c7f31006b62714ee36b5287f33aa3f
Diffstat (limited to 'runtime/gc/reference_processor.h')
-rw-r--r--runtime/gc/reference_processor.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/runtime/gc/reference_processor.h b/runtime/gc/reference_processor.h
index 54de5cc572..51c50544bf 100644
--- a/runtime/gc/reference_processor.h
+++ b/runtime/gc/reference_processor.h
@@ -100,7 +100,8 @@ class ReferenceProcessor {
// If this is true, then we cannot return a referent (see comment in GetReferent).
bool preserving_references_ GUARDED_BY(Locks::reference_processor_lock_);
// Condition that people wait on if they attempt to get the referent of a reference while
- // processing is in progress.
+ // processing is in progress. Broadcast when an empty checkpoint is requested, but not for other
+ // checkpoints or thread suspensions. See mutator_gc_coord.md.
ConditionVariable condition_ GUARDED_BY(Locks::reference_processor_lock_);
// Reference queues used by the GC.
ReferenceQueue soft_reference_queue_;