commit | 10c5f56423feaf3eadb3d4c09c61d2b998404162 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Tue May 10 18:13:20 2016 -0700 |
committer | Mathieu Chartier <mathieuc@google.com> | Wed May 11 09:56:42 2016 -0700 |
tree | 95ff81b9106f5425e9903e5239ccf410aa8bc3ea | |
parent | 718d4e269810c17d03df909c84b2f7bbd4f61fb9 [diff] |
Prevent ArtMethod clearing race There was race condition where the GC would be visiting the methods of a class while the class linker overwrote the contents with 0xFE when copying to a new array. Since the GC is holding the class table lock at this time, we can use this lock in the class linker to prevent the race. Bug: 28699001 Change-Id: I91ca2406ef723e7be69cd1c53f4bafa2e5f63657