You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The implementations of ThreadContextMap#remove and CleanableThreadContextMap#removeAll in the DefaultThreadContextMap and CopyOnWriteSortedArrayThreadContextMap implementations do not clear the underlying ThreadLocal, after all keys have been removed from the context map.
This issue prevents CopyOnWriteSortedArrayThreadContextMap to be safely used in a web application, if code like this is used:
Remark: this issue does not affect the GarbageFreeSortedArrayThreadContextMap implementation, since leaving a non-null value of ThreadContext is part of its garbage-free design.
The text was updated successfully, but these errors were encountered:
The implementations of
ThreadContextMap#remove
andCleanableThreadContextMap#removeAll
in theDefaultThreadContextMap
andCopyOnWriteSortedArrayThreadContextMap
implementations do not clear the underlyingThreadLocal
, after all keys have been removed from the context map.This issue prevents
CopyOnWriteSortedArrayThreadContextMap
to be safely used in a web application, if code like this is used:Remark: this issue does not affect the
GarbageFreeSortedArrayThreadContextMap
implementation, since leaving a non-null value ofThreadContext
is part of its garbage-free design.The text was updated successfully, but these errors were encountered: