RFR: 8370732: vmTestbase/nsk/jvmti/AttachOnDemand/attach020/TestDescription.java intermittent fails [v2]

SendaoYan syan at openjdk.org
Wed Oct 29 03:50:28 UTC 2025


On Wed, 29 Oct 2025 03:04:30 GMT, Leonid Mesnik <lmesnik at openjdk.org> wrote:

> I think it would be better to use WhiteBox.fullGC()
> 
> It is the fast and robust way to trigger Full GC without risks hitting OOME. The test has been developed before WhiteBox was added.

The 'ClassUnloader.eatMemory()' has been replaced as 'WhiteBox.getWhiteBox().fullGC()' for the 9 releated tests. Change has been verified locally.

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

PR Comment: https://git.openjdk.org/jdk/pull/28011#issuecomment-3459505044


More information about the hotspot-gc-dev mailing list