1 // Copyright 2016 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
7 // The stubs for the C functions read and write the same slot on the
8 // g0 stack when copying arguments in and out.
11 #cgo CFLAGS: -fsanitize=thread
12 #cgo LDFLAGS: -fsanitize=thread
26 done := make(chan bool, N)
27 for i := 0; i < N; i++ {
37 for i := 0; i < 2*N; i++ {