我注册了JVMTI Event
MethodEntry ,其回调函数是
tdMethodEntry
如果有很多 MethodEntry事件,我的问题是
这些事件将由同一个线程通过队列处理?或由多个线程处理?
答案 0 :(得分:1)
MethodEntry
callbacks, like many other JVMTI event callbacks, are executed synchronously on the application thread that caused this event. If the application runs multiple threads, MethodEntry
callbacks may run concurrently on these threads. Events are not queued.
See JVMTI spec Events section.