RFR: 8212155: Race condition when posting dynamic_code_generated event leads to JVM crash
Serguei Spitsyn
sspitsyn at openjdk.java.net
Thu Jun 3 16:53:38 UTC 2021
On Thu, 3 Jun 2021 06:15:28 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:
> Fixed a race condition between posting and enabling DynamicCodeGenerated event.
Hi Leonid,
The fix looks good to me.
Thanks,
Serguei
src/hotspot/share/prims/jvmtiExport.cpp line 2293:
> 2291: // jvmti thread state.
> 2292: // The collector and/or state might be NULL if JvmtiDynamicCodeEventCollector has been initialized
> 2293: // while JVMTI_EVENT_DYNAMIC_CODE_GENERATED was disabled
Could you, reballance this comment a little bit and add a dot at the end?
-------------
Marked as reviewed by sspitsyn (Reviewer).
PR: https://git.openjdk.java.net/jdk/pull/4331
More information about the serviceability-dev
mailing list