Improve InMemoryDataTreeModification.isSealed() performance 61/82561/7
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 18 Jun 2019 21:32:22 +0000 (23:32 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 9 Oct 2019 06:06:11 +0000 (08:06 +0200)
commited99e16e511791aee9eb714070d419d3a23cf712
treefee17e04b7dc3469a846fb25218788f81cde0340
parent6a0272f8638019c10582fe042287c92cea873737
Improve InMemoryDataTreeModification.isSealed() performance

The check for the modification being sealed does not need to really
establish a barrier between individual accesses. Use VarHandles to
express that the check needs to be ordered only before seal().

JIRA: YANGTOOLS-1025
Change-Id: I86433a95c3321e3bcabec9bba0f5a772556e1af4
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-data-impl/src/main/java/org/opendaylight/yangtools/yang/data/impl/schema/tree/InMemoryDataTreeModification.java