- 11 Feb, 2012 17 commits
-
-
Ian Lance Taylor authored
Otherwise lockorder may be misaligned, since lockorder is a list of pointers and pollorder is a list of uint16. Discovered running gccgo (which uses a modified copy of this code) on SPARC. R=golang-dev, gri CC=golang-dev https://golang.org/cl/5655054
-
Russ Cox authored
If the values being compared have different concrete types, then they're clearly unequal without needing to invoke the actual interface compare routine. This speeds tests for specific values, like if err == io.EOF, by about 3x. benchmark old ns/op new ns/op delta BenchmarkIfaceCmp100 843 287 -65.95% BenchmarkIfaceCmpNil100 184 182 -1.09% Fixes #2591. R=ken2 CC=golang-dev https://golang.org/cl/5651073
-
Russ Cox authored
Same fix as 6g, tripped by the 6g test case. R=ken2 CC=golang-dev https://golang.org/cl/5651074
-
Mikio Hara authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5651072
-
Russ Cox authored
Fixes #1743. (Actually was fixed earlier, but now we have proof.) R=ken2 CC=golang-dev https://golang.org/cl/5649064
-
Russ Cox authored
Fixes #2295. R=ken2 CC=golang-dev https://golang.org/cl/5655057
-
Russ Cox authored
Also show actual expression in message when possible. Fixes #2599. R=ken2 CC=golang-dev https://golang.org/cl/5654059
-
Russ Cox authored
Was trying to optimize a duplicate float64 move by registerizing an int64. Fixes #2588. R=ken2 CC=golang-dev https://golang.org/cl/5645086
-
Rob Pike authored
This will help html/template copy templates. R=golang-dev, gri, nigeltao, r CC=golang-dev https://golang.org/cl/5653062
-
Russ Cox authored
Fix it twice: reuse registers more aggressively in cgen abop, and also release R14 and R15, which are no longer m and g. Fixes #2669. R=ken2 CC=golang-dev https://golang.org/cl/5655056
-
Mikio Hara authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5653056
-
Mikio Hara authored
This CL changes default SOL_SOCKET settings to mitigate connect failure on OpenBSD or similar platforms which support randomized transport protocol port number assignment. Fixes #2830. R=rsc, jsing CC=golang-dev https://golang.org/cl/5648044
-
Robert Griesemer authored
R=nigeltao CC=golang-dev https://golang.org/cl/5649062
-
Nigel Tao authored
Fixes #2838. R=rsc, r CC=golang-dev https://golang.org/cl/5651060
-
Bjorn Tipling authored
R=go.peter.90, n13m3y3r, gustavo CC=golang-dev https://golang.org/cl/5655053
-
Gustavo Niemeyer authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5645085
-
Gustavo Niemeyer authored
Fixes #2927. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5651062
-
- 10 Feb, 2012 23 commits
-
-
Nigel Tao authored
Fixes #2939. R=rsc, r CC=golang-dev https://golang.org/cl/5655050
-
Luuk van Dijk authored
Should be obviously correct. Includes minimal test case. A future CL should clear up the logic around typecheckok and importpkg != nil someday. R=rsc, dsymonds, rsc CC=golang-dev https://golang.org/cl/5652057
-
Brad Fitzpatrick authored
make syscall.ProcAttr.Files be []uintptr all.bash passes on Linux. things seem to compile on GOOS={darwin,windows} R=golang-dev, mattn.jp, alex.brainman, rsc CC=golang-dev https://golang.org/cl/5653055
-
James Whitehead authored
Fixes #2932 R=gri CC=golang-dev https://golang.org/cl/5654046
-
Robert Griesemer authored
- Added test case for issue 1542. Fixes #1542. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5645080
-
Robert Griesemer authored
If a printer is configured with the SourcePos mode set, it will emit //-line comments as necessary to ensure that the result - if reparsed - reflects the original source position information. This change required a bit of reworking of the output section in printer.go. Specifically: - Introduced new Config mode 'SourcePos'. - Introduced new position 'out' which tracks the position of the generated output if it were read in again. If there is a discrepancy between out and the current AST/source position, a //line comment is emitted to correct for it. - Lazy emission of indentation so that //line comments can be placed correctly. As a result, the trimmer will have to do less work. - Merged writeItem into writeString. - Merged writeByteN into writeByte. - Use a []byte instead of a byte.Buffer both in the printer and in the trimmer (eliminates dependency). Also: introduced explicit printer.Mode type (in sync w/ parser.Mode, scanner.Mode, etc.) Runs all tests. Applied gofmt to src, misc w/o changes. Fixes #1047. Fixes #2697. R=rsc, rsc CC=golang-dev https://golang.org/cl/5643066
-
Nigel Tao authored
(*Writer, error) if they take a compression level, and *Writer otherwise. Rename gzip's Compressor and Decompressor to Writer and Reader, similar to flate and zlib. Clarify commentary when writing gzip metadata that is not representable as Latin-1, and fix io.EOF comment bug. Also refactor gzip_test to be more straightforward. Fixes #2839. R=rsc, r, rsc, bradfitz CC=golang-dev https://golang.org/cl/5639057
-
Russ Cox authored
Actually %GOBUILDEXIT% I suppose. R=golang-dev CC=golang-dev https://golang.org/cl/5651058
-
Russ Cox authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5651057
-
Alex Brainman authored
not sure that it will work, but. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5649051
-
Andrew Gerrand authored
Relax. It's still in macho.go. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5653054
-
Rob Pike authored
Fixes #2954. R=golang-dev, bradfitz, rsc, r CC=golang-dev https://golang.org/cl/5645077
-
Rob Pike authored
Fixes #2940. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5645078
-
Russ Cox authored
This is for filling a column with "fail", like I just did for Windows, when the builder would get stuck running that build. (We have safeguards against the tests getting stuck but this was the bootstrap build getting stuck.) I usually use -cmd=/bin/false, but this avoids the Mercurial checkouts, which means it runs instantly instead of requiring ~1 minute per "fail". R=golang-dev, adg CC=golang-dev https://golang.org/cl/5649049
-
Daniel Theophanes authored
Fixes #2931. R=golang-dev, alex.brainman CC=golang-dev, rsc https://golang.org/cl/5651049
-
Rob Pike authored
Fixes #2952. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5651054
-
Brad Fitzpatrick authored
Fixes #2948 R=golang-dev, r CC=golang-dev https://golang.org/cl/5655048
-
Rob Pike authored
Fixes #2957. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5653053
-
Rob Pike authored
Fixes #2960. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5652055
-
Rob Pike authored
Fixes #2959. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5651053
-
Rob Pike authored
Dead code. Fixes #2961. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5650053
-
Rob Pike authored
The comment on IsOneOf regarding Latin-1 was an implementation detail: when the function is called internally, that condition is true. It used to matter, but now the comment is a dreg. The function works fine if the character is Latin-1, so we just delete the comment. Fixes #2966. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5655047
-
Rob Pike authored
Fixes #2963. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5650051
-