commit | 36994ba006c18c1933815cc0c4c036df086e6814 | [log] [tgz] |
---|---|---|
author | Mathieu Chartier <mathieuc@google.com> | Tue Dec 13 11:46:28 2016 -0800 |
committer | Mathieu Chartier <mathieuc@google.com> | Tue Dec 13 12:52:41 2016 -0800 |
tree | 013dfafba31b6d07f4880873f378475a1ce5975f | |
parent | 017c55c120a40612364448826692cc7d402eb913 [diff] |
Don't re-read referent in ReferenceProcessor::GetReferent Re-reading has the issue that it may read a null value after already having done the null check. Using a cached value prevents this from happening and causing DCHECK failures. Added a related stress test. Bug: 33569625 Bug: 33389022 Test: test-art-host Change-Id: Ic42d540e035d41ac6e5b01762f9510cd6632b28c