RFR: 8369150: NMethodRelocationTest fails when JVMTI events not published before JVM exit [v6]

Serguei Spitsyn sspitsyn at openjdk.org
Wed Jan 7 03:49:37 UTC 2026


On Wed, 7 Jan 2026 02:07:39 GMT, Chad Rakoczy <duke at openjdk.org> wrote:

>> test/hotspot/jtreg/serviceability/jvmti/NMethodRelocation/NMethodRelocationTest.java line 108:
>> 
>>> 106:         while (!shouldExit()) {
>>> 107:             WHITE_BOX.fullGC();
>>> 108:         }
>> 
>> Q: Should we add a short sleep between calls to `WHITE_BOX.fullGC()`?
>
> I think `WHITE_BOX.fullGC()` blocks until the GC completes so I'm not sure a sleep is necessary.

Thanks. I'm okay with as it is.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/28683#discussion_r2666969290


More information about the serviceability-dev mailing list