-
Bug
-
Resolution: Fixed
-
P4
-
8u202, 11.0.2, 13
-
b17
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8276049 | 11.0.15-oracle | Kevin Walls | P4 | Resolved | Fixed | b01 |
JDK-8257402 | 11.0.10 | Serguei Spitsyn | P4 | Resolved | Fixed | b05 |
Consider two JVMTI agents subscribed to DynamicCodeGenerated and CompiledMethodLoad events.
If one agents calls GenerateEvents(JVMTI_EVENT_COMPILED_METHOD_LOAD), the events will be received by both agents.
However, if one agent calls GenerateEvents(JVMTI_EVENT_DYNAMIC_CODE_GENERATED), those events will be expectedly received only by this agent, and not by the second one.
Seems like GenerateEvents behavior is inconsistent. CompiledMethodLoad events generated by the first agent should not be received by the second (unrelated) agent.
To reproduce the bug compile the attached agents and run
jcmd <pid> JVMTI.agent_load dupevent_1.dll
jcmd <pid> JVMTI.agent_load dupevent_2.dll
If one agents calls GenerateEvents(JVMTI_EVENT_COMPILED_METHOD_LOAD), the events will be received by both agents.
However, if one agent calls GenerateEvents(JVMTI_EVENT_DYNAMIC_CODE_GENERATED), those events will be expectedly received only by this agent, and not by the second one.
Seems like GenerateEvents behavior is inconsistent. CompiledMethodLoad events generated by the first agent should not be received by the second (unrelated) agent.
To reproduce the bug compile the attached agents and run
jcmd <pid> JVMTI.agent_load dupevent_1.dll
jcmd <pid> JVMTI.agent_load dupevent_2.dll
- backported by
-
JDK-8257402 JVMTI GenerateEvents() sends CompiledMethodLoad events to wrong jvmtiEnv
- Resolved
-
JDK-8276049 JVMTI GenerateEvents() sends CompiledMethodLoad events to wrong jvmtiEnv
- Resolved
- duplicates
-
JDK-8226213 Unexpected behavior when JVMTI GenerateEvents is called
- Closed