diff options
author | 2016-10-18 16:27:40 -0700 | |
---|---|---|
committer | 2016-10-19 10:04:37 -0700 | |
commit | 28357fab628bd9b91749988b554977398caf9963 (patch) | |
tree | 957fac3c1003713c349e0e216762836138c596a7 /runtime/class_table.h | |
parent | c89f9776a107ca20d0146c16fa881db91c4f8266 (diff) |
Move most of class linker to ObjPtr
Return values are still mirror pointer. Fix some failing asserts in
compiler driver and tests.
Bug: 31113334
Test: test-art-host
Change-Id: I4450bf9dfb2541749496b8388616e8aae8488919
Diffstat (limited to 'runtime/class_table.h')
-rw-r--r-- | runtime/class_table.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/runtime/class_table.h b/runtime/class_table.h index 20e434d90b..1344990fbf 100644 --- a/runtime/class_table.h +++ b/runtime/class_table.h @@ -73,7 +73,7 @@ class ClassTable { ClassTable(); // Used by image writer for checking. - bool Contains(mirror::Class* klass) + bool Contains(ObjPtr<mirror::Class> klass) REQUIRES(!lock_) REQUIRES_SHARED(Locks::mutator_lock_); @@ -119,15 +119,15 @@ class ClassTable { REQUIRES_SHARED(Locks::mutator_lock_); // Return the first class that matches the descriptor of klass. Returns null if there are none. - mirror::Class* LookupByDescriptor(mirror::Class* klass) + mirror::Class* LookupByDescriptor(ObjPtr<mirror::Class> klass) REQUIRES(!lock_) REQUIRES_SHARED(Locks::mutator_lock_); - void Insert(mirror::Class* klass) + void Insert(ObjPtr<mirror::Class> klass) REQUIRES(!lock_) REQUIRES_SHARED(Locks::mutator_lock_); - void InsertWithHash(mirror::Class* klass, size_t hash) + void InsertWithHash(ObjPtr<mirror::Class> klass, size_t hash) REQUIRES(!lock_) REQUIRES_SHARED(Locks::mutator_lock_); @@ -166,7 +166,7 @@ class ClassTable { } private: - void InsertWithoutLocks(mirror::Class* klass) NO_THREAD_SAFETY_ANALYSIS; + void InsertWithoutLocks(ObjPtr<mirror::Class> klass) NO_THREAD_SAFETY_ANALYSIS; // Lock to guard inserting and removing. mutable ReaderWriterMutex lock_; |