summaryrefslogtreecommitdiff
path: root/runtime/gc/reference_processor.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2019-03-27 16:41:41 +0000
committer Vladimir Marko <vmarko@google.com> 2019-03-28 09:22:07 +0000
commit0984e483c1b8033250a32b11f112ae3e65eef39b (patch)
tree267b4f59818e5080dff726adf25e5b5710111377 /runtime/gc/reference_processor.cc
parent621c8807f38fedab56ea701370a18df123177f67 (diff)
Style cleanup for ObjPtr<>-ify changes.
Replace "ObjPtr<.> const" with "const ObjPtr<.>". Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 31113334 Change-Id: I5a1c080bc88b091e15ee9eb0bb1ef6f6f290701c
Diffstat (limited to 'runtime/gc/reference_processor.cc')
-rw-r--r--runtime/gc/reference_processor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/gc/reference_processor.cc b/runtime/gc/reference_processor.cc
index 49446399fd..b0fc7a6ae4 100644
--- a/runtime/gc/reference_processor.cc
+++ b/runtime/gc/reference_processor.cc
@@ -91,7 +91,7 @@ ObjPtr<mirror::Object> ReferenceProcessor::GetReferent(Thread* self,
// Under read barrier / concurrent copying collector, it's not safe to call GetReferent() when
// weak ref access is disabled as the call includes a read barrier which may push a ref onto the
// mark stack and interfere with termination of marking.
- ObjPtr<mirror::Object> const referent = reference->GetReferent();
+ const ObjPtr<mirror::Object> referent = reference->GetReferent();
// If the referent is null then it is already cleared, we can just return null since there is no
// scenario where it becomes non-null during the reference processing phase.
if (UNLIKELY(!SlowPathEnabled()) || referent == nullptr) {