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

Leonid Mesnik lmesnik at openjdk.org
Fri Oct 31 23:37:14 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 pull request has now been integrated.

Changeset: 2fc4cbe4
Author:    Leonid Mesnik <lmesnik at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/2fc4cbe426c814c49c03c794c7a7fff2a23f22c4
Stats:     6 lines in 3 files changed: 0 ins; 3 del; 3 mod

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

Reviewed-by: sspitsyn

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

PR: https://git.openjdk.org/jdk/pull/27992


More information about the serviceability-dev mailing list