diff options
author | Mathieu Chartier <mathieuc@google.com> | 2020-03-30 17:57:26 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2020-03-31 12:10:36 -0700 |
commit | 314faec6bdfac52a997587e66ef67badeefd832a (patch) | |
tree | bf21031bb3fb6bae4142a0b0f627f7e160e77abb /test/008-exceptions/src/MultiDexBadInit.java | |
parent | da4fb26918c99f0ff8ffe78f0d4aca0a9c8668eb (diff) |
Fix race condition in GetPreResolvedStrings
DexCache::VisitReferences had a race condition where a null pointer
could be accessed if there was another concurrent caller doing
ClearPreResolvedStrings.
Fix is to add an extra null check that prevents the race.
(cherry-picked from commit ca1c39addf4446c8eff3cf0b304112c59b400b18)
Bug: 152716138
Test: test-art-host
Merged-In: Ib447ce689e23f7c20d4cda8b457abeb89ade9291
Change-Id: Ib447ce689e23f7c20d4cda8b457abeb89ade9291
Diffstat (limited to 'test/008-exceptions/src/MultiDexBadInit.java')
0 files changed, 0 insertions, 0 deletions