On Thu, 18 Dec 2025 08:26:44 GMT, SendaoYan <[email protected]> wrote:
> Hi all, > > This PR use `WhiteBox.getWhiteBox().fullGC()` instead of `eatMemory` to > grigger full GC. The OOME trigger by `eatMemory` may cause > vmTestbase/nsk/monitoring/stress/classload tests intermittent fails when run > those tests simultancely on some machines. The WB.fullGC() might be use for > same purpose. It also reduce test execution time. > > Change has been verified locally by running tests > vmTestbase/nsk/monitoring/stress/classload on linux-x64. > > Additional testing: > > - [x] All jtreg tests by fastdebug build This pull request has now been integrated. Changeset: ce5e0d8a Author: SendaoYan <[email protected]> URL: https://git.openjdk.org/jdk/commit/ce5e0d8a48296b51c9c2eff4867e2a9a70194091 Stats: 421 lines in 62 files changed: 206 ins; 97 del; 118 mod 8373945: Use WB.fullGC() in ClassUnloader.unloadClass to force GC for vmTestbase tests Reviewed-by: cjplummer, lmesnik ------------- PR: https://git.openjdk.org/jdk/pull/28891
