Merge "Frameworks: Add VMRuntime.hasBootImageSpaces check"

This commit is contained in:
Treehugger Robot
2018-10-11 15:10:34 +00:00
committed by Gerrit Code Review

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");