Files
Hui-s-notebook/logseq-java/pages/ThreadLocal内存泄漏.md
2024-02-02 00:12:49 +08:00

1 line
216 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
- 没有外部强引用时发生GC会被回收ThreadLocalMap中保存的key值变为nullThread一致不终结value对象就会一直存在内存中导致内存泄漏直到Thread被销毁才会回收