We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 71815a4 + 69b2bfd commit 87c7b65Copy full SHA for 87c7b65
1 file changed
runtime/internal/runtime/z_chan.go
@@ -48,6 +48,7 @@ func NewChan(eltSize, cap int) *Chan {
48
ret.data = AllocU(uintptr(cap * eltSize))
49
ret.cap = cap
50
}
51
+ ret.mutex.Init(nil)
52
ret.cond.Init(nil)
53
return ret
54
0 commit comments