Integrated: 8279005: sun/tools/jstat tests do not check for test case exit codes after JDK-8245129
Paul Hohensee
phh at openjdk.org
Wed Jun 25 15:55:34 UTC 2025
On Tue, 24 Jun 2025 13:48:02 GMT, Paul Hohensee <phh at openjdk.org> wrote:
> Please review a jstat test-only fix.
>
> 1. Ensure that jstat tests that run more than one sub-test per test file check the result of each sub-test before continuing.
> 2. Allow '-' as a valid jstat -gcutil heap space percent occupancy field value, see lineCounts[1-4].awk. Occupancy is computed as ((capacity - used) / capacity), see src/jdk.jcmd/share/classes/sun/tools/jstat/resources/jstat_options, search for "gcutil". G1, ZGC, and Shenandoah may return zero capacity for any or all of survivor spaces, eden, old gen, metaspace, and compressed class space, leading to an occupancy result represented by '-'.
>
> Modified tests pass.
This pull request has now been integrated.
Changeset: c90c31b0
Author: Paul Hohensee <phh at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/c90c31b07ef64eca65be5018a7757b960552f88a
Stats: 76 lines in 16 files changed: 60 ins; 0 del; 16 mod
8279005: sun/tools/jstat tests do not check for test case exit codes after JDK-8245129
Reviewed-by: cjplummer, rkennke
-------------
PR: https://git.openjdk.org/jdk/pull/25951
More information about the serviceability-dev
mailing list