We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
ThreadContextMap
1 parent 1a88ef3 commit 51d0fb3Copy full SHA for 51d0fb3
log4j-api/src/main/java/org/apache/logging/log4j/spi/Provider.java
@@ -326,10 +326,10 @@ public String getThreadContextMap() {
326
return threadContextMapClass;
327
}
328
// Default based on properties
329
- if (props.getBooleanProperty(GC_FREE_THREAD_CONTEXT_PROPERTY, !Constants.IS_WEB_APP)) {
+ if (props.getBooleanProperty(GC_FREE_THREAD_CONTEXT_PROPERTY)) {
330
return GARBAGE_FREE_CONTEXT_MAP;
331
332
- return Constants.IS_WEB_APP ? WEB_APP_CONTEXT_MAP : COPY_ON_WRITE_CONTEXT_MAP;
+ return Constants.ENABLE_THREADLOCALS ? COPY_ON_WRITE_CONTEXT_MAP : WEB_APP_CONTEXT_MAP;
333
334
335
/**
0 commit comments