Fix the read barrier builds.
A check failure (!UseJit() in ArtMethod::Invoke()) in forced interpret
only mode in the eng build with JIT enabled by default on target.
A build failure (inl header file issues) in the USE_BAKER_READ_BARRIER
build.
Change-Id: Ib13632b10864ad8b4691b66971c0ab5d2ae1e675
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 23a7db6..9e0ab0c 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -1646,6 +1646,10 @@
void Runtime::CreateJit() {
CHECK(!IsAotCompiler());
+ if (GetInstrumentation()->IsForcedInterpretOnly()) {
+ // Don't create JIT if forced interpret only.
+ return;
+ }
std::string error_msg;
jit_.reset(jit::Jit::Create(jit_options_.get(), &error_msg));
if (jit_.get() != nullptr) {