Disable -Xjnigreflimit: in art too.
Bug: 7903975
Change-Id: I1ec552b35331227ecd7dc3d0a2f0507b1c24e375
diff --git a/src/runtime.cc b/src/runtime.cc
index 3a528a1..e5fb46f 100644
--- a/src/runtime.cc
+++ b/src/runtime.cc
@@ -345,7 +345,6 @@
parsed->interpreter_only_ = false;
parsed->is_concurrent_gc_enabled_ = true;
- parsed->jni_globals_max_ = 0;
parsed->lock_profiling_threshold_ = 0;
parsed->hook_is_sensitive_thread_ = NULL;
@@ -535,7 +534,7 @@
}
}
} else if (StartsWith(option, "-Xjnigreflimit:")) {
- parsed->jni_globals_max_ = ParseIntegerOrDie(option);
+ // Silently ignored for backwards compatibility.
} else if (StartsWith(option, "-Xlockprofthreshold:")) {
parsed->lock_profiling_threshold_ = ParseIntegerOrDie(option);
} else if (StartsWith(option, "-Xstacktracefile:")) {
@@ -791,7 +790,6 @@
QuasiAtomic::Startup();
- SetJniGlobalsMax(options->jni_globals_max_);
Monitor::Init(options->lock_profiling_threshold_, options->hook_is_sensitive_thread_);
host_prefix_ = options->host_prefix_;