mirror of
https://github.com/golang/go
synced 2024-11-17 16:14:42 -07:00
runtime/race: update two stale references
Fixes #13550 Change-Id: I407daad8b94f6773d7949ba27981d26cbfd2cdf4 Reviewed-on: https://go-review.googlesource.com/17682 Reviewed-by: Russ Cox <rsc@golang.org>
This commit is contained in:
parent
efc806e92e
commit
371e44e5a1
@ -9,7 +9,7 @@ package race
|
||||
// This file merely ensures that we link in runtime/cgo in race build,
|
||||
// this is turn ensures that runtime uses pthread_create to create threads.
|
||||
// The prebuilt race runtime lives in race_GOOS_GOARCH.syso.
|
||||
// Calls to the runtime are done directly from src/runtime/race.c.
|
||||
// Calls to the runtime are done directly from src/runtime/race.go.
|
||||
|
||||
// void __race_unused_func(void);
|
||||
import "C"
|
||||
|
2
src/runtime/race/testdata/select_test.go
vendored
2
src/runtime/race/testdata/select_test.go
vendored
@ -19,7 +19,7 @@ func TestNoRaceSelect1(t *testing.T) {
|
||||
x = 1
|
||||
// At least two channels are needed because
|
||||
// otherwise the compiler optimizes select out.
|
||||
// See comment in runtime/chan.c:^selectgo.
|
||||
// See comment in runtime/select.go:^func selectgoImpl.
|
||||
select {
|
||||
case c <- true:
|
||||
case c1 <- true:
|
||||
|
Loading…
Reference in New Issue
Block a user