RFR: 8375485: Tests in vmTestbase/nsk are failing due to missing class unloading after 8373945 [v2]
Leonid Mesnik
lmesnik at openjdk.org
Mon Jan 19 18:56:18 UTC 2026
On Mon, 19 Jan 2026 07:10:15 GMT, SendaoYan <syan at openjdk.org> 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
More information about the hotspot-runtime-dev
mailing list