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:20:49 +0000 (15:20 +0200)
commit831b4b0806c39463ab61b8ee82c1951cf252bcd4
tree0cf1bfc80fc2716149d32831e0254c0a069c3e41
parenta548b3c1a329855ad7b2be6937a5a378419fb1b3
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.024342 seconds and 4 git commands to generate.