summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorlouis_chang <louis_chang@htc.com>2014-12-02 12:57:39 +0800
committerCraig Mautner <cmautner@google.com>2014-12-04 13:30:12 -0800
commit71e737c8e8b970d780b930ebc6eacb4464d4a6aa (patch)
treecfc0ab53fbc16833af1d58c10d768f87d6594226 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent932c33214729fe2d2b09f82ef60a72871f182654 (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 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions