diff options
author | 2018-10-19 14:06:15 -0700 | |
---|---|---|
committer | 2018-10-23 15:19:55 -0700 | |
commit | 98ea9d9d82ab078ca10fa7f8e02eddda94cf1d98 (patch) | |
tree | a848b7e41ff227a2d3d4d6795ec11089f39cb6ca /runtime/gc/reference_processor.cc | |
parent | 02338775e33b553be51d44ff60bb1ef8e527bd94 (diff) |
ART: Refactor for bugprone-argument-comment
Handles runtime.
Bug: 116054210
Test: WITH_TIDY=1 mmma art
Change-Id: Ibc0d5086809d647f0ce4df5452eb84442d27ecf0
Diffstat (limited to 'runtime/gc/reference_processor.cc')
-rw-r--r-- | runtime/gc/reference_processor.cc | 10 |
1 files changed, 5 insertions, 5 deletions
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<mirror::Class> reference static inline void SetSlowPathFlag(bool enabled) REQUIRES_SHARED(Locks::mutator_lock_) { ObjPtr<mirror::Class> reference_class = GetClassRoot<mirror::Reference>(); MemberOffset slow_path_offset = GetSlowPathFlagOffset(reference_class); - reference_class->SetFieldBoolean</* kTransactionActive */ false, /* kCheckTransaction */ false>( + reference_class->SetFieldBoolean</* kTransactionActive= */ false, /* kCheckTransaction= */ false>( 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<mirror::Class> klass, mirror::HeapReference<mirror::Object>* 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; } |