RFR : java/lang/ref/EarlyTimeout.java failed again
david.holmes at oracle.com
Tue Apr 15 06:48:01 UTC 2014
On 15/04/2014 4:10 PM, Ivan Gerasimov wrote:
> On 15.04.2014 6:23, Mandy Chung wrote:
>> On 4/14/2014 11:26 AM, Ivan Gerasimov wrote:
>>> Actually, zero tolerance should be sufficient now even for Windows
>>> Measuring the time with nanoTime() should make the inner and outer
>>> time intervals consistent.
>>> I've added the tolerance just to play safer.
>>> I can remove it.
>> That'd be even better!
> Alright, I removed the tolerance back.
> So now the only change is how the time interval is measured:
This is the right change to make.
I'm a little surprised we are seeing these timing problems though. That
said the resolution of timed blocking calls and the resolution of
currentTimeMillis() can be quite different on any platform, not just
windows. In general nanoTime should always be used to measure elapsed time.
> Sincerely yours,
More information about the core-libs-dev