summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorlouis_chang <louis_chang@htc.com>2014-12-02 12:57:39 +0800
committerlouis_chang <louis_chang@htc.com>2014-12-02 12:57:39 +0800
commit62cfde14423922948928c40eddd212d1dc51d591 (patch)
tree3017d79ee709a8b1d462df7312d7ba2f9b10cef6 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent1ee377764a59d0e2c245dd037006fa8c086f5683 (diff)
[ActivityManager] Fix race condition in pss collection
Symptom: There has a race condition that two threads are accessing the mPendingPssProcesses simultaneously. One of the thread is collecting the process pss by looping the mPendingPssProcesses. The other thread is requesting to collect pss of all processes, which clears mPendingPssProcesses and adding processes back. Solution: Avoid race condition by adding synchornized protection. Change-Id: Ifb090eda9c4a1b8e3fd980fe0171e9dd77773b46
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions