diff options
Diffstat (limited to 'runtime/class_table.h')
-rw-r--r-- | runtime/class_table.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/runtime/class_table.h b/runtime/class_table.h index 375954ac18..dfae1fd9e4 100644 --- a/runtime/class_table.h +++ b/runtime/class_table.h @@ -142,11 +142,6 @@ class ClassTable { ClassTable(); - // Used by image writer for checking. - bool Contains(ObjPtr<mirror::Class> klass) - REQUIRES(!lock_) - REQUIRES_SHARED(Locks::mutator_lock_); - // Freeze the current class tables by allocating a new table and never updating or modifying the // existing table. This helps prevents dirty pages after caused by inserting after zygote fork. void FreezeSnapshot() @@ -209,16 +204,11 @@ class ClassTable { REQUIRES_SHARED(Locks::mutator_lock_); // Return the first class that matches the descriptor of klass. Returns null if there are none. + // Used for tests and debug-build checks. ObjPtr<mirror::Class> LookupByDescriptor(ObjPtr<mirror::Class> klass) REQUIRES(!lock_) REQUIRES_SHARED(Locks::mutator_lock_); - // Try to insert a class and return the inserted class if successful. If another class - // with the same descriptor is already in the table, return the existing entry. - ObjPtr<mirror::Class> TryInsert(ObjPtr<mirror::Class> klass) - REQUIRES(!lock_) - REQUIRES_SHARED(Locks::mutator_lock_); - void Insert(ObjPtr<mirror::Class> klass) REQUIRES(!lock_) REQUIRES_SHARED(Locks::mutator_lock_); |