RFR(S): 8184271: Time related C1 intrinsics produce inconsistent results when floating around

Vladimir Kozlov vladimir.kozlov at oracle.com
Thu Jul 13 15:40:09 UTC 2017


Vladimir K

On 7/13/17 7:24 AM, Tobias Hartmann wrote:
> Hi,
> please review the following patch:
> https://bugs.openjdk.java.net/browse/JDK-8184271
> http://cr.openjdk.java.net/~thartmann/8184271/webrev.00/
> The problem is that the C1 intrinsics for System.nanoTime(), System.currentTimeMillis() and JVM.counterTime() are not pinned and may produce inconsistent results when floating around (see tests). The solution is to not unpin them.
> Thanks to Vladimir I. for the analysis!
> Tested with JPRT and RBT (running).
> Thanks,
> Tobias

More information about the hotspot-compiler-dev mailing list