Fix AddCurrentRuntimeFeaturesAsDex2OatArguments jit handling
Now jit passes interpret filter to dex2oat.
Bug: 19550422
Change-Id: I932c7d1084acbb9d356ad0f5534a270e2ca2d6ec
diff --git a/runtime/runtime.cc b/runtime/runtime.cc
index 8c5827c..edc55c8 100644
--- a/runtime/runtime.cc
+++ b/runtime/runtime.cc
@@ -1657,7 +1657,7 @@
void Runtime::AddCurrentRuntimeFeaturesAsDex2OatArguments(std::vector<std::string>* argv)
const {
- if (GetInstrumentation()->InterpretOnly()) {
+ if (GetInstrumentation()->InterpretOnly() || UseJit()) {
argv->push_back("--compiler-filter=interpret-only");
}