summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorTej Singh <singhtejinder@google.com>2020-09-10 23:20:58 -0700
committerTej Singh <singhtejinder@google.com>2021-01-21 04:44:55 +0000
commitc7f94ac6347aaa77f890d1b382177968d2581894 (patch)
treef99708acf5befa8705670722ebbe84a4d6684cf6 /tools/aapt2/java/JavaClassGenerator.cpp
parent05efe90a8d9ea55ec6c15faa4b41a12d58a51d2c (diff)
Fix thread safety issue on clearing cache
Historically, we havent held a lock on ForceClearCache and ClearCacheIfNecessary. This is not thread safe because kAllPullAtomInfo must be accessed in a lock, especially now that pullers can be registered/unregistered. Test: atest statsd_test, wrote a repro cl. Bug: 168156854 Bug: 173552790 Change-Id: I47d53a6d9d274bca4c78dbfd87e0097091b7b8cb Merged-In: I47d53a6d9d274bca4c78dbfd87e0097091b7b8cb (cherry picked from commit f9a4bb18ffa1605cced3ee4b161675a0c88941be)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions