Quantcast
Channel: User user1944408 - Stack Overflow
Viewing all articles
Browse latest Browse all 26

Comment by user1944408 on ThreadLocal & Memory Leak

$
0
0
Sometimes people use a custom class in threadLocal value without even realizing that. For example it can happen when you use double brace initialization for your thread local value because double brace initialization will create an anonymous class. I created a fix for thread local that fix that class loader leak for your web apps but preserve non-blocking access to the thread local values: github.com/codesinthedark/ImprovedThreadLocal Now you can use your classes in ThreadLocal and you will not have memory leak on webapp redeployment

Viewing all articles
Browse latest Browse all 26

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>