From 3cbfd3c119d7ca4c8c8a536b2104a99fadbc13ab Mon Sep 17 00:00:00 2001 From: qiulaidongfeng <2645477756@qq.com> Date: Sat, 4 May 2024 15:10:44 +0800 Subject: [PATCH] n Change-Id: I991bb2cdb0f50b28a853f3cb765d0bcaac41310c --- src/runtime/chanbarrier_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/runtime/chanbarrier_test.go b/src/runtime/chanbarrier_test.go index d0b0e9bc9d..02140c4bb7 100644 --- a/src/runtime/chanbarrier_test.go +++ b/src/runtime/chanbarrier_test.go @@ -54,9 +54,10 @@ func TestChanSendBarrier(t *testing.T) { testChanSendBarrier(false) } +var globalMu sync.Mutex + func testChanSendBarrier(useSelect bool) { var wg sync.WaitGroup - var globalMu sync.Mutex outer := 100 inner := 100000 if testing.Short() || runtime.GOARCH == "wasm" {