1
0
mirror of https://github.com/golang/go synced 2024-11-22 02:24:41 -07:00
go/test/chan
Russ Cox ec53627ed5 runtime: correct memory leak in select
* adds pass 3 to dequeue from channels eagerly

various other cleanup/churn:
  * use switch on cas->send in each pass to
    factor out common code.
  * longer goto labels, commented at target
  * be more agressive about can't happen:
    throw instead of print + cope.
  * use "select" instead of "selectgo" in errors
  * use printf for debug prints when possible

R=ken2, ken3
CC=golang-dev, r
https://golang.org/cl/875041
2010-04-01 11:56:18 -07:00
..
doubleselect.go single argument panic 2010-03-30 10:34:57 -07:00
fifo.go move things out of sys into os and runtime 2009-05-08 15:21:41 -07:00
goroutines.go move things out of sys into os and runtime 2009-05-08 15:21:41 -07:00
nonblock.go single argument panic 2010-03-30 10:34:57 -07:00
perm.go last round: non-package code 2009-09-15 12:42:24 -07:00
powser1.go making some more non-gofmt'ed files save for new semicolon rule 2009-12-09 19:27:08 -08:00
powser2.go missed a couple of files in test 2009-12-09 21:39:20 -08:00
select2.go runtime: correct memory leak in select 2010-04-01 11:56:18 -07: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