RFR 8032377: test/java/lang/management/ThreadMXBean/ThreadBlockedCount.java still fails intermittently
Jaroslav Bachorik
jaroslav.bachorik at oracle.com
Tue Jan 21 03:31:27 PST 2014
Please, review the following test fix.
Issue : https://bugs.openjdk.java.net/browse/JDK-8032377
Webrev: http://cr.openjdk.java.net/~jbachorik/8032377/webrev.00
test/java/lang/management/ThreadMXBean/ThreadBlockedCount.java still
fails intermittently due to locking happening at the class loading level
which is not 100% predictable. After many tries to force predictable
behaviour it seems that the only way to fix this is to relax the test
condition - so the test requires that the number of times the thread
went blocked is equal or bigger than the anticipated number (the number
of times the test forces the thread to block).
Thanks,
-JB-
More information about the serviceability-dev
mailing list