Reduce volatile variable access 59/100859/2
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Apr 2022 08:06:34 +0000 (10:06 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Thu, 28 Apr 2022 08:43:49 +0000 (10:43 +0200)
commit18cb8f2e949db76fb72bfa08921ba6c73a707ec6
tree0283b1efb1f7a3263f10993f92019eebea14039e
parent069b1e6e991e6d6ebe99621d201984a01c36bab0
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>
dom/mdsal-dom-spi/src/main/java/org/opendaylight/mdsal/dom/spi/PingPongTransactionChain.java