From 98ea9d9d82ab078ca10fa7f8e02eddda94cf1d98 Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 19 Oct 2018 14:06:15 -0700 Subject: ART: Refactor for bugprone-argument-comment Handles runtime. Bug: 116054210 Test: WITH_TIDY=1 mmma art Change-Id: Ibc0d5086809d647f0ce4df5452eb84442d27ecf0 --- runtime/gc/reference_queue.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'runtime/gc/reference_queue.cc') diff --git a/runtime/gc/reference_queue.cc b/runtime/gc/reference_queue.cc index e25e279ea6..5c11e502c2 100644 --- a/runtime/gc/reference_queue.cc +++ b/runtime/gc/reference_queue.cc @@ -136,7 +136,7 @@ void ReferenceQueue::ClearWhiteReferences(ReferenceQueue* cleared_references, mirror::HeapReference* referent_addr = ref->GetReferentReferenceAddr(); // do_atomic_update is false because this happens during the reference processing phase where // Reference.clear() would block. - if (!collector->IsNullOrMarkedHeapReference(referent_addr, /*do_atomic_update*/false)) { + if (!collector->IsNullOrMarkedHeapReference(referent_addr, /*do_atomic_update=*/false)) { // Referent is white, clear it. if (Runtime::Current()->IsActiveTransaction()) { ref->ClearReferent(); @@ -158,7 +158,7 @@ void ReferenceQueue::EnqueueFinalizerReferences(ReferenceQueue* cleared_referenc mirror::HeapReference* referent_addr = ref->GetReferentReferenceAddr(); // do_atomic_update is false because this happens during the reference processing phase where // Reference.clear() would block. - if (!collector->IsNullOrMarkedHeapReference(referent_addr, /*do_atomic_update*/false)) { + if (!collector->IsNullOrMarkedHeapReference(referent_addr, /*do_atomic_update=*/false)) { ObjPtr forward_address = collector->MarkObject(referent_addr->AsMirrorPtr()); // Move the updated referent to the zombie field. if (Runtime::Current()->IsActiveTransaction()) { @@ -187,7 +187,7 @@ void ReferenceQueue::ForwardSoftReferences(MarkObjectVisitor* visitor) { if (referent_addr->AsMirrorPtr() != nullptr) { // do_atomic_update is false because mutators can't access the referent due to the weak ref // access blocking. - visitor->MarkHeapReference(referent_addr, /*do_atomic_update*/ false); + visitor->MarkHeapReference(referent_addr, /*do_atomic_update=*/ false); } ref = ref->GetPendingNext(); } while (LIKELY(ref != head)); -- cgit v1.2.3-59-g8ed1b