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

Kerem Kat krk at openjdk.org
Fri Jun 27 10:53:46 UTC 2025


On Fri, 20 Jun 2025 09:18:59 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.
> 
> The `DynamicCodeGeneratedTest` was confirmed to fail without this patch and passes with it.

==============================
Test summary
==============================
   TEST                                              TOTAL  PASS  FAIL ERROR
   jtreg:test/hotspot/jtreg:vmTestbase_nsk_jvmti       640   640     0     0
   jtreg:test/hotspot/jtreg:hotspot_serviceability     178   178     0     0

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

PR Comment: https://git.openjdk.org/jdk11u-dev/pull/3051#issuecomment-3012579768


More information about the jdk-updates-dev mailing list