From e7a87e50da7383e013bf7250464df0b838cffca2 Mon Sep 17 00:00:00 2001 From: Alexandre Montplaisir Date: Thu, 11 Feb 2016 19:37:44 -0500 Subject: [PATCH] Fix: Clear tracked application contexts upon closing a Java agent Signed-off-by: Alexandre Montplaisir Signed-off-by: Mathieu Desnoyers --- .../org/lttng/ust/agent/AbstractLttngAgent.java | 2 ++ 1 file changed, 2 insertions(+) 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; } -- 2.34.1