diff options
author | Yuri Lin <yurilin@google.com> | 2021-05-03 14:36:15 -0400 |
---|---|---|
committer | Yuri Lin <yurilin@google.com> | 2021-05-03 14:37:19 -0400 |
commit | 4443582702f12bb1965e2c1fc4f41bab2626ecce (patch) | |
tree | ad428197fbca75115fa4d91f81cd315fb40ec05e /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 94592d369e325eafbcc1a3d242bd7475f4bf2528 (diff) |
Add a lock around mBuffer in Archive.
Channel removal was resulting in some concurrent modification exceptions, so this change both adds a lock to synchronize any read/write access to mBuffer and also adds a test to make sure attempted concurrent access works correctly.
Test: atest ArchiveTest before and after change
Fixes: 186860793
Change-Id: Ic5f15a0fd3de27a44cc755c5d2f8008887c6b5b9
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions