GitHub user ppkarwasz added a comment to the discussion: Is using %uuid{RANDOM} 
pattern in JsonTemplateLayout considered garbage-free?

Neither one is GC-free. Each one will create an instance of 
[`UUID`](https://docs.oracle.com/javase/8/docs/api/java/util/UUID.html) and 
`String`. Scalar replacement might occur, when the JVM is hot enough, but you 
should test it on a concrete version of the JVM.


GitHub link: 
https://github.com/apache/logging-log4j2/discussions/3585#discussioncomment-12696831

----
This is an automatically sent email for dev@logging.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@logging.apache.org

Reply via email to