Revert^2 "Make FinalizerWatchDogDaemon also monitor RQDaemon"
This relands aosp/1830386
PS1 is identical to aosp/1830386. See comments there.
PS2 adds some cleanups discovered while scrutinizing the code.
PS3 adds fixes, and patchsets tweak them slightly:
1) Static constants were initialized after calling a constructor that
used them.
2) Statically initializing activeWatchees doesn't work if the daemon
is stopped via interruption, as we do regularly in the zygote.
3) Explicitly catch and log uncaught exceptions in the system
daemons. They previously did not always show up in the log,
since the relevant call to isetDefaultUncaughtExceptionHandler
is made later during app startup.
The last one is somewhat unrelated, but this hampered my debugging,
and it could cause problems diagnosing a crashed daemon.
Bug: 197500807
Test: Build and boot AOSP
Change-Id: I575c1ab7c4af0c94050efe718b6a7674d7954b2d
2 files changed