jitzygote: compile system server methods at boot.
Test: m && boots
Bug: 119800099
Change-Id: Ia02a68bc3f152fe9a733577e66f327264518fe6b
diff --git a/runtime/runtime.h b/runtime/runtime.h
index a20aef4..6df9e3e 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -164,6 +164,14 @@
return is_zygote_;
}
+ bool IsSystemServer() const {
+ return is_system_server_;
+ }
+
+ void SetSystemServer(bool value) {
+ is_system_server_ = value;
+ }
+
bool IsExplicitGcDisabled() const {
return is_explicit_gc_disabled_;
}
@@ -937,6 +945,7 @@
CompilerCallbacks* compiler_callbacks_;
bool is_zygote_;
+ bool is_system_server_;
bool must_relocate_;
bool is_concurrent_gc_enabled_;
bool is_explicit_gc_disabled_;