由同一个线程处理的同类JVMTI EVENT?

时间:2016-11-09 03:52:37

标签: java jvm jvmti

我注册了JVMTI Event MethodEntry ,其回调函数是 tdMethodEntry如果有很多 MethodEntry事件,我的问题是

  

这些事件将由同一个线程通过队列处理?或由多个线程处理?

1 个答案:

答案 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.