BUG-1783: fix thread safety issues 80/10980/2
authorRobert Varga <rovarga@cisco.com>
Wed, 10 Sep 2014 08:16:08 +0000 (10:16 +0200)
committerRobert Varga <rovarga@cisco.com>
Wed, 10 Sep 2014 15:04:28 +0000 (17:04 +0200)
commit56a767d69f25b0b0f624a63cc19fb62e7e24fbf1
tree01d7163223ff392060795d09242878417a216abe
parent3fc64033b35754c940f3e9c6937f058e0342787b
BUG-1783: fix thread safety issues

A CAS can fail by a racing thread, which may record a lower number, thus
causing the real peak to not be recorded. Also the filed updater has to
be final and the size should be an integer, not a long.

Change-Id: I2069f703a6bdf2bf2c10ff135d0542176a2177fd
Signed-off-by: Robert Varga <rovarga@cisco.com>
common/util/src/main/java/org/opendaylight/yangtools/util/concurrent/TrackingLinkedBlockingQueue.java