From c079032b0f0e1ba3b5ef5ecb8bd068721b021466 Mon Sep 17 00:00:00 2001 From: tylerren <75669365+rentianle2022@users.noreply.github.com> Date: Thu, 7 Jul 2022 12:32:58 +0800 Subject: [PATCH] =?UTF-8?q?422=E8=A1=8C=E4=B8=AD=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E6=AE=B5//=E6=B3=A8=E9=87=8A=E7=9A=84=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E6=A0=BC=E5=BC=8F?= 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 015077ca..4ac07bbd 100644 --- a/docs/java/collection/concurrent-hash-map-source-code.md +++ b/docs/java/collection/concurrent-hash-map-source-code.md @@ -419,7 +419,7 @@ public V get(Object key) { private final Node[] initTable() { Node[] tab; int sc; while ((tab = table) == null || tab.length == 0) { - // 如果 sizeCtl < 0 ,说明另外的线程执行CAS 成功,正在进行初始化。 + // 如果 sizeCtl < 0 ,说明另外的线程执行CAS 成功,正在进行初始化。 if ((sc = sizeCtl) < 0) // 让出 CPU 使用权 Thread.yield(); // lost initialization race; just spin