summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramFragmentFixedFunction.java
diff options
context:
space:
mode:
authorDaichi Hirono <hirono@google.com>2017-03-31 14:30:41 +0900
committerDaichi Hirono <hirono@google.com>2017-04-20 13:03:32 +0900
commit4cb941e18efc9b0cc1bf2ce5bdda1924f29dea67 (patch)
tree7eea8ff1c60b9b96eeb7cf37739f4bfbecc5201b /rs/java/android/renderscript/ProgramFragmentFixedFunction.java
parent57ed0ba69d7f36493fc45cac66764bfeb10c6998 (diff)
Stop restoring tasks added before recent is loaded
Previously we can have duplicated tasks sharing the same taskId in RecentTasks due to race condition. 1. A task is created before RecentTasks#loadUserRecentsLocked (e.g. through adb) 2. RecentTasks#notifyTaskPersisterLocked eventually writes the task file to storage (e.g. XX_task.xml) 3. RecentTasks#loadUserRecentsLocked tries to recover XX_task.xml while the task has already been added to RecentTasks. To fix the issue, the CL stops restoring tasks added before recent is loaded. Bug: 36796576 Test: Build and boot Android, check the recent is correctly loaded Change-Id: Ib57977f2a0a63f7bf7db4d3fd70bdcc359e76f7d (cherry picked from commit b8aeb6f12e51e6d3ecf6a5f40c953dc76ff64884)
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions