OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d3f4e6
)
Frameworks: Add VMRuntime.hasBootImageSpaces check
author
Andreas Gampe
<agampe@google.com>
Tue, 9 Oct 2018 17:40:52 +0000
(10:40 -0700)
committer
Andreas Gampe
<agampe@google.com>
Tue, 9 Oct 2018 18:24:24 +0000
(11:24 -0700)
Log a wtf in the system server when the runtime does not
use a boot image.
Test: m
Test: system boots
Change-Id: I087c269dd1e95eeeab5db4250133f9c61e9399c7
services/java/com/android/server/SystemServer.java
patch
|
blob
|
history
diff --git
a/services/java/com/android/server/SystemServer.java
b/services/java/com/android/server/SystemServer.java
index
82a2895
..
439f313
100644
(file)
--- a/
services/java/com/android/server/SystemServer.java
+++ b/
services/java/com/android/server/SystemServer.java
@@
-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");