Merge "Frameworks: Add VMRuntime.hasBootImageSpaces check"

am: 9135811848

Change-Id: I2832abb30bc7e96e92ac900cc84715dcab9cabc3
This commit is contained in:
Andreas Gampe
2018-10-11 08:44:17 -07:00
committed by android-build-merger

View File

@@ -459,6 +459,12 @@ public final class SystemServer {
}
}
// Diagnostic to ensure that the system is in a base healthy state. Done here as a common
// non-zygote process.
if (!VMRuntime.hasBootImageSpaces()) {
Slog.wtf(TAG, "Runtime is not running with a boot image!");
}
// Loop forever.
Looper.loop();
throw new RuntimeException("Main thread loop unexpectedly exited");