diff options
author | 2017-07-06 14:55:02 +0100 | |
---|---|---|
committer | 2017-07-20 16:33:00 +0100 | |
commit | 07bfbace6f835e6c748fd68ec7624992478b16c1 (patch) | |
tree | 5d094a00fbc90455bd9b53e042cf8b4fe8433462 /runtime/class_linker_test.cc | |
parent | ba118827465d12177f3996e50133960087b1c916 (diff) |
Hash-based DexCache methods array.
Total boot*.art size for aosp_angler-userdebug:
- arm64:
- before: 11603968
- after: 10129408 (-1.4MiB, -12.7%)
- arm:
- before: 8626176
- after: 7888896 (-0.7MiB, -8.5%)
Test: m test-art-host-gtest
Test: testrunner.py --host
Test: Nexus 6P boots.
Test: testrunner.py --target
Test: Build aosp_mips64-eng
Bug: 30627598
Change-Id: I7f858605de5f074cbd7f0d9c4c072fbd44aee28f
Diffstat (limited to 'runtime/class_linker_test.cc')
-rw-r--r-- | runtime/class_linker_test.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/runtime/class_linker_test.cc b/runtime/class_linker_test.cc index 98d7c7ccca..39d77f07de 100644 --- a/runtime/class_linker_test.cc +++ b/runtime/class_linker_test.cc @@ -440,14 +440,6 @@ class ClassLinkerTest : public CommonRuntimeTest { } TestRootVisitor visitor; class_linker_->VisitRoots(&visitor, kVisitRootFlagAllRoots); - // Verify the dex cache has resolution methods in all resolved method slots - ObjPtr<mirror::DexCache> dex_cache = class_linker_->FindDexCache(Thread::Current(), dex); - auto* resolved_methods = dex_cache->GetResolvedMethods(); - for (size_t i = 0, num_methods = dex_cache->NumResolvedMethods(); i != num_methods; ++i) { - EXPECT_TRUE( - mirror::DexCache::GetElementPtrSize(resolved_methods, i, kRuntimePointerSize) != nullptr) - << dex.GetLocation() << " i=" << i; - } } class TestRootVisitor : public SingleRootVisitor { |