You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by GitBox <gi...@apache.org> on 2019/07/01 13:39:36 UTC

[GitHub] [logging-log4j2] carterkozak commented on a change in pull request #289: LOG4J2-2644 - Improve performance of getting location info

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:
users@infra.apache.org


With regards,
Apache Git Services