Improve AbstractRegistration.isClosed() performance 60/82560/6
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Jun 2019 21:23:03 +0000 (23:23 +0200)
committerRobert Varga <nite@hq.sk>
Tue, 1 Oct 2019 14:48:32 +0000 (14:48 +0000)
commitc447273aabe22014831823c408157e9d9bd2e807
tree305105c645c9534b15d1961ede23986adfa7e931
parent715edfff107a13216b6970b9405e42820df3fbaf
Improve AbstractRegistration.isClosed() performance

The check for the registration being closed does not need to be
ordered with other access, except close(). Using VarHandles, we
can express the check in terms for getAcquire().

Change-Id: Idf685e8adafbe102c4c65f735d872a1f4b801188
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
common/concepts/src/main/java/org/opendaylight/yangtools/concepts/AbstractRegistration.java