commit | a9b91313cee629d81d4784798d03419fc7fa9e11 | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Wed Feb 17 09:49:19 2016 +0000 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Wed Feb 17 09:51:16 2016 +0000 |
tree | 0ee693fc2bfd64d72ab0e510de1167cdd879495f | |
parent | 7eca244e79480f2ecea341598524a53273959c2b [diff] |
We also need to delete osr entries when deleting ArtMethod. In the unfortunate event an ArtMethod gets allocated at the same location as an old (deleted) ArtMethod, the osr_code_map_ lookup will succeed and return garbage. So we need to delete entries in the osr_code_map_ when an ArtMethod gets deleted. This should finally fix: dalvik.system.DexClassLoaderTest#test_twoJar_diff_getResourceAsStream Change-Id: I7c8b775c3376a6cfcb907f09b783e393967ad82d