Lines Matching refs:thread

193 inline std::vector<impl::EventHandlerFunc<kEvent>> EventHandler::CollectEvents(art::Thread* thread,  in CollectEvents()  argument
195 art::ReaderMutexLock mu(thread, envs_lock_); in CollectEvents()
198 if (ShouldDispatch<kEvent>(env, thread, args...)) { in CollectEvents()
209 inline void EventHandler::DispatchClassFileLoadHookEvent(art::Thread* thread, in DispatchClassFileLoadHookEvent() argument
219 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchClassFileLoadHookEvent()
227 CollectEvents<kEvent>(thread, in DispatchClassFileLoadHookEvent()
274 inline void EventHandler::DispatchEvent(art::Thread* thread, Args... args) const { in DispatchEvent() argument
275 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchEvent()
280 DCHECK(thread == nullptr || !thread->IsExceptionPending()); in DispatchEvent()
281 std::vector<impl::EventHandlerFunc<kEvent>> events = CollectEvents<kEvent>(thread, args...); in DispatchEvent()
288 inline void EventHandler::DispatchEvent(art::Thread* thread, JNIEnv* jnienv, Args... args) const { in DispatchEvent() argument
289 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchEvent()
290 std::vector<impl::EventHandlerFunc<kEvent>> events = CollectEvents<kEvent>(thread, in DispatchEvent()
300 ArtJvmTiEnv* env, art::Thread* thread, JNIEnv* jnienv, Args... args) const { in DispatchEventOnEnv() argument
302 if (ShouldDispatch<kEvent, JNIEnv*, Args...>(env, thread, jnienv, args...)) { in DispatchEventOnEnv()
303 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchEventOnEnv()
311 ArtJvmTiEnv* env, art::Thread* thread, Args... args) const { in DispatchEventOnEnv() argument
317 if (ShouldDispatch<kEvent, Args...>(env, thread, args...)) { in DispatchEventOnEnv()
318 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchEventOnEnv()
326 ArtJvmTiEnv* env, art::Thread* thread, jlong* obsolete_tag, jlong* new_tag) const {
329 if (ShouldDispatch<kEvent>(env, thread, obsolete_tag, new_tag)) {
330 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative);
362 art::Thread* thread,
370 return ShouldDispatchOnThread<ArtJvmtiEvent::kBreakpoint>(env, thread) &&
377 art::Thread* thread,
388 ShouldDispatchOnThread<ArtJvmtiEvent::kFramePop>(env, thread);
398 art::Thread* thread,
409 return ShouldDispatchOnThread<ArtJvmtiEvent::kFieldModification>(env, thread) &&
417 art::Thread* thread,
426 return ShouldDispatchOnThread<ArtJvmtiEvent::kFieldAccess>(env, thread) &&
449 explicit ScopedDisablePopFrame(art::Thread* thread) : thread_(thread) { in ScopedDisablePopFrame()
479 inline void EventHandler::DispatchClassLoadOrPrepareEvent(art::Thread* thread, in DispatchClassLoadOrPrepareEvent() argument
483 ScopedDisablePopFrame sdpf(thread); in DispatchClassLoadOrPrepareEvent()
484 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative); in DispatchClassLoadOrPrepareEvent()
485 std::vector<impl::EventHandlerFunc<kEvent>> events = CollectEvents<kEvent>(thread, in DispatchClassLoadOrPrepareEvent()
496 inline void EventHandler::DispatchEvent<ArtJvmtiEvent::kClassLoad>(art::Thread* thread,
500 DispatchClassLoadOrPrepareEvent<ArtJvmtiEvent::kClassLoad>(thread, jnienv, jni_thread, klass);
503 inline void EventHandler::DispatchEvent<ArtJvmtiEvent::kClassPrepare>(art::Thread* thread,
507 DispatchClassLoadOrPrepareEvent<ArtJvmtiEvent::kClassPrepare>(thread, jnienv, jni_thread, klass);
513 inline void EventHandler::DispatchEvent<ArtJvmtiEvent::kNativeMethodBind>(art::Thread* thread,
519 art::ScopedThreadStateChange stsc(thread, art::ThreadState::kNative);
521 CollectEvents<ArtJvmtiEvent::kNativeMethodBind>(thread,
548 art::Thread* thread,
559 thread,
573 art::Thread* thread,
584 thread,
598 art::Thread* thread,
609 thread,
622 inline bool EventHandler::ShouldDispatchOnThread(ArtJvmTiEnv* env, art::Thread* thread) const { in ShouldDispatchOnThread() argument
625 if (!dispatch && thread != nullptr && env->event_masks.unioned_thread_event_mask.Test(kEvent)) { in ShouldDispatchOnThread()
626 EventMask* mask = env->event_masks.GetEventMaskOrNull(thread); in ShouldDispatchOnThread()
634 art::Thread* thread, in ShouldDispatch() argument
640 return ShouldDispatchOnThread<kEvent>(env, thread); in ShouldDispatch()