diff options
author | 2017-09-25 17:00:16 -0700 | |
---|---|---|
committer | 2017-10-02 15:13:27 -0700 | |
commit | 54d39dc42630cd83f2d1bec5704805febb894819 (patch) | |
tree | a23da52ebe6a98a125929a5ae2dacc87db5f7965 /openjdkjvmti/ti_thread.h | |
parent | 848574ca50bb7e2d109608359d1086b3ca6bb4b3 (diff) |
Implement JVMTI can_signal_thread capability.
Implements the JVMTI can_signal_thread capability and all associated
methods and behaviors. This includes both the StopThread and
InterruptThread functions.
This CL contains the tests for the previous CL.
Test: ./test.py --host -j50
Test: stress --cpu 59 && while ./test/run-test --host 1934; do; done
Bug: 62821960
Bug: 34415266
Change-Id: I7b6fc37da0d2673caa993e486f078cf129d74c0f
Diffstat (limited to 'openjdkjvmti/ti_thread.h')
-rw-r--r-- | openjdkjvmti/ti_thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/openjdkjvmti/ti_thread.h b/openjdkjvmti/ti_thread.h index ceebff67ec..09b4cabcfc 100644 --- a/openjdkjvmti/ti_thread.h +++ b/openjdkjvmti/ti_thread.h @@ -93,6 +93,9 @@ class ThreadUtil { const jthread* threads, jvmtiError* results); + static jvmtiError StopThread(jvmtiEnv* env, jthread thr, jobject exception); + static jvmtiError InterruptThread(jvmtiEnv* env, jthread thr); + // Returns true if we decoded the thread and it is alive, false otherwise with an appropriate // error placed into 'err'. A thread is alive if it has had it's 'start' function called and has // (or at least could have) executed managed code and has not yet returned past it's first managed |