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_table.cc | |
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_table.cc')
-rw-r--r-- | runtime/class_table.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/class_table.cc b/runtime/class_table.cc index fc8e6c49da..4b0cbc836c 100644 --- a/runtime/class_table.cc +++ b/runtime/class_table.cc @@ -21,7 +21,9 @@ namespace art { ClassTable::ClassTable() { - classes_.push_back(ClassSet()); + Runtime* const runtime = Runtime::Current(); + classes_.push_back(ClassSet(runtime->GetHashTableMinLoadFactor(), + runtime->GetHashTableMaxLoadFactor())); } void ClassTable::FreezeSnapshot() { |