Skip to content

Commit 98d8332

Browse files
authored
Merge pull request Snailclimb#1923 from ReedZheng/doc-fix
补全ConcurrentHashMap中sizeCtl数值描述
2 parents 01d8de7 + c65343f commit 98d8332

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/java/collection/concurrent-hash-map-source-code.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -444,8 +444,8 @@ private final Node<K,V>[] initTable() {
444444

445445
1. -1 说明正在初始化
446446
2. -N 说明有N-1个线程正在进行扩容
447-
3. 表示 table 初始化大小,如果 table 没有初始化
448-
4. 表示 table 容量,如果 table 已经初始化。
447+
3. 0 表示 table 初始化大小,如果 table 没有初始化
448+
4. \>0 表示 table 扩容的阈值,如果 table 已经初始化。
449449

450450
### 3. put
451451

0 commit comments

Comments
 (0)