Project

General

Profile

Bug #884 » 0001-Fix-Java-agent-update-ref-count-in-enabledLoggers.patch

Philippe Proulx, 08/03/2015 04:42 PM

View differences:

liblttng-ust-java-agent/java/org/lttng/ust/agent/LogFrameworkSkeleton.java
Integer refcount = enabledLoggers.get(name);
refcount--;
assert (refcount >= 0);
enabledLoggers.put(name, refcount);
if (refcount == 0) {
/* Event is not used anymore, remove it from the map */
(2-2/2)