Reduce volatile variable access 67/101067/1
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Apr 2022 08:06:34 +0000 (10:06 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 11 May 2022 11:51:54 +0000 (13:51 +0200)
commit1e29aec00a564d5e3b79d82f2c8c86c1143d763d
tree3642032cd366a26e678903885f8f6089c694d129
parentd4cf81199fce5c2f8a750756b95abe1d5424f0b7
Reduce volatile variable access

The checkState() and verify() calls are costing us a superfluous
access after we have already accessed the volatile field. Refactor
them to prevent that.

Change-Id: I07c552593a89fb8929985ac637c6fba576b4e659
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 18cb8f2e949db76fb72bfa08921ba6c73a707ec6)
(cherry picked from commit 221e59a1ffa68caff0ca09e124b20d084f4e8be9)
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/PingPongTransactionChain.java