summaryrefslogtreecommitdiff
path: root/compiler/driver/compiler_options.h
diff options
context:
space:
mode:
authorMathieu Chartier <mathieuc@google.com>2017-08-17 00:06:39 -0700
committerMathieu Chartier <mathieuc@google.com>2017-08-17 12:52:20 -0700
commit8cce65ac4855c01b58f66eeeeea30404df671d1e (patch)
treefe047c04e027368264b58ec2166d2053796d2cee /compiler/driver/compiler_options.h
parent2ade881db8642f10007c1c46b5e7f073d463c2d3 (diff)
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
Diffstat (limited to 'compiler/driver/compiler_options.h')
-rw-r--r--compiler/driver/compiler_options.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/driver/compiler_options.h b/compiler/driver/compiler_options.h
index 1e05c4e9aa..a9372c4844 100644
--- a/compiler/driver/compiler_options.h
+++ b/compiler/driver/compiler_options.h
@@ -197,6 +197,10 @@ class CompilerOptions FINAL {
return app_image_;
}
+ void DisableAppImage() {
+ app_image_ = false;
+ }
+
// Should the code be compiled as position independent?
bool GetCompilePic() const {
return compile_pic_;