From 4a200f56b7075309316b04d550c9cc50f8314edd Mon Sep 17 00:00:00 2001 From: Jeff Hao Date: Tue, 1 Apr 2014 14:58:49 -0700 Subject: Add support for -Xverify:none mode. This mode skips all verification and compilation. Public bug: https://code.google.com/p/android/issues/detail?id=67664 Change-Id: Idd00ab8e9e46d129c02988b063c41a507e07bf5b --- runtime/runtime.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'runtime/runtime.cc') diff --git a/runtime/runtime.cc b/runtime/runtime.cc index b0a6584..1b3c996 100644 --- a/runtime/runtime.cc +++ b/runtime/runtime.cc @@ -132,7 +132,8 @@ Runtime::Runtime() preinitialization_transaction_(nullptr), null_pointer_handler_(nullptr), suspend_handler_(nullptr), - stack_overflow_handler_(nullptr) { + stack_overflow_handler_(nullptr), + verify_(false) { for (int i = 0; i < Runtime::kLastCalleeSaveType; i++) { callee_save_methods_[i] = nullptr; } @@ -521,6 +522,7 @@ bool Runtime::Init(const Options& raw_options, bool ignore_unrecognized) { thread_list_ = new ThreadList; intern_table_ = new InternTable; + verify_ = options->verify_; if (options->interpreter_only_) { GetInstrumentation()->ForceInterpretOnly(); -- cgit v1.1