Execute an application even when dex2oat crashes.
Bug: 17000769
(cherry picked from commit 4fcdc94d22a4608e355aa8df36240181149d10e8)
Change-Id: Iccb1fec94fe64ce4c3097510952f275482b86aa9
diff --git a/runtime/runtime.h b/runtime/runtime.h
index 9c8a24c..34ccdcb 100644
--- a/runtime/runtime.h
+++ b/runtime/runtime.h
@@ -106,6 +106,10 @@
return must_relocate_;
}
+ bool IsDex2OatEnabled() const {
+ return dex2oat_enabled_;
+ }
+
CompilerCallbacks* GetCompilerCallbacks() {
return compiler_callbacks_;
}
@@ -504,6 +508,7 @@
bool must_relocate_;
bool is_concurrent_gc_enabled_;
bool is_explicit_gc_disabled_;
+ bool dex2oat_enabled_;
std::string compiler_executable_;
std::string patchoat_executable_;