Lines Matching refs:ArtJvmtiEvent
38 static inline ArtJvmtiEvent GetArtJvmtiEvent(ArtJvmTiEnv* env, jvmtiEvent e) { in GetArtJvmtiEvent()
41 return ArtJvmtiEvent::kClassFileLoadHookRetransformable; in GetArtJvmtiEvent()
43 return ArtJvmtiEvent::kClassFileLoadHookNonRetransformable; in GetArtJvmtiEvent()
46 return static_cast<ArtJvmtiEvent>(e); in GetArtJvmtiEvent()
94 fn(VMInit, ArtJvmtiEvent::kVmInit) \
95 fn(VMDeath, ArtJvmtiEvent::kVmDeath) \
96 fn(ThreadStart, ArtJvmtiEvent::kThreadStart) \
97 fn(ThreadEnd, ArtJvmtiEvent::kThreadEnd) \
98 fn(ClassFileLoadHook, ArtJvmtiEvent::kClassFileLoadHookRetransformable) \
99 fn(ClassFileLoadHook, ArtJvmtiEvent::kClassFileLoadHookNonRetransformable) \
100 fn(ClassLoad, ArtJvmtiEvent::kClassLoad) \
101 fn(ClassPrepare, ArtJvmtiEvent::kClassPrepare) \
102 fn(VMStart, ArtJvmtiEvent::kVmStart) \
103 fn(Exception, ArtJvmtiEvent::kException) \
104 fn(ExceptionCatch, ArtJvmtiEvent::kExceptionCatch) \
105 fn(SingleStep, ArtJvmtiEvent::kSingleStep) \
106 fn(FramePop, ArtJvmtiEvent::kFramePop) \
107 fn(Breakpoint, ArtJvmtiEvent::kBreakpoint) \
108 fn(FieldAccess, ArtJvmtiEvent::kFieldAccess) \
109 fn(FieldModification, ArtJvmtiEvent::kFieldModification) \
110 fn(MethodEntry, ArtJvmtiEvent::kMethodEntry) \
111 fn(MethodExit, ArtJvmtiEvent::kMethodExit) \
112 fn(NativeMethodBind, ArtJvmtiEvent::kNativeMethodBind) \
113 fn(CompiledMethodLoad, ArtJvmtiEvent::kCompiledMethodLoad) \
114 fn(CompiledMethodUnload, ArtJvmtiEvent::kCompiledMethodUnload) \
115 fn(DynamicCodeGenerated, ArtJvmtiEvent::kDynamicCodeGenerated) \
116 fn(DataDumpRequest, ArtJvmtiEvent::kDataDumpRequest) \
117 fn(MonitorWait, ArtJvmtiEvent::kMonitorWait) \
118 fn(MonitorWaited, ArtJvmtiEvent::kMonitorWaited) \
119 fn(MonitorContendedEnter, ArtJvmtiEvent::kMonitorContendedEnter) \
120 fn(MonitorContendedEntered, ArtJvmtiEvent::kMonitorContendedEntered) \
121 fn(ResourceExhausted, ArtJvmtiEvent::kResourceExhausted) \
122 fn(GarbageCollectionStart, ArtJvmtiEvent::kGarbageCollectionStart) \
123 fn(GarbageCollectionFinish, ArtJvmtiEvent::kGarbageCollectionFinish) \
124 fn(ObjectFree, ArtJvmtiEvent::kObjectFree) \
125 fn(VMObjectAlloc, ArtJvmtiEvent::kVmObjectAlloc) \
126 fn(DdmPublishChunk, ArtJvmtiEvent::kDdmPublishChunk) \
127 fn(ObsoleteObjectCreated, ArtJvmtiEvent::kObsoleteObjectCreated) \
128 fn(StructuralDexFileLoadHook, ArtJvmtiEvent::kStructuralDexFileLoadHook)
130 template <ArtJvmtiEvent kEvent>
192 template <ArtJvmtiEvent kEvent, typename ...Args>
208 template <ArtJvmtiEvent kEvent>
220 static_assert(kEvent == ArtJvmtiEvent::kClassFileLoadHookRetransformable || in DispatchClassFileLoadHookEvent()
221 kEvent == ArtJvmtiEvent::kClassFileLoadHookNonRetransformable || in DispatchClassFileLoadHookEvent()
222 kEvent == ArtJvmtiEvent::kStructuralDexFileLoadHook, "Unsupported event"); in DispatchClassFileLoadHookEvent()
273 template <ArtJvmtiEvent kEvent, typename ...Args>
287 template <ArtJvmtiEvent kEvent, typename ...Args>
298 template <ArtJvmtiEvent kEvent, typename ...Args>
309 template <ArtJvmtiEvent kEvent, typename ...Args>
325 inline void EventHandler::DispatchEventOnEnv<ArtJvmtiEvent::kObsoleteObjectCreated>(
327 static constexpr ArtJvmtiEvent kEvent = ArtJvmtiEvent::kObsoleteObjectCreated;
342 template <ArtJvmtiEvent kEvent, typename ...Args>
347 template <ArtJvmtiEvent kEvent, typename ...Args>
360 inline bool EventHandler::ShouldDispatch<ArtJvmtiEvent::kBreakpoint>(
369 return ShouldDispatchOnThread<ArtJvmtiEvent::kBreakpoint>(env, thread) &&
374 inline bool EventHandler::ShouldDispatch<ArtJvmtiEvent::kFramePop>(
387 ShouldDispatchOnThread<ArtJvmtiEvent::kFramePop>(env, thread);
395 inline bool EventHandler::ShouldDispatch<ArtJvmtiEvent::kFieldModification>(
408 return ShouldDispatchOnThread<ArtJvmtiEvent::kFieldModification>(env, thread) &&
414 inline bool EventHandler::ShouldDispatch<ArtJvmtiEvent::kFieldAccess>(
425 return ShouldDispatchOnThread<ArtJvmtiEvent::kFieldAccess>(env, thread) &&
436 inline void EventHandler::ExecuteCallback<ArtJvmtiEvent::kFramePop>(
437 impl::EventHandlerFunc<ArtJvmtiEvent::kFramePop> event,
443 ExecuteCallback<ArtJvmtiEvent::kFramePop>(event, jnienv, jni_thread, jmethod, is_exception);
477 template <ArtJvmtiEvent kEvent>
495 inline void EventHandler::DispatchEvent<ArtJvmtiEvent::kClassLoad>(art::Thread* thread,
499 DispatchClassLoadOrPrepareEvent<ArtJvmtiEvent::kClassLoad>(thread, jnienv, jni_thread, klass);
502 inline void EventHandler::DispatchEvent<ArtJvmtiEvent::kClassPrepare>(art::Thread* thread,
506 DispatchClassLoadOrPrepareEvent<ArtJvmtiEvent::kClassPrepare>(thread, jnienv, jni_thread, klass);
512 inline void EventHandler::DispatchEvent<ArtJvmtiEvent::kNativeMethodBind>(art::Thread* thread,
519 std::vector<impl::EventHandlerFunc<ArtJvmtiEvent::kNativeMethodBind>> events =
520 CollectEvents<ArtJvmtiEvent::kNativeMethodBind>(thread,
529 ExecuteCallback<ArtJvmtiEvent::kNativeMethodBind>(event,
546 inline void EventHandler::DispatchEvent<ArtJvmtiEvent::kClassFileLoadHookRetransformable>(
557 return DispatchClassFileLoadHookEvent<ArtJvmtiEvent::kClassFileLoadHookRetransformable>(
571 inline void EventHandler::DispatchEvent<ArtJvmtiEvent::kClassFileLoadHookNonRetransformable>(
582 return DispatchClassFileLoadHookEvent<ArtJvmtiEvent::kClassFileLoadHookNonRetransformable>(
596 inline void EventHandler::DispatchEvent<ArtJvmtiEvent::kStructuralDexFileLoadHook>(
607 return DispatchClassFileLoadHookEvent<ArtJvmtiEvent::kStructuralDexFileLoadHook>(
620 template <ArtJvmtiEvent kEvent>
631 template <ArtJvmtiEvent kEvent, typename ...Args>
642 inline void EventHandler::RecalculateGlobalEventMask(ArtJvmtiEvent event) { in RecalculateGlobalEventMask()
647 inline void EventHandler::RecalculateGlobalEventMaskLocked(ArtJvmtiEvent event) { in RecalculateGlobalEventMaskLocked()
665 ArtJvmtiEvent event = added ? ArtJvmtiEvent::kClassFileLoadHookNonRetransformable in NeedsEventUpdate()
666 : ArtJvmtiEvent::kClassFileLoadHookRetransformable; in NeedsEventUpdate()
682 RecalculateGlobalEventMask(ArtJvmtiEvent::kClassFileLoadHookRetransformable); in HandleChangedCapabilities()
683 RecalculateGlobalEventMask(ArtJvmtiEvent::kClassFileLoadHookNonRetransformable); in HandleChangedCapabilities()