Integrated: 8262001: java/lang/management/ThreadMXBean/ResetPeakThreadCount.java failed with "RuntimeException: Current Peak = 14 Expected to be == previous peak = 7 + 8"
Alex Menkov
amenkov at openjdk.java.net
Thu Mar 18 20:14:39 UTC 2021
On Tue, 9 Mar 2021 01:31:33 GMT, Alex Menkov <amenkov at openjdk.org> wrote:
> The fix updates ResetPeakThreadCount.java test - increases number of threads, but relaxes conditions so start/termination of system threads don't cause failures.
> Additional changes:
> - store threads in a list instead of array (we need only to start/terminate some number of threads, so linked list works better);
> - flags for thread termination are moved to thread class;
> - store values from ThreadMXBean.getPeakThreadCount() and getThreadCount() in int instead of long (the methods return int values)
This pull request has now been integrated.
Changeset: c82a673c
Author: Alex Menkov <amenkov at openjdk.org>
URL: https://git.openjdk.java.net/jdk/commit/c82a673c
Stats: 139 lines in 1 file changed: 20 ins; 61 del; 58 mod
8262001: java/lang/management/ThreadMXBean/ResetPeakThreadCount.java failed with "RuntimeException: Current Peak = 14 Expected to be == previous peak = 7 + 8"
Reviewed-by: dfuchs, sspitsyn
-------------
PR: https://git.openjdk.java.net/jdk/pull/2885
More information about the serviceability-dev
mailing list