1
0
mirror of https://github.com/golang/go synced 2024-11-12 08:40:21 -07:00
go/test/chan
Russ Cox 27c74d3499 spec, runtime, tests: send on closed channel panics
Close of closed channel panics.
Receive from closed channel never panics,
even if done repeatedly.

Fixes #1349.
Fixes #1419.

R=gri, iant, ken2, r, gri1, r2, iant2, rog, albert.strasheim, niemeyer, ejsherry
CC=golang-dev
https://golang.org/cl/3989042
2011-01-21 15:07:13 -05:00
..
doubleselect.go test/chan/doubleselect: fix various races 2011-01-21 15:06:44 -05:00
fifo.go test: remove semiocolons. 2010-09-04 10:36:13 +10:00
goroutines.go test: remove semiocolons. 2010-09-04 10:36:13 +10:00
nonblock.go test: Reduce race conditions in chan/nonblock.go. 2010-09-10 15:37:20 -07:00
perm.go test: remove semiocolons. 2010-09-04 10:36:13 +10:00
powser1.go test: remove semiocolons. 2010-09-04 10:36:13 +10:00
powser2.go test: remove semiocolons. 2010-09-04 10:36:13 +10:00
select2.go runtime: correct memory leak in select 2010-04-01 11:56:18 -07:00
select3.go spec, runtime, tests: send on closed channel panics 2011-01-21 15:07:13 -05:00
select4.go gc: allow select case expr = <-c 2010-09-27 12:04:21 -04:00
select.go delete all uses of panicln by rewriting them using panic or, 2010-03-24 16:46:53 -07:00
sieve1.go single argument panic 2010-03-30 10:34:57 -07:00
sieve2.go single argument panic 2010-03-30 10:34:57 -07:00