Comment the locking mechanisms in ContextInfoManager
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 2 Jun 2016 09:26:54 +0000 (05:26 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 2 Jun 2016 13:21:34 +0000 (15:21 +0200)
commit2288582aa86d56f6762d80930cc1ddaa02cfff1f
tree4cbb5ec70cc7884dfc03b11e7b91f12d76b5b6fc
parent98296cd1cc5e479d5b6e382307c0a6c8ccac142f
Comment the locking mechanisms in ContextInfoManager

Coverity didn't like our non-locking of the get() method. The
lock is actually only needed for the registration/unregistration
of retrievers, the get() can access the ConcurrentHashMap
directly.

Add a few comments to help explain this.

Signed-off-by: Alexandre Montplaisir <alexmonthy@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/context/ContextInfoManager.java
This page took 0.02446 seconds and 4 git commands to generate.