Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1715

(GC) Avoid allocating temporary objects in NdcPatternConverter

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7
    • 2.8
    • Pattern Converters
    • None

    Description

      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.

      Attachments

        Activity

          People

            rpopma Remko Popma
            rpopma Remko Popma
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: