RFR: 8370732: Use WhiteBox.getWhiteBox().fullGC() to provoking gc for nsk/jvmti tests [v9]
SendaoYan
syan at openjdk.org
Sat Nov 1 02:08:19 UTC 2025
On Fri, 31 Oct 2025 03:04:48 GMT, SendaoYan <syan at openjdk.org> 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
>
> SendaoYan has updated the pull request incrementally with one additional commit since the last revision:
>
> Add log.display("Provoking GC");
Thanks for the suggestions and reviews @https://github.com/lmesnik @https://github.com/plummercj @https://github.com/sspitsyn
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28011#issuecomment-3475438561
More information about the serviceability-dev
mailing list