Use VarHandles in DataNodeContainerModificationStrategy 60/103160/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 8 Nov 2022 18:18:39 +0000 (19:18 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 8 Nov 2022 18:18:39 +0000 (19:18 +0100)
commit3f3f9e8277d4b463bd3404dad82bd6746b1d4691
tree21db058ec1219536ef1048a7c5d2e02031bb594a
parentd1249295e1d478949cf854a780b4ba8e8cd2c366
Use VarHandles in DataNodeContainerModificationStrategy

Using a VarHandle allows us to use compareAndExchange(), which
eliminates the need for a volatile read when we fail to update.

Change-Id: Ie7922c5f116801f0b442c30f3ca14d2360abc845
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
data/yang-data-tree-ri/src/main/java/org/opendaylight/yangtools/yang/data/tree/impl/DataNodeContainerModificationStrategy.java