OSDN Git Service

We also need to delete osr entries when deleting ArtMethod.
authorNicolas Geoffray <ngeoffray@google.com>
Wed, 17 Feb 2016 09:49:19 +0000 (09:49 +0000)
committerNicolas Geoffray <ngeoffray@google.com>
Wed, 17 Feb 2016 09:51:16 +0000 (09:51 +0000)
commita9b91313cee629d81d4784798d03419fc7fa9e11
tree0ee693fc2bfd64d72ab0e510de1167cdd879495f
parent7eca244e79480f2ecea341598524a53273959c2b
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
runtime/jit/jit_code_cache.cc