[jdk8u-dev] Integrated: 8212155: Race condition when posting dynamic_code_generated event leads to JVM crash

Kerem Kat krk at openjdk.org
Wed Sep 3 12:15:51 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.

This pull request has now been integrated.

Changeset: 942d6d06
Author:    Kerem Kat <krk at openjdk.org>
Committer: Aleksey Shipilev <shade at openjdk.org>
URL:       https://git.openjdk.org/jdk8u-dev/commit/942d6d06140b6bfc6fc1daff2f4883e84049b09a
Stats:     201 lines in 4 files changed: 194 ins; 0 del; 7 mod

8212155: Race condition when posting dynamic_code_generated event leads to JVM crash

Reviewed-by: phh, shade
Backport-of: 64ec8b3e5c8a8d44c92591710d73b833f13c1500

-------------

PR: https://git.openjdk.org/jdk8u-dev/pull/674


More information about the jdk8u-dev mailing list