Test: java/lang/management/ThreadMXBean/ThreadCounts.java
The test started failing in various test runs April 23, and has been failing in the nightlies since April 24. The test history shows 81 failures at the time of filing this bug.
----------System.out:(6/193)----------
Number of daemon threads added = 21
Number of threads added = 11
Daemon threads terminated.
Number of threads added = 9
Number of threads terminated = 11
Number of threads terminated = 9
----------System.err:(18/1336)----------
TEST FAILED: Minimal number of daemon thread count is 21ThreadMXBean.getDaemonThreadCount() returned 20
TEST FAILED: Minimal number of daemon thread count is 21ThreadMXBean.getDaemonThreadCount() returned 20
TEST FAILED: Minimal number of daemon thread count is 0ThreadMXBean.getDaemonThreadCount() returned -1
TEST FAILED: Minimal number of daemon thread count is 0ThreadMXBean.getDaemonThreadCount() returned -1
TEST FAILED: Minimal number of daemon thread count is 0ThreadMXBean.getDaemonThreadCount() returned -1
TEST FAILED: Minimal number of daemon thread count is 0ThreadMXBean.getDaemonThreadCount() returned -1
java.lang.RuntimeException: TEST FAILED.
at ThreadCounts.main(ThreadCounts.java:173)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:569)
at com.sun.javatest.regtest.agent.MainActionHelper$SameVMRunnable.run(MainActionHelper.java:229)
at java.base/java.lang.Thread.run(Thread.java:832)