Make Get/SetLocalVariables not pause jit.
We were unnecessarily pausing the jit when retrieving or setting local
variables. This could cause deadlocks in some situations.
Test: ./test.py --host -j50
Test: ./art/tools/run-libjdwp-tests.sh --mode=host
Test: see b/111131691
Bug: 111131691
Change-Id: If681b52a2dbabc118a252436e5083f99e79b3ddd
diff --git a/openjdkjvmti/ti_method.cc b/openjdkjvmti/ti_method.cc
index b83310d..f75dd50 100644
--- a/openjdkjvmti/ti_method.cc
+++ b/openjdkjvmti/ti_method.cc
@@ -783,8 +783,6 @@
return ERR(ILLEGAL_ARGUMENT);
}
art::Thread* self = art::Thread::Current();
- // Suspend JIT since it can get confused if we deoptimize methods getting jitted.
- art::jit::ScopedJitSuspend suspend_jit;
art::ScopedObjectAccess soa(self);
art::Locks::thread_list_lock_->ExclusiveLock(self);
art::Thread* target = nullptr;
@@ -919,8 +917,6 @@
// TODO We should really keep track of this at the Frame granularity.
DeoptManager::Get()->SetLocalsUpdated();
art::Thread* self = art::Thread::Current();
- // Suspend JIT since it can get confused if we deoptimize methods getting jitted.
- art::jit::ScopedJitSuspend suspend_jit;
art::ScopedObjectAccess soa(self);
art::Locks::thread_list_lock_->ExclusiveLock(self);
art::Thread* target = nullptr;