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

Race condition in java/lang/management/ThreadMXBean/AllThreadIds.java

    XMLWordPrintable

    Details

      Backports

        Description

        Test
        java/lang/management/ThreadMXBean/AllThreadIds.java

        uses Barrier to signal that thread has exited:

            228 barrier.signal();
            229 }

        However, there is small window between call to .signal() and actual thread completion when main thread may observe wrong number of finished threads.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jbachorik Jaroslav Bachorík
                Reporter:
                nhaustov Nicolay Haustov (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: