diff options
-rw-r--r-- | runtime/gc/reference_processor.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/reference_processor.cc b/runtime/gc/reference_processor.cc index 012f9f9..99bd63f 100644 --- a/runtime/gc/reference_processor.cc +++ b/runtime/gc/reference_processor.cc @@ -234,7 +234,7 @@ bool ReferenceProcessor::MakeCircularListIfUnenqueued(mirror::FinalizerReference MutexLock mu(self, *Locks::reference_processor_lock_); // Wait untul we are done processing reference. while (SlowPathEnabled()) { - condition_.Wait(self); + condition_.WaitHoldingLocks(self); } // At this point, since the sentinel of the reference is live, it is guaranteed to not be // enqueued if we just finished processing references. Otherwise, we may be doing the main GC |