Skip to content

Commit c65343f

Browse files
committed
补全ConcurrentHashMap中sizeCtl数值描述
1 parent 01d8de7 commit c65343f

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

+2-2
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)