We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 6a19c26 + c079032 commit da619e2Copy full SHA for da619e2
docs/java/collection/concurrent-hash-map-source-code.md
@@ -419,7 +419,7 @@ public V get(Object key) {
419
private final Node<K,V>[] initTable() {
420
Node<K,V>[] tab; int sc;
421
while ((tab = table) == null || tab.length == 0) {
422
- // 如果 sizeCtl < 0 ,说明另外的线程执行CAS 成功,正在进行初始化。
+ // 如果 sizeCtl < 0 ,说明另外的线程执行CAS 成功,正在进行初始化。
423
if ((sc = sizeCtl) < 0)
424
// 让出 CPU 使用权
425
Thread.yield(); // lost initialization race; just spin
0 commit comments