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:51:23 +0000 (15:51 -0400)
commit6b4fc51ebf77552964eeebc13caa68f7fd9012cf
treebc2952f237b7c761d130aedd3aa1a7a9cbc5696e
parent1e1110055efac3a1713fe0c7b5f36d5b98895d92
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.030921 seconds and 4 git commands to generate.