OSDN Git Service

Reduce race when connecting to an existing content provider.
authorDianne Hackborn <hackbod@google.com>
Mon, 20 Jun 2016 22:20:15 +0000 (15:20 -0700)
committerDianne Hackborn <hackbod@google.com>
Tue, 21 Jun 2016 17:04:22 +0000 (10:04 -0700)
commit4de5a3ac6655f76b67af38712ae5aeb6d7c15938
treedfc68b6998afb1946e47c1c119af156dcb038c56
parentc2d75c898b09d87a5e7c39a0b7f387872a815490
Reduce race when connecting to an existing content provider.

We lost the code that checks to see if the target process still
exists and aborts trying to use it if so.  To reduce the race
there, we have a new explicit check of the state of the process.

Hopefully fixes some of issue #28737082.

Change-Id: I37a7a6e9767516d564168ef5e110c4adafe3fb76
core/java/android/os/Process.java
core/jni/android_util_Process.cpp
services/core/java/com/android/server/am/ActivityManagerService.java
services/core/java/com/android/server/am/ProcessRecord.java