Disable app image for very large apps

App images prevent dex2oat unloading and should not be used in this
mode. Disable app image generation when very large app mode is
detected.

Bug: 63467744
Test: test-art-host-gtest-dex2oat_test

(cherry picked from commit df8a96a1cde9dafbb1811358be1fbba6d3aec267)

Change-Id: Icd5b0d9d3e61ececffe60f7472aaee8a54d1847b
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h
index 1e05c4e..a9372c4 100644
--- a/compiler/driver/compiler_options.h
+++ b/compiler/driver/compiler_options.h
@@ -197,6 +197,10 @@
     return app_image_;
   }
 
+  void DisableAppImage() {
+    app_image_ = false;
+  }
+
   // Should the code be compiled as position independent?
   bool GetCompilePic() const {
     return compile_pic_;