RFR: 8373917: test/hotspot/jtreg/vmTestbase/nsk/monitoring: -iterations setting misused in tests
Kevin Walls
kevinw at openjdk.org
Wed Dec 31 15:53:12 UTC 2025
On Wed, 17 Dec 2025 18:27:07 GMT, Kevin Walls <kevinw at openjdk.org> wrote:
> Some tests in test/hotspot/jtreg/vmTestbase/nsk tests are misusing the -iterations command-line option: it is parsed only as "-iterations x" rather than "-iterations=x"
>
> Fixing the RunParams parsing to recognise this saves updating multiple tests.
>
> Other options are "option=value" so accepting -iterations=number is what we might expect (and is what tests are currently written to use).
>
> The change makes logs look correct. No more "Iterations: 0".
>
> There are tests that currently log "Iterations: 0" but still do some work, so this is partly cosmetic, but also if you were thinking of making a test do some set limited number of iterations, you can now follow the example of other tests and have it work.
Thanks Leonid!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/28876#issuecomment-3702420444
More information about the serviceability-dev
mailing list