diff options
Diffstat (limited to 'openjdkjvmti/ti_thread.h')
-rw-r--r-- | openjdkjvmti/ti_thread.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/openjdkjvmti/ti_thread.h b/openjdkjvmti/ti_thread.h index 03c49d7788..a19974aa16 100644 --- a/openjdkjvmti/ti_thread.h +++ b/openjdkjvmti/ti_thread.h @@ -53,9 +53,14 @@ class ThreadUtil { static void Register(EventHandler* event_handler); static void Unregister(); - // To be called when it is safe to cache data. + // To be called when it is safe to cache data. This means that we have at least entered the + // RuntimePhase::kInit but we might or might not have already called VMInit event. static void CacheData(); + // Called just after we have sent the VMInit callback so that ThreadUtil can do final setup. This + // ensures that there are no timing issues between the two callbacks. + static void VMInitEventSent() REQUIRES_SHARED(art::Locks::mutator_lock_); + // Handle a jvmtiEnv going away. static void RemoveEnvironment(jvmtiEnv* env); |