summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorHui Yu <huiyu@google.com>2019-05-17 13:39:52 -0700
committerHui Yu <huiyu@google.com>2019-05-17 13:46:55 -0700
commit3d47e0ceca4e6528a1bec2a7e94a833b8951d93a (patch)
tree15d8450ea3e61b0093869673612cc0f9affd4f21 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent3acf511895d8d19d5f9189d0159ae1d677a89a42 (diff)
Clean up ProcessRecord when reuse a pid.
When Zygote starts a process with a pid, system_server may have this pid associate with a old process which is killed by the OS but system_server has not finished cleanup. In this case, clean up the old ProcessRecord so the new process can use the pid. This problem is exposed because the asynchronous process start change. attachApplicationLocked() may happen before handleProcessStartedLocked() and the mPidsSelfLocked may still have the old ProcessRecord associate with the new process's pid. Bug: 131105245 Test: POC test steps in b/131105245. Change-Id: I775acda5147291d0cf9836b6ffb3f52d1bf9bffe Merged-In: I775acda5147291d0cf9836b6ffb3f52d1bf9bffe Merged-In: I5d421f6c68f6b3437d51c94f4aef77e08a7bf002
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions