RFR: 8375485: Tests in vmTestbase/nsk are failing due to missing class unloading after 8373945 [v2]

SendaoYan syan at openjdk.org
Mon Jan 19 07:14:06 UTC 2026


On Sat, 17 Jan 2026 18:15:50 GMT, Chris Plummer <cjplummer at openjdk.org> wrote:

>> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   1. Add small delay after check thrd.isAlive; 2. Add small delay between classloader reclaimed retries.
>
> test/hotspot/jtreg/vmTestbase/nsk/share/ClassUnloader.java line 262:
> 
>> 260:         if (isClassLoaderReclaimed()) {
>> 261:             System.out.println("ClassUnloader: class loader has been reclaimed.");
>> 262:             Runtime.getRuntime().gc();
> 
> It's not clear to me why this gc() is even needed after the WhiteBox gc() calls. What does it do that we haven't already accomplished with WhiteBox gc()?

This gc() seems meaningless but is harmless. Should we remove this gc() call.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29285#discussion_r2703487032


More information about the hotspot-runtime-dev mailing list