commit | 3ffec4f568318f6cc6fd131f06cbab8099f10b31 | [log] [tgz] |
---|---|---|
author | Jing Ji <jji@google.com> | Fri Jun 09 13:55:21 2023 -0700 |
committer | Jing Ji <jji@google.com> | Fri Jun 09 13:55:21 2023 -0700 |
tree | 66eae33ef1f966a131104c8d15c7e20ebfe63f5c | |
parent | 0bc1b58227c35667985e9fe0f823e2d2b0f6d78b [diff] |
Do not reuse the same ProcessRecord if it's not fully gone yet When force-stopping apps, it's eligible for restart, and during that we might be reusing the old ProcessRecord before that process is really gone. Now don't reuse that. And also, remove the ProcessRecord from the LRU list when we know it's really gone. Bug: 286299952 Test: Manual - Clear app data and make sure it could restart correctly. Change-Id: I2c71c64b962cb9b4ae15881add50c35fd9e4a7af