diff options
author | Mathieu Chartier <mathieuc@google.com> | 2015-03-17 13:48:29 -0700 |
---|---|---|
committer | Mathieu Chartier <mathieuc@google.com> | 2015-03-18 18:49:28 -0700 |
commit | 455f67c4cf0b4f04e117db3024fd189fa1c7dab9 (patch) | |
tree | 3f89fdc8ba9b31cc0205945410a75d63e2f25000 /runtime/jit/jit.h | |
parent | 5747266d57445ecdd026a4705d62768faad09b01 (diff) | |
download | android_art-455f67c4cf0b4f04e117db3024fd189fa1c7dab9.tar.gz android_art-455f67c4cf0b4f04e117db3024fd189fa1c7dab9.tar.bz2 android_art-455f67c4cf0b4f04e117db3024fd189fa1c7dab9.zip |
Fix JIT options with late init
Previously we couldn't create the JIT since we didn't have any
JITOptions.
Bug: 19735273
Change-Id: I24b8ed131ed8b18f75ec94291e135d8a1c089ebd
Diffstat (limited to 'runtime/jit/jit.h')
-rw-r--r-- | runtime/jit/jit.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/jit/jit.h b/runtime/jit/jit.h index 6b206d15b8..3e80aef4c8 100644 --- a/runtime/jit/jit.h +++ b/runtime/jit/jit.h @@ -100,13 +100,21 @@ class JitOptions { bool DumpJitInfoOnShutdown() const { return dump_info_on_shutdown_; } + bool UseJIT() const { + return use_jit_; + } + void SetUseJIT(bool b) { + use_jit_ = b; + } private: + bool use_jit_; size_t code_cache_capacity_; size_t compile_threshold_; bool dump_info_on_shutdown_; - JitOptions() : code_cache_capacity_(0), compile_threshold_(0), dump_info_on_shutdown_(false) { + JitOptions() : use_jit_(false), code_cache_capacity_(0), compile_threshold_(0), + dump_info_on_shutdown_(false) { } }; |