commit | e778fa6ead79e9cb26810d484c5a594e9612de9b | [log] [tgz] |
---|---|---|
author | David Srbecky <dsrbecky@google.com> | Tue Apr 07 17:52:16 2020 +0100 |
committer | David Srbecky <dsrbecky@google.com> | Tue Apr 14 08:25:40 2020 +0000 |
tree | f615de89eff741c5bb2c4ea8d04ccd097223092f | |
parent | 27d2bfc603a7e25ec6132ab598ecb3319f089e03 [diff] |
Reduce cache memory use of libdexfile. It is excessive to cache all methods of all open dex files. Cache only methods that have been looked up by dex offset. Create class lookup table to keep method lookup efficient (linear search, but only within the methods of the class). This reduces memory use by over 10x. Bug: 152976928 Test: ./art/test.py -r -b --host -t 137 Test: libunwindstack_unit_test Change-Id: I0aee3d9a1060bf254b156836c428a17e6f1ee70c