diff options
author | 2017-07-25 14:05:52 -0700 | |
---|---|---|
committer | 2017-07-26 17:10:00 -0700 | |
commit | bebd7bd02a073056851cc1b0942c53ce0d2ee206 (patch) | |
tree | c2af3c94c89a2dcee1dd742d9f8806af8025df06 /runtime/openjdkjvmti/ti_thread.cc | |
parent | ce68cc6023ef929578bcff250dff150edd0ca5e9 (diff) |
JVMTI set & get local variables
Basic implementation of the JVMTI can_access_local_variables
capability. This implements the functions and behaviors required for
this capability.
Currently enabling this capability immediately forces all threads to
use the interpreter exclusively. This behavior should be removed
eventually.
Tests follow in next CL.
Test: ./test.py --host -j50
Bug: 34414073
Bug: 36892980
Change-Id: I11a4d3cb2b945955cca270efdee2fbfd2601e0ba
Diffstat (limited to 'runtime/openjdkjvmti/ti_thread.cc')
-rw-r--r-- | runtime/openjdkjvmti/ti_thread.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/runtime/openjdkjvmti/ti_thread.cc b/runtime/openjdkjvmti/ti_thread.cc index 9acea2a288..7d42879055 100644 --- a/runtime/openjdkjvmti/ti_thread.cc +++ b/runtime/openjdkjvmti/ti_thread.cc @@ -171,9 +171,8 @@ static art::Thread* GetNativeThreadLocked(jthread thread, } // Get the native thread. The spec says a null object denotes the current thread. -static art::Thread* GetNativeThread(jthread thread, - const art::ScopedObjectAccessAlreadyRunnable& soa) - REQUIRES_SHARED(art::Locks::mutator_lock_) { +art::Thread* ThreadUtil::GetNativeThread(jthread thread, + const art::ScopedObjectAccessAlreadyRunnable& soa) { if (thread == nullptr) { return art::Thread::Current(); } |