[jdk8u-dev] RFR: 8212155: Race condition when posting dynamic_code_generated event leads to JVM crash
Severin Gehwolf
sgehwolf at openjdk.org
Tue Sep 2 12:26:49 UTC 2025
On Thu, 14 Aug 2025 10:25:41 GMT, Kerem Kat <krk at openjdk.org> wrote:
> Backport of [JDK-8212155](https://bugs.openjdk.org/browse/JDK-8212155).
>
> The patch did not apply cleanly due to a merge conflict. The original code `JvmtiThreadState::state_for(JavaThread::current())` had already been refactored to `JavaThread::current()->jvmti_thread_state()` in this branch.
>
> I have also removed the `@requires vm.jvmti` tag from the test, as it is not supported by the jtreg version in JDK 11.
>
> For JDK 8, `DynamicCodeGeneratedTest.sh` was added as the runner, which compiles the library first.
>
> The `DynamicCodeGeneratedTest` was confirmed to sometimes crash without this patch and passes with it.
jdk8u-dev is currently [closed for pushes](https://mail.openjdk.org/pipermail/jdk8u-dev/2025-September/020424.html). I'll approve once JDK-8366574 is in.
In the meantime please merge latest master to avoid the windows build failure in CI.
-------------
PR Comment: https://git.openjdk.org/jdk8u-dev/pull/674#issuecomment-3245101421
More information about the jdk8u-dev
mailing list