RFR 8032377: test/java/lang/management/ThreadMXBean/ThreadBlockedCount.java still fails intermittently

Alan Bateman Alan.Bateman at oracle.com
Tue Jan 21 04:09:11 PST 2014


I've seen this fail once since the original changes and also agree with 
the proposed change.

-Alan.


On 21/01/2014 11:57, David Holmes wrote:
> Ok.
>
> Thanks,
> David
>
> On 21/01/2014 9:31 PM, Jaroslav Bachorik wrote:
>> 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