OSDN Git Service

Make method tracing deoptimize on startup.
authorJeff Hao <jeffhao@google.com>
Tue, 12 Aug 2014 01:00:29 +0000 (18:00 -0700)
committerJeff Hao <jeffhao@google.com>
Tue, 12 Aug 2014 17:12:07 +0000 (10:12 -0700)
Bug: 16848366

(cherry picked from commit bc678bba8ec45dfcb1865676dd6d8188da9e56fc)

Change-Id: Idf75288026a837b95f4619acadec57e38bacbd7b

runtime/instrumentation.cc

index 16be077..ae42284 100644 (file)
@@ -50,7 +50,7 @@ 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 = false;
+static constexpr bool kDeoptimizeForAccurateMethodEntryExitListeners = true;
 
 static bool InstallStubsClassVisitor(mirror::Class* klass, void* arg)
     SHARED_LOCKS_REQUIRED(Locks::mutator_lock_) {