diff options
author | Hidehiko Tsuchiya <hidehiko.xa.tsuchiya@sonymobile.com> | 2018-01-18 13:50:55 +0900 |
---|---|---|
committer | Chris Tate <ctate@android.com> | 2018-03-12 17:59:27 +0000 |
commit | d160479a24c28b5cf142483e8449967ec55bcf33 (patch) | |
tree | c09101951759d0a54eba62508efc37aafacce2ac /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 12da48e095e8530d0340886eb40bd6d0381fec8a (diff) |
Defer deleting a http cache
Symptom:
StatementService was crashed due to the exception;
"java.lang.IllegalStateException: cache is closed"
Root cause:
The http cache is deleted at DirectStatementService#onDestroy
in main thread. If a worker thread is still alive and it tries to
access the cache, it fails with IllegalStateException.
Solution:
The request of deleting a cache was moved from the main thread to
worker. Now, the cache can be deleted safely.
Cherrypick from AOSP master.
Bug: 73911877
Test: manual
Change-Id: I61f4e62b00e35f4a272ef983758e61ef3bf2d180
Merged-In: I61f4e62b00e35f4a272ef983758e61ef3bf2d180
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions