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

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

XMLWordPrintable

        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.

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

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: