RFR: 8370663: Incorrect synchronization in nsk/jvmti/RedefineClasses when expected events are not received

Serguei Spitsyn sspitsyn at openjdk.org
Tue Oct 28 00:39:09 UTC 2025


On Sun, 26 Oct 2025 21:33:08 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> These tests nsk/jvmti/RedefineClasses
> redefclass028.cpp
> redefclass029.cpp
> redefclass030.cpp
> try to provoke compilation of certain methds and exit if CompileMethodLoad event are not received
> with `exit(95 + PASS)`
> 
> Before exit they also try to resume java using
> `nsk_jvmti_resumeSync();`
> The java is not suspended so this resume is failing. Currently, the failure is silently ignored now but going to fail after
> https://bugs.openjdk.org/browse/JDK-8352654
> is fixed. This situation might happen with -Xcomp or other similar flags the might change compilation order.  The complete fix would be to understand if we should run test in all modes and have strict check or throw SkippedException. But it requires much more effort.

This looks okay to me. Thank you for catching it!

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

Marked as reviewed by sspitsyn (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/27992#pullrequestreview-3386070658


More information about the serviceability-dev mailing list