diff options
Diffstat (limited to 'runtime/class_table.h')
-rw-r--r-- | runtime/class_table.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/class_table.h b/runtime/class_table.h index 104871ff21..f27d8093ce 100644 --- a/runtime/class_table.h +++ b/runtime/class_table.h @@ -73,6 +73,9 @@ class ClassTable { return MaskHash(other) == Hash(); } + static uint32_t HashDescriptor(ObjPtr<mirror::Class> klass) + REQUIRES_SHARED(Locks::mutator_lock_); + template<ReadBarrierOption kReadBarrierOption = kWithReadBarrier> mirror::Class* Read() const REQUIRES_SHARED(Locks::mutator_lock_); @@ -174,6 +177,10 @@ class ClassTable { bool Visit(Visitor& visitor) REQUIRES(!lock_) REQUIRES_SHARED(Locks::mutator_lock_); + template <typename Visitor> + bool Visit(const Visitor& visitor) + REQUIRES(!lock_) + REQUIRES_SHARED(Locks::mutator_lock_); // Return the first class that matches the descriptor. Returns null if there are none. mirror::Class* Lookup(const char* descriptor, size_t hash) |