summaryrefslogtreecommitdiff
path: root/openjdkjvmti/deopt_manager.cc
diff options
context:
space:
mode:
author Mythri Alle <mythria@google.com> 2023-01-12 15:16:52 +0000
committer Mythri Alle <mythria@google.com> 2023-01-13 09:10:15 +0000
commitb69a3ebf5a4a4ef8ae25db170fce9e25844a2f1b (patch)
tree3c8b7aeb5f6105f1e244e0ee8dab5e0406666758 /openjdkjvmti/deopt_manager.cc
parent44ea676fc7738d6c1763f66600c5a2d90afa8af8 (diff)
Revert "Limited deopt request from jvmti should enable entry / exit hooks"
This reverts commit 1725f649ec7f8995cded711baa03e000a9c9dfc2. Reason for revert: Breaks arm bots: https://ci.chromium.org/ui/p/art/builders/ci/angler-armv8-non-gen-cc/2566/overview Change-Id: Ia4f961736542920499c5315d1b9363c188174293
Diffstat (limited to 'openjdkjvmti/deopt_manager.cc')
-rw-r--r--openjdkjvmti/deopt_manager.cc9
1 files changed, 0 insertions, 9 deletions
diff --git a/openjdkjvmti/deopt_manager.cc b/openjdkjvmti/deopt_manager.cc
index 99acb87257..129aa0ff4a 100644
--- a/openjdkjvmti/deopt_manager.cc
+++ b/openjdkjvmti/deopt_manager.cc
@@ -496,15 +496,6 @@ void DeoptManager::AddDeoptimizationRequester() {
art::ScopedThreadStateChange stsc(self, art::ThreadState::kSuspended);
deoptimization_status_lock_.ExclusiveLock(self);
deopter_count_++;
- if (deopter_count_ == 1) {
- // When we add a deoptimization requester, we should enable entry / exit hooks. We only call
- // this in debuggable runtimes and hence it won't be necessary to update entrypoints but we
- // still need to inform instrumentation that we need to actually run entry / exit hooks. Though
- // entrypoints are capable of running entry / exit hooks they won't run them unless enabled.
- ScopedDeoptimizationContext sdc(self, this);
- art::Runtime::Current()->GetInstrumentation()->EnableEntryExitHooks(kInstrumentationKey);
- return;
- }
deoptimization_status_lock_.ExclusiveUnlock(self);
}