diff options
author | 2015-10-15 09:19:15 -0700 | |
---|---|---|
committer | 2015-10-16 08:46:12 -0700 | |
commit | 32cc9ee0cdffecb0ec8d80a7fd55d7dccae3a7ee (patch) | |
tree | e394d05cb35fd8a89ae4be0d57635d7fee219ede /runtime/class_linker.h | |
parent | 114873103db3d4d6e0da42ca02bad1ea8826443b (diff) |
Change hash table load factors
Changed class table and intern table load factors to query the
runtime. The runtime returns load factors based on whether or not we
are a low ram device.
DescriptorEquals time for class linking goes from 10% -> 1.2% for
compiling GmsCore with interpret only.
Added test.
Bug: 24917584
Change-Id: Iaaf5d2eab1b0c2d188d299e4bc1852cdb3801173
Diffstat (limited to 'runtime/class_linker.h')
-rw-r--r-- | runtime/class_linker.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/class_linker.h b/runtime/class_linker.h index a70967d49b..fd30a46a1b 100644 --- a/runtime/class_linker.h +++ b/runtime/class_linker.h @@ -529,6 +529,8 @@ class ClassLinker { SHARED_REQUIRES(Locks::mutator_lock_) REQUIRES(!Locks::classlinker_classes_lock_); + // Unlike GetOrCreateAllocatorForClassLoader, GetAllocatorForClassLoader asserts that the + // allocator for this class loader is already created. static LinearAlloc* GetAllocatorForClassLoader(mirror::ClassLoader* class_loader) SHARED_REQUIRES(Locks::mutator_lock_); |