Do not synchronize around ReactorStmtCtx.schemaPath 47/95347/1
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 1 Feb 2021 20:06:02 +0000 (21:06 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 24 Feb 2021 11:46:04 +0000 (12:46 +0100)
commit3d839521f5f460bce42a82998770494274310b22
tree3bba1f28d27c5dac1e5ed25720b3108f9c6d4962
parentd952b901370a3eac56de3c3dbd4e67287f6de72d
Do not synchronize around ReactorStmtCtx.schemaPath

The reactor is inherently single-threaded, hence there is no point
in guarding this single field. Remove synchronization and add a few
markes for future improvement.

JIRA: YANGTOOLS-1218
Change-Id: Ic5017bb589ae5086bf8310995d7c03c80e12678a
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 0735f709c996762a2ac65338459c465bffc4dbcf)
(cherry picked from commit 7f41bd0651d810544aa1359ce1d762a8185df016)
yang/yang-parser-reactor/src/main/java/org/opendaylight/yangtools/yang/parser/stmt/reactor/StatementContextBase.java