RFR(S): 8196565: AIX: Clean up os::javaTimeNanos according to AIX/PASE specification

David Holmes david.holmes at oracle.com
Thu Feb 1 11:10:03 UTC 2018


Hi Christoph,

On 1/02/2018 7:11 PM, Langer, Christoph wrote:
> Hi,
> 
> please review a fix for the os::javaTimeNanos method on AIX.
> 
> It implements the information we got from the AIX documentation and from the IBM folks regarding the behavior of mread_real_time on Pase.
> 
> Bug: https://bugs.openjdk.java.net/browse/JDK-8196565
> Webrev: http://cr.openjdk.java.net/~clanger/webrevs/8196565.0/

I took a look as I was curious :) I recognized the Solaris code for 
ensuring monotonic time. :) It all seems to do as you describe.

One nit - instead of (1000 * 1000 * 1000) you can use:

const jlong NANOSECS_PER_SEC      = CONST64(1000000000);

from ./hotspot/share/utilities/globalDefinitions.hpp

Cheers,
David

> Thanks & Best regards
> Christoph
> 


More information about the hotspot-runtime-dev mailing list