[infinispan-issues] [JBoss JIRA] (ISPN-4733) Investigate potential issues with System.nanoTime() overflow

William Burns (JIRA) issues at jboss.org
Mon Sep 22 12:40:02 EDT 2014


    [ https://issues.jboss.org/browse/ISPN-4733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13004892#comment-13004892 ] 

William Burns commented on ISPN-4733:
-------------------------------------

This was fixed in core already by https://github.com/infinispan/infinispan/blob/220e3cc066f18a153c003e112b3587f376199bf9/core/src/main/java/org/infinispan/util/DefaultTimeService.java.  However there is an issue with some test files.

> Investigate potential issues with System.nanoTime() overflow
> ------------------------------------------------------------
>
>                 Key: ISPN-4733
>                 URL: https://issues.jboss.org/browse/ISPN-4733
>             Project: Infinispan
>          Issue Type: Task
>          Components: Core, Test Suite - Core
>    Affects Versions: 7.0.0.Beta2
>            Reporter: Dan Berindei
>            Assignee: William Burns
>              Labels: hackathon
>             Fix For: 7.0.0.CR1
>
>
> {{System.nanoTime()}} can overflow, so it's not ok to compare two {{System.nanoTime()}} return values directly. Instead, we always have to work with the difference between return values.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the infinispan-issues mailing list