Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
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.
|