RFR(S): 8231457 Asserts on AIX because os::elapsed_counter() is not monotonic

Zeller, Arno arno.zeller at sap.com
Thu Sep 26 13:12:29 UTC 2019


Hi Thomas,
thanks for your review!

Best regards,
Arno

From: Thomas Stüfe <thomas.stuefe at gmail.com>
Sent: Donnerstag, 26. September 2019 13:41
To: David Holmes <david.holmes at oracle.com>
Cc: Zeller, Arno <arno.zeller at sap.com>; Hotspot dev runtime <hotspot-runtime-dev at openjdk.java.net>
Subject: Re: RFR(S): 8231457 Asserts on AIX because os::elapsed_counter() is not monotonic

Looks good to me as well.

Cheers, Thomas

On Thu, Sep 26, 2019, 13:36 David Holmes <david.holmes at oracle.com<mailto:david.holmes at oracle.com>> wrote:
Hi Arno,

On 26/09/2019 8:37 pm, Zeller, Arno wrote:
> Hi,
>
> we have seen assertions on AIX 7.2 on Power9 that complain about negative durations. The issue seems to be caused by the implementation of o::elapsed_counter() on AIX that uses gettimeofday which is not monotonic. To solve the issue I prepared a small patch that let os::elapsed_counter() use javaTimeNanos() which should be monotonic. I had to adjust also os::elapsed_frequency() and os::elapsedTime() to be consistent.
>
> Bug: https://bugs.openjdk.java.net/browse/JDK-8231457
> Webrev: http://cr.openjdk.java.net/~azeller/webrevs/8231457_2/
>
> I will need a sponsor for this patch.

Changes looks good. I will sponsor this for you. Will wait for a second
reviewer.

Thanks,
David


> Best regards,
> Arno
>


More information about the hotspot-runtime-dev mailing list