summaryrefslogtreecommitdiffstats
path: root/runtime/debugger.cc
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2015-05-07 16:10:43 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-05-07 16:10:44 +0000
commitba9ef5377b21a627ec502da3e475b34e45d0c435 (patch)
tree5facbc141e51db481cb7473403675a4142992ba1 /runtime/debugger.cc
parentb882da74db950246b5731aecad9737b63bdefef7 (diff)
parent0462c4c87c39db6cfcd338f323844738109ac3c9 (diff)
downloadart-ba9ef5377b21a627ec502da3e475b34e45d0c435.tar.gz
art-ba9ef5377b21a627ec502da3e475b34e45d0c435.tar.bz2
art-ba9ef5377b21a627ec502da3e475b34e45d0c435.zip
Merge "Support multiple instrumentation clients"
Diffstat (limited to 'runtime/debugger.cc')
-rw-r--r--runtime/debugger.cc9
1 files changed, 6 insertions, 3 deletions
diff --git a/runtime/debugger.cc b/runtime/debugger.cc
index 47371e54c5..9b33e50881 100644
--- a/runtime/debugger.cc
+++ b/runtime/debugger.cc
@@ -57,6 +57,9 @@
namespace art {
+// The key identifying the debugger to update instrumentation.
+static constexpr const char* kDbgInstrumentationKey = "Debugger";
+
static const size_t kMaxAllocRecordStackDepth = 16; // Max 255.
static const size_t kDefaultNumAllocRecords = 64*1024; // Must be a power of 2. 2BE can hold 64k-1.
@@ -733,7 +736,7 @@ void Dbg::Disconnected() {
instrumentation_events_ = 0;
}
if (RequiresDeoptimization()) {
- runtime->GetInstrumentation()->DisableDeoptimization();
+ runtime->GetInstrumentation()->DisableDeoptimization(kDbgInstrumentationKey);
}
gDebuggerActive = false;
}
@@ -3054,12 +3057,12 @@ void Dbg::ProcessDeoptimizationRequest(const DeoptimizationRequest& request) {
break;
case DeoptimizationRequest::kFullDeoptimization:
VLOG(jdwp) << "Deoptimize the world ...";
- instrumentation->DeoptimizeEverything();
+ instrumentation->DeoptimizeEverything(kDbgInstrumentationKey);
VLOG(jdwp) << "Deoptimize the world DONE";
break;
case DeoptimizationRequest::kFullUndeoptimization:
VLOG(jdwp) << "Undeoptimize the world ...";
- instrumentation->UndeoptimizeEverything();
+ instrumentation->UndeoptimizeEverything(kDbgInstrumentationKey);
VLOG(jdwp) << "Undeoptimize the world DONE";
break;
case DeoptimizationRequest::kSelectiveDeoptimization: