RFR(XS): 7129514: time warp warnings after 7117303

John Cuthbertson john.cuthbertson at oracle.com
Wed Jan 18 19:38:44 UTC 2012


Hi Everyone,

I forgot to include the webrev link: 
http://cr.openjdk.java.net/~johnc/7129514/webrev.0/

Thanks to Ramki for pointing this out.

JohnC

On 1/18/2012 10:08 AM, John Cuthbertson wrote:
> Hi Everyone,
>
> While making the changes for 711303, I missed a few calls to 
> os::javaTimeMillis() (specifically with updating the time since the 
> last GC). As a consequence we can still see the occasional time-warp 
> warning. The issue is that os::javaTimeMillis() returns values that 
> are not guaranteed to be monotonically non-decreasing and so they can 
> go backwards.  I've replaced these calls to an equivalent that uses 
> os::javaTimeNanos(), which will return values that are monotonically 
> non-decreasing if the underlying system time source supports such a mode.
>
> Many thanks to David Holmes for diagnosing the issue.
>
> Thanks,
>
> JohnC




More information about the hotspot-gc-dev mailing list