diff options
author | 2022-04-12 11:27:34 +0100 | |
---|---|---|
committer | 2022-04-12 13:22:19 +0000 | |
commit | 7a0478394749f206544fb86841bd6c62dc87f005 (patch) | |
tree | 900f6067114bf7897cb1c6ee939db3121f0badba /runtime/class_table.cc | |
parent | 53258d07c179d8530adcf8c73848e114830c913c (diff) |
dex2oat: Faster class pruning.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
Change-Id: I0f4facc13ded5e5a5755fe9bec1c32449049129a
Diffstat (limited to 'runtime/class_table.cc')
-rw-r--r-- | runtime/class_table.cc | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/runtime/class_table.cc b/runtime/class_table.cc index acfbcb09a3..4bc2fe6833 100644 --- a/runtime/class_table.cc +++ b/runtime/class_table.cc @@ -153,19 +153,6 @@ void ClassTable::InsertWithHash(ObjPtr<mirror::Class> klass, size_t hash) { classes_.back().InsertWithHash(TableSlot(klass, hash), hash); } -bool ClassTable::Remove(const char* descriptor) { - DescriptorHashPair pair(descriptor, ComputeModifiedUtf8Hash(descriptor)); - WriterMutexLock mu(Thread::Current(), lock_); - for (ClassSet& class_set : classes_) { - auto it = class_set.find(pair); - if (it != class_set.end()) { - class_set.erase(it); - return true; - } - } - return false; -} - bool ClassTable::InsertStrongRoot(ObjPtr<mirror::Object> obj) { WriterMutexLock mu(Thread::Current(), lock_); DCHECK(obj != nullptr); |