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

Missing synchronization when reading counters for live threads and peak thread count

    Details

    • Subcomponent:
      svc
    • Resolved In Build:
      b18

      Backports

        Description

        While analysing the reasons for the intermittent failures of java/lang/management/ThreadMXBean/ResetPeakThreadCount.java test it turned out that there are, indeed, places where the counters for live threads and peak thread count are being read without any synchronization in place - at the same time all the writes are synchronized by Threads_lock.

        See the discussion thread (http://mail.openjdk.java.net/pipermail/serviceability-dev/2013-July/010709.html) for more details.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dlong Dean Long
                  Reporter:
                  jbachorik Jaroslav BachorĂ­k
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  15 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: