Don't do CHA inlining in zygote.
Otherwise, we deopt at app startup when using the apex.art image.
Noticed while investigating systraces.
Test: start dialer, look at systrace
Bug: 119800099
Change-Id: I72d7881646da35f5b17f77cd453525cedc3d7356
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc
index 021d2cf..455ad00 100644
--- a/compiler/optimizing/inliner.cc
+++ b/compiler/optimizing/inliner.cc
@@ -382,6 +382,11 @@
// No CHA-based devirtulization for AOT compiler (yet).
return nullptr;
}
+ if (Runtime::Current()->IsZygote()) {
+ // No CHA-based devirtulization for Zygote, as it compiles with
+ // offline information.
+ return nullptr;
+ }
if (outermost_graph_->IsCompilingOsr()) {
// We do not support HDeoptimize in OSR methods.
return nullptr;