carterkozak commented on a change in pull request #289: LOG4J2-2644 - Improve 
performance of getting location info
URL: https://github.com/apache/logging-log4j2/pull/289#discussion_r299047174
 
 

 ##########
 File path: 
log4j-api-java9/src/main/java/org/apache/logging/log4j/util/StackLocator.java
 ##########
 @@ -31,6 +33,7 @@
 
     private final static StackLocator INSTANCE = new StackLocator();
 
+    private final static ThreadLocal<FqcnCallerLocator> LOCATOR = 
ThreadLocal.withInitial(FqcnCallerLocator::new);
 
 Review comment:
   Should we check if threadlocals are enabled before using this since it's not 
a standard type like StringBuilder?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to