mirror of
https://github.com/golang/go
synced 2024-11-17 15:04:45 -07:00
runtime: remove useless loop from CgoCCodeSIGPROF test program
I verified that the test fails if I undo the change that it tests for. Updates #14732. Change-Id: Ib30352580236adefae946450ddd6cd65a62b7cdf Reviewed-on: https://go-review.googlesource.com/24151 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Mikio Hara <mikioh.mikioh@gmail.com>
This commit is contained in:
parent
d78d0de4d1
commit
ea2ac3fe5f
2
src/runtime/testdata/testprogcgo/aprof.go
vendored
2
src/runtime/testdata/testprogcgo/aprof.go
vendored
@ -30,7 +30,6 @@ func GoNop() {}
|
|||||||
func CgoCCodeSIGPROF() {
|
func CgoCCodeSIGPROF() {
|
||||||
c := make(chan bool)
|
c := make(chan bool)
|
||||||
go func() {
|
go func() {
|
||||||
for {
|
|
||||||
<-c
|
<-c
|
||||||
start := time.Now()
|
start := time.Now()
|
||||||
for i := 0; i < 1e7; i++ {
|
for i := 0; i < 1e7; i++ {
|
||||||
@ -42,7 +41,6 @@ func CgoCCodeSIGPROF() {
|
|||||||
C.GoNop()
|
C.GoNop()
|
||||||
}
|
}
|
||||||
c <- true
|
c <- true
|
||||||
}
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
var buf bytes.Buffer
|
var buf bytes.Buffer
|
||||||
|
Loading…
Reference in New Issue
Block a user