commit | 7abcdb592e5cbd5d233dc13cc351530ae698dad7 | [log] [tgz] |
---|---|---|
author | Jing Ji <jji@google.com> | Wed Feb 24 23:30:30 2021 -0800 |
committer | Jing Ji <jji@google.com> | Wed Feb 24 23:37:40 2021 -0800 |
tree | 9259cd94d2b4018bb97a1f3b4cbe00eb556c81f7 | |
parent | baba083691f269e9b32d3916d371ffa863bf1a5c [diff] |
Validate the ProcessRecord while iterating LRU list with ProcLock Fix a race condition where the ProcessRecord has been invalidated but it hasn't been removed from LRU list, meanwhile another thread iterates the LRU list with the ProcLock, thus the ProcessRecord should be validated. Bug: 180849723 Test: atest CtsAppTestCases:ActivityManagerTest Test: Manual - randomly kill other processes during above test Change-Id: I76570a7717b98b499b865acf590af7a2133c36d9