From: Alexandre Montplaisir Date: Fri, 12 Feb 2016 00:37:44 +0000 (-0500) Subject: Fix: Clear tracked application contexts upon closing a Java agent X-Git-Tag: v2.8.0-rc1~37 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=e7a87e50da7383e013bf7250464df0b838cffca2;p=lttng-ust.git Fix: Clear tracked application contexts upon closing a Java agent Signed-off-by: Alexandre Montplaisir Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java b/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java index 22c58265..f8ad187b 100644 --- a/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java +++ b/liblttng-ust-java-agent/java/lttng-ust-agent-common/org/lttng/ust/agent/AbstractLttngAgent.java @@ -198,6 +198,8 @@ public abstract class AbstractLttngAgent enabledEventPrefixes.clear(); enabledWildcards.set(0); + enabledAppContexts.clear(); + initialized = false; }