From 0529cfa3efd0f6f7a167aa833fce99d6cf29a518 Mon Sep 17 00:00:00 2001 From: Hans Boehm Date: Mon, 16 Aug 2021 16:50:28 -0700 Subject: Add GC deadlock discussion Only comment and markdown changes. Bug: 195336624 Bug: 195261575 Test: Treehugger Change-Id: I3118ab4009c7f31006b62714ee36b5287f33aa3f --- runtime/gc/reference_processor.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'runtime/gc/reference_processor.h') 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_; -- cgit v1.2.3-59-g8ed1b