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_processor.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'runtime/gc/reference_processor.cc') diff --git a/runtime/gc/reference_processor.cc b/runtime/gc/reference_processor.cc index c212bad530..d4af117e46 100644 --- a/runtime/gc/reference_processor.cc +++ b/runtime/gc/reference_processor.cc @@ -60,16 +60,16 @@ static inline MemberOffset GetSlowPathFlagOffset(ObjPtr reference static inline void SetSlowPathFlag(bool enabled) REQUIRES_SHARED(Locks::mutator_lock_) { ObjPtr reference_class = GetClassRoot(); MemberOffset slow_path_offset = GetSlowPathFlagOffset(reference_class); - reference_class->SetFieldBoolean( + reference_class->SetFieldBoolean( slow_path_offset, enabled ? 1 : 0); } void ReferenceProcessor::EnableSlowPath() { - SetSlowPathFlag(/* enabled */ true); + SetSlowPathFlag(/* enabled= */ true); } void ReferenceProcessor::DisableSlowPath(Thread* self) { - SetSlowPathFlag(/* enabled */ false); + SetSlowPathFlag(/* enabled= */ false); condition_.Broadcast(self); } @@ -238,13 +238,13 @@ void ReferenceProcessor::DelayReferenceReferent(ObjPtr klass, mirror::HeapReference* referent = ref->GetReferentReferenceAddr(); // do_atomic_update needs to be true because this happens outside of the reference processing // phase. - if (!collector->IsNullOrMarkedHeapReference(referent, /*do_atomic_update*/true)) { + if (!collector->IsNullOrMarkedHeapReference(referent, /*do_atomic_update=*/true)) { if (UNLIKELY(collector->IsTransactionActive())) { // In transaction mode, keep the referent alive and avoid any reference processing to avoid the // issue of rolling back reference processing. do_atomic_update needs to be true because this // happens outside of the reference processing phase. if (!referent->IsNull()) { - collector->MarkHeapReference(referent, /*do_atomic_update*/ true); + collector->MarkHeapReference(referent, /*do_atomic_update=*/ true); } return; } -- cgit v1.2.3-59-g8ed1b