diff options
| author | 2022-02-28 22:35:37 +0000 | |
|---|---|---|
| committer | 2022-03-01 19:23:07 +0000 | |
| commit | b21e7cee30993f32efc0b30043d5461963623965 (patch) | |
| tree | 4905e22caca9d0d4c4950256a927b203d98cd4a9 /libs/androidfw/StringPool.cpp | |
| parent | 4b9e5c88110f10abe2eae8b95fa514c44436d41d (diff) | |
Fix a ConcurrentModificationException when dumping resources
Since the sResourcesHistory set is synchronized, an attemp to modify the
set will block while the forEach() method is running in the rare case
resources are being dumped. With a normal for loop, modifying the set
while in the loop results in a ConcurrentModificationException.
Fixes: 219609463
Test: Manual
Change-Id: I9b7bb965aa390e5dec696be07599f777c807c1e3
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions