commit | 0376a5c214e00d1c99fc4a76e70ec368f1d1cd9b | [log] [tgz] |
---|---|---|
author | Nicolas Geoffray <ngeoffray@google.com> | Thu Jan 12 15:15:45 2017 +0000 |
committer | Nicolas Geoffray <ngeoffray@google.com> | Fri Jan 13 09:27:53 2017 +0000 |
tree | a405f5a7c6cf12926d6c0e31402f65c10ffe5129 | |
parent | ca25208049d3d1795d268bb8f9a8a787f4708577 [diff] |
Dont keep around scoped allocated ArtMethod after thread suspension. Those methods are used after thread suspension, and their eg declaring class is read. Because the GC does not see these methods, the declaring class can move and the code will then access a stalled pointer. Test: test-art-host, ART_TEST_GC_STRESS=true/false Test: 690-default-smali Change-Id: I632197bc51f0da1dcf33b08195e8cfa4ccd73188