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

ThreadGroup.enumerate() may return wrong value

    XMLWordPrintable

Details

    • b13
    • generic
    • generic
    • Verified

    Description

      A DESCRIPTION OF THE PROBLEM :
      ThreadGroup.enumerate() sometimes returns a small value (eg. 1) when in fact there are many threads in the system. The problem is caused because the method

      private int enumerate(Thread list[], int n, boolean recurse)

      Sometimes returns 0 , when it should return n

      See https://hg.openjdk.java.net/jdk/jdk11/file/76072a077ee1/src/java.base/share/classes/java/lang/ThreadGroup.java#l428

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      No steps. I think the description is clear


      FREQUENCY : occasionally


      Attachments

        Issue Links

          Activity

            People

              dfuchs Daniel Fuchs
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: