Integrated: 8369150: NMethodRelocationTest fails when JVMTI events not published before JVM exit
Chad Rakoczy
duke at openjdk.org
Thu Jan 8 01:16:46 UTC 2026
On Fri, 5 Dec 2025 22:23:46 GMT, Chad Rakoczy <duke at openjdk.org> wrote:
> [JDK-8369150](https://bugs.openjdk.org/browse/JDK-8369150)
>
> The test checks for JVMTI `COMPILED_METHOD_LOAD` and `COMPILED_METHOD_UNLOAD` events to be published for a relocated nmethod. It would originally intermittently fail if the JVM exited before it had time to publish the events so now it loops and forces GCs to encourage event publishing. The test fails if the events are received in the incorrect order (such as an unload before a load) or if the correct events are not received and the test times out.
This pull request has now been integrated.
Changeset: 0a1fa219
Author: Chad Rakoczy <chadrako at amazon.com>
Committer: Leonid Mesnik <lmesnik at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/0a1fa219214b985e4c7d9e612bd5cda1b0f25577
Stats: 220 lines in 4 files changed: 88 ins; 99 del; 33 mod
8369150: NMethodRelocationTest fails when JVMTI events not published before JVM exit
Reviewed-by: lmesnik, sspitsyn
-------------
PR: https://git.openjdk.org/jdk/pull/28683
More information about the serviceability-dev
mailing list