- 14 Apr, 2011 14 commits
-
-
Russ Cox authored
R=r, r2 CC=golang-dev https://golang.org/cl/4370049
-
Russ Cox authored
Fixes #1698. Fixes #1699. R=ken2 CC=golang-dev https://golang.org/cl/4419041
-
Russ Cox authored
R=bradfitzwork CC=golang-dev https://golang.org/cl/4397043
-
Russ Cox authored
Fixes #1697. R=ken2 CC=golang-dev https://golang.org/cl/4395045
-
Luuk van Dijk authored
R=rsc CC=golang-dev https://golang.org/cl/4418043
-
Dave Cheney authored
R=rsc CC=golang-dev https://golang.org/cl/4416042
-
Rob Pike authored
fixes build with GCC4.6 R=adg CC=golang-dev https://golang.org/cl/4396048
-
Andrew Gerrand authored
R=dsymonds CC=golang-dev https://golang.org/cl/4400044
-
Andrew Gerrand authored
R=dsymonds CC=golang-dev https://golang.org/cl/4396047
-
Russ Cox authored
The list elements are already being allocated out of a single memory buffer. We can drop the Link* pointer following and the memory it requires, replacing it with index operations. The change also keeps a channel from containing a pointer back into its own allocation block, which would create a cycle. Blocks involved in cycles are not guaranteed to be finalized properly, and channels depend on finalizers to free OS-level locks on some systems. The self-reference was keeping channels from being garbage collected. runtime-gdb.py will need to be updated in order to dump the content of buffered channels with the new data structure. Fixes #1676. R=ken2, r CC=golang-dev https://golang.org/cl/4411045
-
Russ Cox authored
R=golang-dev, niemeyer, r CC=golang-dev https://golang.org/cl/4372052
-
Russ Cox authored
Fixes #1685. R=ken2 CC=golang-dev https://golang.org/cl/4414042
-
Corey Thomasson authored
R=rog, adg, rsc CC=golang-dev https://golang.org/cl/4388048
-
Andrew Gerrand authored
Fixes #1689. R=rsc CC=golang-dev https://golang.org/cl/4404043
-
- 13 Apr, 2011 22 commits
-
-
Rob Pike authored
Update goyacc, cgo to be more canonical in their naming and silence the new warnings. R=rsc, gri CC=golang-dev https://golang.org/cl/4417042
-
Nigel Tao authored
R=r, nigeltao_gnome CC=golang-dev https://golang.org/cl/4404041
-
Robert Griesemer authored
R=r, bradfitzwork CC=golang-dev https://golang.org/cl/4406044
-
Rob Pike authored
Newly enabled compiler errors need workaround. R=rsc CC=golang-dev https://golang.org/cl/4397047
-
Robert Griesemer authored
R=rsc CC=golang-dev https://golang.org/cl/4403045
-
Brad Fitzpatrick authored
This mostly adds Expect 100-continue tests (from the perspective of server correctness) that were missing before. It also fixes a few missing cases that will probably never come up in practice, but it's nice to have handled correctly. Proper 100-continue client support remains a TODO. R=rsc, bradfitzwork CC=golang-dev https://golang.org/cl/4399044
-
Robert Griesemer authored
- replaced existing testdata/test.sh with new gofmt_test - added initial test case for rewrite tests TODO: Need to add more tests. R=rsc CC=golang-dev https://golang.org/cl/4368063
-
Robert Griesemer authored
R=rsc CC=golang-dev https://golang.org/cl/4397046
-
Russ Cox authored
This CL is only cut-and-paste, moving code around. Moving it in a separate CL should simplify the diffs in later CLs. There are three patterns here. 1. A function like func (v Value) M() (...) { return v.panicIfNot(K).(*kValue).M() } becomes func (v Value) M() (...) { vv := v.panicIfNot(K).(*kValue) // body of (*kValue).M, s/v./vv./g } 2. A function like func (v Value) M() (...) { return v.panicIfNots(kList).(mer).M() } becomes func (v Value) M() (...) { switch vv := v.panicIfNots(kList).(type) { case *k1Value: // body of (*k1Value).M, s/v./vv./g case *k2Value: // body of (*k2Value).M, s/v./vv./g ... } panic("not reached") } 3. The rewrite of Value.Set follows 2, but each case is built from the bodies of (*kValue).SetValue and (*kValue).Set. func (v *kValue) SetValue(x Value) { v.Set(x.panicIfNot(K).(*kValue) } func (v *kValue) Set(x *kValue) { ... body } becomes, in the switch from 2, case *kValue: xx := x.panicIfNot(K).(*kValue) ... body, s/v./vv./g; s/x./xx./g R=r CC=golang-dev https://golang.org/cl/4398044
-
Rob Pike authored
R=rsc, gri CC=golang-dev https://golang.org/cl/4411044
-
Russ Cox authored
TBR=r CC=golang-dev https://golang.org/cl/4396045
-
Russ Cox authored
This CL changes the behavior of 'make install' and 'make test' in the src/cmd directory and the src/pkg directory to have each recursive make clean up after itself immediately. It does the same in test/run, removing $F.$A and $A.out (the common byproducts) between runs. On machines with slow disks and aggressive kernel caching, cleaning up immediately can mean that the intermediate objects never get written to disk. This change eliminates almost all the disk waiting during all.bash on my laptop (a Thinkpad X201s with an SSD running Linux). 147.50u 19.95s 277.34r before 148.53u 21.64s 179.59r after R=golang-dev, r, iant2 CC=golang-dev https://golang.org/cl/4413042
-
Russ Cox authored
Better to fix the warnings that we find. R=iant CC=golang-dev https://golang.org/cl/4406042
-
Russ Cox authored
R=golang-dev, r, iant2 CC=golang-dev https://golang.org/cl/4408043
-
Adam Langley authored
It matches encoding/line exactly and the tests are copied from there. If we land this, then encoding/line will get marked as deprecated then deleted in time. R=rsc, rog, peterGo CC=golang-dev https://golang.org/cl/4389046
-
Brad Fitzpatrick authored
R=r, mkrautz, r2, rsc CC=golang-dev https://golang.org/cl/4415041
-
Robert Griesemer authored
With the (partial) resolution of identifiers done by the go/parser, ast.Objects point may introduce cycles in the AST. Don't follow *ast.Objects, and replace them with nil instead (they are likely incorrect after a rewrite anyway). - minor manual cleanups after reflect change automatic rewrite - includes fix by rsc related to reflect change Fixes #1667. R=rsc CC=golang-dev https://golang.org/cl/4387044
-
Robert Griesemer authored
- fixed a couple of comments - cleanups after reflect change R=rsc CC=golang-dev https://golang.org/cl/4389041
-
Andrew Gerrand authored
R=rsc CC=golang-dev https://golang.org/cl/4312051
-
Dmitry Chestnykh authored
Fmt command filters the current Go buffer through gofmt. It tries to preserve cursor position and avoids replacing the buffer with stderr output. R=golang-dev, dsymonds, niemeyer CC=golang-dev https://golang.org/cl/4382053
-
David Symonds authored
Fixes #1677. R=r CC=golang-dev https://golang.org/cl/4402042
-
Gustavo Niemeyer authored
The changes were not tested for real in an App Engine environment, so extra care should be taken. That said, some static testing was done with pyflakes, and a few existent problems were fixed on the way. R=adg CC=golang-dev https://golang.org/cl/4378053
-
- 12 Apr, 2011 4 commits
-
-
Fazlul Shahriar authored
'TestReaddir.*' tests now passes. R=golang-dev, lucio, r CC=golang-dev https://golang.org/cl/4381048
-
Lucio De Re authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4390047
-
Rob Pike authored
Suggested by jan.mercl@nic.cz. R=rsc, jnml CC=golang-dev https://golang.org/cl/4376054
-
Lucio De Re authored
Added "void" inside "()" for two functions. R=golang-dev, r CC=golang-dev https://golang.org/cl/4381056
-