Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8202564

java/lang/management/ThreadMXBean/ThreadCounts.java fails

    Details

      Backports

        Description

        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)

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mdoerr Martin Doerr
                  Reporter:
                  jwilhelm Jesper Wilhelmsson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: