From 33521233a026c53b08daf9dbe2c9c8190959f806 Mon Sep 17 00:00:00 2001 From: nicollcheng <64319004+nicollcheng@users.noreply.github.com> Date: Fri, 10 Dec 2021 13:59:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=93=BE=E8=A1=A8=E6=A0=91?= =?UTF-8?q?=E5=8C=96=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/java/collection/concurrent-hash-map-source-code.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/java/collection/concurrent-hash-map-source-code.md b/docs/java/collection/concurrent-hash-map-source-code.md index 8496df0e..51b82404 100644 --- a/docs/java/collection/concurrent-hash-map-source-code.md +++ b/docs/java/collection/concurrent-hash-map-source-code.md @@ -541,7 +541,7 @@ final V putVal(K key, V value, boolean onlyIfAbsent) { 5. 如果都不满足,则利用 synchronized 锁写入数据。 -6. 如果数量大于 `TREEIFY_THRESHOLD` 则要转换为红黑树。 +6. 如果数量大于 `TREEIFY_THRESHOLD` 则要执行树化方法,在treeifyBin中会首先判断当前数组长度≥64时才会将链表转换为红黑树。 ### 4. get