![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
源码
只布布倩
这个作者很懒,什么都没留下…
展开
-
threadlocal中hash
threadlocal中的hash threadlocal的内存分布如下图所示。 每一个线程都有一个threadlocalmap(如上图所示),threadlocalmap在threadlocal类中定义。threadlocalmap没有继承map而是自己写了一套类似map的容器。threadlocalmap中存放的是一个数组,名字叫table,table中放着一个个的Entry,En...原创 2019-11-18 12:30:41 · 1744 阅读 · 0 评论 -
源码---hashmap
一 hashmap源码 推荐阅读:https://www.cnblogs.com/wlandyy/p/10287186.html 二 并发的HashMap为什么会引起死循环? 1.7 原因: 这篇文章讲的非常好:https://blog.csdn.net/zhuqiuhui/article/details/51849692 jdk1.8不会再产生死循环,但是在hashmap被...原创 2019-07-10 11:23:29 · 119 阅读 · 0 评论