Fix: Fix synchronization of LTTngAgent#dispose
authorAlexandre Montplaisir <alexmonthy@efficios.com>
Thu, 19 May 2016 19:10:04 +0000 (15:10 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 19 May 2016 19:52:20 +0000 (15:52 -0400)
commitc0016872320fcd9ade6d58bf654ff6db5e390918
tree151d7630161b2bd1c57b5d3ce581de1871851a93
parent6b8cdda9e4d87e9dee0b887ac733577b26be0ad3
Fix: Fix synchronization of LTTngAgent#dispose

Commit 9355f049 changed the dispose() back to non-static. However,
"static synchronized" and "synchronized" are not the same thing!
The latter synchronizes on the instance, but the former synchronizes
on the class object.

In this case we need to synchronize on the class object manually.

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/LTTngAgent.java
This page took 0.024856 seconds and 4 git commands to generate.