On Thu, 4 Dec 2025 09:30:49 GMT, Albert Mingkun Yang <[email protected]> wrote:
> The original intended fix is to increase initial-heap-size so avoid gc, > captured in [JDK-8373022](https://bugs.openjdk.org/browse/JDK-8373022). This > is an alternative, which makes the test more resilient to changes in > heaps/gcs. > > Running > `vmTestbase/nsk/monitoring/MemoryPoolMBean/isUsageThresholdExceeded/isexceeded002/TestDescription.java` > with `-XX:+UseParallelGC -Xcomp -XX:-TieredCompilation > -XX:InitialRAMPercentage=0` fails about 10% of the time. > > After applying the fix, `isexceeded002` passes 2,000 runs. This pull request has now been integrated. Changeset: 4d696d0d Author: Albert Mingkun Yang <[email protected]> URL: https://git.openjdk.org/jdk/commit/4d696d0d0ed523e3c99c68214586673913b1c7b5 Stats: 8 lines in 2 files changed: 1 ins; 6 del; 1 mod 8373086: Make isexceeded001.java more robust Reviewed-by: jsikstro, tschatzl ------------- PR: https://git.openjdk.org/jdk/pull/28655
