On Mon, 19 Jan 2026 07:10:15 GMT, SendaoYan <[email protected]> wrote:

>> 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.

I think it could be removed.

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

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

Reply via email to