]> Cypherpunks repositories - gostls13.git/commitdiff
runtime/race: update two stale references
authorBrad Fitzpatrick <bradfitz@golang.org>
Wed, 9 Dec 2015 17:51:23 +0000 (17:51 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Wed, 9 Dec 2015 18:11:42 +0000 (18:11 +0000)
Fixes #13550

Change-Id: I407daad8b94f6773d7949ba27981d26cbfd2cdf4
Reviewed-on: https://go-review.googlesource.com/17682
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/race/race.go
src/runtime/race/testdata/select_test.go

index 31deedd73d700217400d1342bebf2bc315adfe13..15e20112a8d36b7e53ce5a2f9b089817ecfd3d80 100644 (file)
@@ -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"
index b4b19911554178ba97e31faff897e83cdfcde045..9969f47e8e7223895350bf25eaf4f4d0fbe6cf87 100644 (file)
@@ -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: