1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-20 22:17:09 +08:00

Merge pull request #1923 from ReedZheng/doc-fix

补全ConcurrentHashMap中sizeCtl数值描述
This commit is contained in:
Guide 2023-02-14 22:26:11 +08:00 committed by GitHub
commit 98d8332919
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -444,8 +444,8 @@ private final Node<K,V>[] initTable() {
1. -1 说明正在初始化 1. -1 说明正在初始化
2. -N 说明有N-1个线程正在进行扩容 2. -N 说明有N-1个线程正在进行扩容
3. 表示 table 初始化大小,如果 table 没有初始化 3. 0 表示 table 初始化大小,如果 table 没有初始化
4. 表示 table 容量,如果 table 已经初始化。 4. \>0 表示 table 扩容的阈值,如果 table 已经初始化。
### 3. put ### 3. put