RFR: 8297742: Combine vmTestbase/nsk/monitoring/ThreadMXBean/resetPeakThreadCount tests

Leonid Mesnik lmesnik at openjdk.org
Tue Nov 29 01:15:33 UTC 2022


On Mon, 28 Nov 2022 23:28:00 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> The fix combines almost the same tests to 1 test to remove code duplication

test/hotspot/jtreg/vmTestbase/nsk/monitoring/ThreadMXBean/resetPeakThreadCount/reset001.java line 45:

> 43:  *
> 44:  * @comment Direct access to the metrics.
> 45:  * @run main/othervm nsk.monitoring.ThreadMXBean.resetPeakThreadCount.reset001

I think it would be better to have several @test id instead of multi @run for such cases. It allows for reporting the individual results for each run and executing them parallelly.

-------------

PR: https://git.openjdk.org/jdk/pull/11400


More information about the serviceability-dev mailing list