On Tue, 28 Oct 2025 06:22:14 GMT, SendaoYan <[email protected]> wrote:

> Hi all,
> 
> This PR use `WhiteBox.getWhiteBox().fullGC()` instead of 
> 'ClassUnloader.eatMemory()' to provoking gc for several 
> test/hotspot/jtreg/vmTestbase/nsk/jvmti tests, It is the fast and robust way 
> to trigger Full GC without risks hitting OOME, and will make test run finish 
> more quicker on machine with huge physical memory.
> 
> Change has been verified locally, test-fix only, no risk.
> 
> 
> grep VmRSS /proc/`ps -ef | grep -w java | grep vmsqe.aod.AppId | awk '{print 
> $2}'`/status

This pull request has now been integrated.

Changeset: 54fe5021
Author:    SendaoYan <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/54fe50210efe9ae6fad225b815cfdeb16c868115
Stats:     299 lines in 27 files changed: 33 ins; 234 del; 32 mod

8370732: Use WhiteBox.getWhiteBox().fullGC() to provoking gc for nsk/jvmti tests

Reviewed-by: cjplummer, lmesnik, sspitsyn

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

PR: https://git.openjdk.org/jdk/pull/28011

Reply via email to