You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-dev@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2016/11/19 13:22:58 UTC

[jira] [Closed] (LOG4J2-1715) (GC) Avoid allocating temporary objects in NdcPatternConverter

     [ https://issues.apache.org/jira/browse/LOG4J2-1715?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Remko Popma closed LOG4J2-1715.
-------------------------------
    Resolution: Fixed

Fixed in master.

> (GC) Avoid allocating temporary objects in NdcPatternConverter
> --------------------------------------------------------------
>
>                 Key: LOG4J2-1715
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1715
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Pattern Converters
>    Affects Versions: 2.7
>            Reporter: Remko Popma
>            Assignee: Remko Popma
>             Fix For: 2.8
>
>
> Make NdcPatternConverter garbage-free by letting ThreadContext.ContextStack implementations implement StringBuilderFormattable.
> Note that use of the ThreadContext stack is not garbage-free: the stack is cloned for each log message. This only avoids creating objects during formatting in the layout.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org