[jdk11u-dev] RFR: 8212155: Race condition when posting dynamic_code_generated event leads to JVM crash
Kerem Kat
krk at openjdk.org
Fri Jun 20 09:23:22 UTC 2025
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.
The `DynamicCodeGeneratedTest` was confirmed to fail without this patch and passes with it.
-------------
Commit messages:
- Backport 64ec8b3e5c8a8d44c92591710d73b833f13c1500
Changes: https://git.openjdk.org/jdk11u-dev/pull/3051/files
Webrev: https://webrevs.openjdk.org/?repo=jdk11u-dev&pr=3051&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8212155
Stats: 124 lines in 3 files changed: 117 ins; 0 del; 7 mod
Patch: https://git.openjdk.org/jdk11u-dev/pull/3051.diff
Fetch: git fetch https://git.openjdk.org/jdk11u-dev.git pull/3051/head:pull/3051
PR: https://git.openjdk.org/jdk11u-dev/pull/3051
More information about the jdk-updates-dev
mailing list