summaryrefslogtreecommitdiff
path: root/runtime/class_table.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2021-02-25 15:41:33 +0000
committer Vladimir Marko <vmarko@google.com> 2021-04-28 08:11:45 +0000
commit1dab575cd635706f03d510763cb4ea1b115a2cee (patch)
treecc885f34c0c4c139e9095ee840e3936662243581 /runtime/class_table.h
parent854725b10087bfe86b5a794093e88786ff7b9f28 (diff)
Remove some dead code around ClassTable.
Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Bug: 175869411 Change-Id: Ifb3ac102129470aff6eb228e5523b240c113818f
Diffstat (limited to 'runtime/class_table.h')
-rw-r--r--runtime/class_table.h12
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_);