[PATCH] review request: 7148829 sun/net/InetAddress/nameservice/simple/CacheTest.java failing

Eric Wang yiming.wang at oracle.com
Tue Jul 24 03:16:09 UTC 2012


Hi Chris,

Please help to review the fix for bug 7148829 
<http://monaco.us.oracle.com/detail.jsf?cr=7148829> 
sun/net/InetAddress/nameservice/simple/CacheTest.java failing
http://dl.dropbox.com/u/90659131/fixes/7148829/webrev/index.html

The root cause is on certain Vitrual Machines the wall clock time 
(System.currentTimeMillis) is not advancing by the exected sleep() time."

As Thread.sleep() is subject to the precision and accuracy of system 
timers and schedulers, the fix is to hang the tests for specified time 
until CacheEntry timeout.

BTW, The fix has been verified on the host sc11136014 which bug occurred.

Thanks,
Eric






More information about the core-libs-dev mailing list