summaryrefslogtreecommitdiff
path: root/runtime/openjdkjvmti/ti_thread.h
diff options
context:
space:
mode:
author Alex Light <allight@google.com> 2017-07-12 08:46:44 -0700
committer Alex Light <allight@google.com> 2017-07-14 14:52:23 -0700
commit092a4046ff7bd3d7e24bc77cecf3d1bb0aa52107 (patch)
tree966086d6f9b69f1a677110f2d3cd3b9f0491bc3d /runtime/openjdkjvmti/ti_thread.h
parent5e7eb2faccf8f4a28e9fcda26053a5b388f2190a (diff)
Ensure jvmti agents don't share ThreadLocalStorage
Bug: 63665647 Test: ./test.py --host -j40 Change-Id: Iea33cca5b708f60390b8c79462ca991363ad33a2
Diffstat (limited to 'runtime/openjdkjvmti/ti_thread.h')
-rw-r--r--runtime/openjdkjvmti/ti_thread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/openjdkjvmti/ti_thread.h b/runtime/openjdkjvmti/ti_thread.h
index 57967eb219..d07dc0682b 100644
--- a/runtime/openjdkjvmti/ti_thread.h
+++ b/runtime/openjdkjvmti/ti_thread.h
@@ -54,6 +54,9 @@ class ThreadUtil {
// To be called when it is safe to cache data.
static void CacheData();
+ // Handle a jvmtiEnv going away.
+ static void RemoveEnvironment(jvmtiEnv* env);
+
static jvmtiError GetAllThreads(jvmtiEnv* env, jint* threads_count_ptr, jthread** threads_ptr);
static jvmtiError GetCurrentThread(jvmtiEnv* env, jthread* thread_ptr);