GitHub user clebertsuconic opened a pull request:
https://github.com/apache/activemq-artemis/pull/1517
Simplification on #1515
This superceedes #1515
If you merge this, #1515 would be closed.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/clebertsuconic/activemq-artemis ARTEMIS-1393
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/activemq-artemis/pull/1517.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1517
----
commit ec104b2ff365c81b3c29558cf2e3af3c4362afbb
Author: Francesco Nigro <[email protected]>
Date: 2017-09-06T16:08:42Z
ARTEMIS-1393 CriticalAnalyzer timeout uses System::currentTimeMillis
The timeout logic is changed to use System::nanoTime, less sensible to OS
clock changes.
The volatile set on CriticalMeasure are changed with cheaper lazySet.
This closes #1515
commit 9dd8e2206c760647a3a5d79e47e2b88fe3a8b3b5
Author: Clebert Suconic <[email protected]>
Date: 2017-09-07T01:42:42Z
ARTEMIS-1393 Simplification of the Critical analyzer
- Using nanoseconds directly, passing unit as an argument
- Simplifying logic on components
----
---