diff options
author | 2019-03-27 16:41:41 +0000 | |
---|---|---|
committer | 2019-03-28 09:22:07 +0000 | |
commit | 0984e483c1b8033250a32b11f112ae3e65eef39b (patch) | |
tree | 267b4f59818e5080dff726adf25e5b5710111377 /runtime/class_linker.cc | |
parent | 621c8807f38fedab56ea701370a18df123177f67 (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/class_linker.cc')
-rw-r--r-- | runtime/class_linker.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/class_linker.cc b/runtime/class_linker.cc index 97234afc50..dde4f366de 100644 --- a/runtime/class_linker.cc +++ b/runtime/class_linker.cc @@ -2353,7 +2353,7 @@ class VisitClassLoaderClassesVisitor : public ClassLoaderVisitor { return (*visitor_)(klass); } - ObjPtr<mirror::ClassLoader> const defining_class_loader_; + const ObjPtr<mirror::ClassLoader> defining_class_loader_; ClassVisitor* const visitor_; }; @@ -4241,7 +4241,7 @@ ObjPtr<mirror::Class> ClassLinker::InsertClass(const char* descriptor, } { WriterMutexLock mu(Thread::Current(), *Locks::classlinker_classes_lock_); - ObjPtr<mirror::ClassLoader> const class_loader = klass->GetClassLoader(); + const ObjPtr<mirror::ClassLoader> class_loader = klass->GetClassLoader(); ClassTable* const class_table = InsertClassTableForClassLoader(class_loader); ObjPtr<mirror::Class> existing = class_table->Lookup(descriptor, hash); if (existing != nullptr) { @@ -5851,10 +5851,10 @@ bool ClassLinker::LinkClass(Thread* self, { WriterMutexLock mu(self, *Locks::classlinker_classes_lock_); - ObjPtr<mirror::ClassLoader> const class_loader = h_new_class.Get()->GetClassLoader(); + const ObjPtr<mirror::ClassLoader> class_loader = h_new_class.Get()->GetClassLoader(); ClassTable* const table = InsertClassTableForClassLoader(class_loader); - ObjPtr<mirror::Class> existing = table->UpdateClass(descriptor, h_new_class.Get(), - ComputeModifiedUtf8Hash(descriptor)); + const ObjPtr<mirror::Class> existing = + table->UpdateClass(descriptor, h_new_class.Get(), ComputeModifiedUtf8Hash(descriptor)); if (class_loader != nullptr) { // We updated the class in the class table, perform the write barrier so that the GC knows // about the change. |