Skip to content

Commit 2e75bde

Browse files
committed
Update b-2Java集合.md
1 parent 3c8fd98 commit 2e75bde

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/b-2Java集合.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ static int hash(int h) {
234234

235235
**JDK1.8 的 ConcurrentHashMap:**
236236

237-
![Java8 ConcurrentHashMap 存储结构(图片来自 javadoop)](../../JavaGuide/docs/java/collection/images/java8_concurrenthashmap.png)
237+
![Java8 ConcurrentHashMap 存储结构(图片来自 javadoop)](https://guide-blog-images.oss-cn-shenzhen.aliyuncs.com/source-code/dubbo/java8_concurrenthashmap.png)
238238

239239
JDK1.8 的 `ConcurrentHashMap` 不在是 **Segment 数组 + HashEntry 数组 + 链表**,而是 **Node 数组 + 链表 / 红黑树**。不过,Node 只能用于链表的情况,红黑树的情况需要使用 **`TreeNode`**。当冲突链表达到一定长度时,链表会转换成红黑树。
240240

0 commit comments

Comments
 (0)