Repository: logging-log4j2 Updated Branches: refs/heads/master d99840db8 -> d73d85758
LOG4J2-1270 document that these converters are intended to be garbage-free in steady state Project: http://git-wip-us.apache.org/repos/asf/logging-log4j2/repo Commit: http://git-wip-us.apache.org/repos/asf/logging-log4j2/commit/d73d8575 Tree: http://git-wip-us.apache.org/repos/asf/logging-log4j2/tree/d73d8575 Diff: http://git-wip-us.apache.org/repos/asf/logging-log4j2/diff/d73d8575 Branch: refs/heads/master Commit: d73d8575840808de83cde3b10ed5f5e45251f524 Parents: d99840d Author: rpopma <rpo...@apache.org> Authored: Sun Nov 27 19:13:23 2016 +0900 Committer: rpopma <rpo...@apache.org> Committed: Sun Nov 27 19:13:23 2016 +0900 ---------------------------------------------------------------------- .../logging/log4j/core/pattern/EncodingPatternConverter.java | 2 ++ .../log4j/core/pattern/VariablesNotEmptyReplacementConverter.java | 2 ++ 2 files changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d73d8575/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/EncodingPatternConverter.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/EncodingPatternConverter.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/EncodingPatternConverter.java index a82fdde..1909147 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/EncodingPatternConverter.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/EncodingPatternConverter.java @@ -22,12 +22,14 @@ import org.apache.logging.log4j.core.LogEvent; import org.apache.logging.log4j.core.config.Configuration; import org.apache.logging.log4j.core.config.plugins.Plugin; import org.apache.logging.log4j.core.layout.PatternLayout; +import org.apache.logging.log4j.util.PerformanceSensitive; /** * Returns the event's rendered message in a StringBuilder. */ @Plugin(name = "encode", category = PatternConverter.CATEGORY) @ConverterKeys({ "enc", "encode" }) +@PerformanceSensitive("allocation") public final class EncodingPatternConverter extends LogEventPatternConverter { private final List<PatternFormatter> formatters; http://git-wip-us.apache.org/repos/asf/logging-log4j2/blob/d73d8575/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/VariablesNotEmptyReplacementConverter.java ---------------------------------------------------------------------- diff --git a/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/VariablesNotEmptyReplacementConverter.java b/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/VariablesNotEmptyReplacementConverter.java index a3d14e7..1f0d827 100644 --- a/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/VariablesNotEmptyReplacementConverter.java +++ b/log4j-core/src/main/java/org/apache/logging/log4j/core/pattern/VariablesNotEmptyReplacementConverter.java @@ -22,12 +22,14 @@ import org.apache.logging.log4j.core.LogEvent; import org.apache.logging.log4j.core.config.Configuration; import org.apache.logging.log4j.core.config.plugins.Plugin; import org.apache.logging.log4j.core.layout.PatternLayout; +import org.apache.logging.log4j.util.PerformanceSensitive; /** * VariablesNotEmpty pattern converter. */ @Plugin(name = "notEmpty", category = PatternConverter.CATEGORY) @ConverterKeys({ "notEmpty", "varsNotEmpty", "variablesNotEmpty", }) +@PerformanceSensitive("allocation") public final class VariablesNotEmptyReplacementConverter extends LogEventPatternConverter { private final List<PatternFormatter> formatters;