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
1 file changed