diff options
Diffstat (limited to 'runtime/instrumentation.cc')
-rw-r--r-- | runtime/instrumentation.cc | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/runtime/instrumentation.cc b/runtime/instrumentation.cc index f8c0e83..51600f7 100644 --- a/runtime/instrumentation.cc +++ b/runtime/instrumentation.cc @@ -50,11 +50,6 @@ namespace instrumentation { const bool kVerboseInstrumentation = false; -// Do we want to deoptimize for method entry and exit listeners or just try to intercept -// invocations? Deoptimization forces all code to run in the interpreter and considerably hurts the -// application's performance. -static constexpr bool kDeoptimizeForAccurateMethodEntryExitListeners = true; - static bool InstallStubsClassVisitor(mirror::Class* klass, void* arg) EXCLUSIVE_LOCKS_REQUIRED(Locks::mutator_lock_) { Instrumentation* instrumentation = reinterpret_cast<Instrumentation*>(arg); @@ -846,8 +841,7 @@ void Instrumentation::UndeoptimizeEverything() { ConfigureStubs(false, false); } -void Instrumentation::EnableMethodTracing() { - bool require_interpreter = kDeoptimizeForAccurateMethodEntryExitListeners; +void Instrumentation::EnableMethodTracing(bool require_interpreter) { ConfigureStubs(!require_interpreter, require_interpreter); } |