Merge "Reduce wtf spam when a service onDestroy races with proc death" into nyc-dev am: 319380226a

am: 2b38000a91

* commit '2b38000a91aefd6e758b08c3cc0927dfc6a1c861':
  Reduce wtf spam when a service onDestroy races with proc death

Change-Id: Ic239b20139f7fc627fc547647713134d7c80477a
This commit is contained in:
Amith Yamasani
2016-05-11 16:51:14 +00:00
committed by android-build-merger

View File

@@ -2186,8 +2186,12 @@ public final class ActiveServices {
if (!inDestroying) {
// Not sure what else to do with this... if it is not actually in the
// destroying list, we don't need to make sure to remove it from it.
Slog.wtfStack(TAG, "Service done with onDestroy, but not inDestroying: "
+ r);
// If the app is null, then it was probably removed because the process died,
// otherwise wtf
if (r.app != null) {
Slog.wtfStack(TAG, "Service done with onDestroy, but not inDestroying: "
+ r + ", app=" + r.app);
}
} else if (r.executeNesting != 1) {
Slog.wtfStack(TAG, "Service done with onDestroy, but executeNesting="
+ r.executeNesting + ": " + r);