RFR: 8369150: NMethodRelocationTest fails when JVMTI events not published before JVM exit [v5]
Chad Rakoczy
duke at openjdk.org
Mon Jan 5 21:11:00 UTC 2026
> [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.
Chad Rakoczy has updated the pull request incrementally with two additional commits since the last revision:
- Use jvmti_common functions
- Remove seperate process
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/28683/files
- new: https://git.openjdk.org/jdk/pull/28683/files/cd023c3a..337c94b8
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=28683&range=04
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=28683&range=03-04
Stats: 128 lines in 2 files changed: 52 ins; 46 del; 30 mod
Patch: https://git.openjdk.org/jdk/pull/28683.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28683/head:pull/28683
PR: https://git.openjdk.org/jdk/pull/28683
More information about the serviceability-dev
mailing list