]>
Cypherpunks repositories - gostls13.git/log
Andrew Gerrand [Fri, 21 Sep 2012 22:10:44 +0000 (17:10 -0500)]
[release-branch.go1] syscall: use exported StringToUTF16 in windows test
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
6551056
Alex Brainman [Tue, 7 Aug 2012 03:19:49 +0000 (13:19 +1000)]
net/http: disable TestServeFileFromCWD test on windows
This is an attempt to fix windows build. Will restore
once we know what the problem is.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
6461046
Andrew Gerrand [Fri, 21 Sep 2012 19:55:21 +0000 (05:55 +1000)]
[release-branch.go1] update VERSION to go1.0.3
Andrew Gerrand [Fri, 21 Sep 2012 19:55:20 +0000 (05:55 +1000)]
[release-branch.go1] remove src/pkg/exp
Andrew Gerrand [Fri, 21 Sep 2012 19:55:20 +0000 (05:55 +1000)]
[release-branch.go1] net/http: add missing hasToken function
Andrew Gerrand [Fri, 21 Sep 2012 19:55:19 +0000 (05:55 +1000)]
[release-branch.go1] doc: document go1.0.3
««« backport
671c5b05dc40
doc: document go1.0.3
R=rsc, r
CC=gobot, golang-dev
https://golang.org/cl/
6532049
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:55:19 +0000 (05:55 +1000)]
[release-branch.go1] doc/talks: remove talks, refer to talks.golang.org instead
««« backport
e3b986984e53
doc/talks: remove talks, refer to talks.golang.org instead
These talks have been moved to the go.talks sub-repository:
https://code.google.com/p/go.talks
R=rsc, r
CC=gobot, golang-dev
https://golang.org/cl/
6529052
»»»
Adam Langley [Fri, 21 Sep 2012 19:55:18 +0000 (05:55 +1000)]
[release-branch.go1] A+C: Add Andrew Harding (Individual CLA)
««« backport
f041c9b94d6a
A+C: Add Andrew Harding (Individual CLA)
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6544044
»»»
Robert Griesemer [Fri, 21 Sep 2012 19:55:18 +0000 (05:55 +1000)]
[release-branch.go1] encoding/gob: fix comment
««« backport
ee8276dbea49
encoding/gob: fix comment
Fixes #4100.
R=adg, r, dave
CC=golang-dev
https://golang.org/cl/
6535055
»»»
Shenghou Ma [Fri, 21 Sep 2012 19:55:17 +0000 (05:55 +1000)]
[release-branch.go1] src/all.bat: fix banner
««« backport
2f7827571b44
src/all.bat: fix banner
we need to restore %PATH% before calling "dist banner", so that
it could suggest the user to add %GOROOT%/bin to %PATH% if necessary.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
6525049
»»»
Anthony Eufemio [Fri, 21 Sep 2012 19:55:17 +0000 (05:55 +1000)]
[release-branch.go1] builtin: Changed documentation for rune type.
««« backport
6cfab3a0935e
builtin: Changed documentation for rune type.
Fixes #4093.
R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/
6536047
»»»
Brad Fitzpatrick [Fri, 21 Sep 2012 19:55:16 +0000 (05:55 +1000)]
[release-branch.go1] A+C: Add Anthony Eufemio (Individual CLA)
««« backport
773a05fbc002
A+C: Add Anthony Eufemio (Individual CLA)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6524045
»»»
Oling Cat [Fri, 21 Sep 2012 19:55:16 +0000 (05:55 +1000)]
[release-branch.go1] doc/effective_go: Closed some tags; removed extra spaces.
««« backport
04608c28273f
doc/effective_go: Closed some tags; removed extra spaces.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
6488122
»»»
Nigel Tao [Fri, 21 Sep 2012 19:55:15 +0000 (05:55 +1000)]
[release-branch.go1] image/jpeg: ignore an incorrect but harmless trailing restart marker.
««« backport
7af3dbecf445
image/jpeg: ignore an incorrect but harmless trailing restart marker.
Fixes #4084.
R=r
CC=golang-dev
https://golang.org/cl/
6526043
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:55:15 +0000 (05:55 +1000)]
[release-branch.go1] doc: document OS X tarballs
««« backport
195e4fc09b2d
doc: document OS X tarballs
R=golang-dev
CC=golang-dev
https://golang.org/cl/
6506129
»»»
Eric Roshan-Eisner [Fri, 21 Sep 2012 19:55:14 +0000 (05:55 +1000)]
[release-branch.go1] A+C: update Eric Roshan-Eisner
««« backport
b7ce1e467a60
A+C: update Eric Roshan-Eisner
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
6492135
»»»
Shenghou Ma [Fri, 21 Sep 2012 19:55:14 +0000 (05:55 +1000)]
[release-branch.go1] run.bash: fix a typo (fix build)
««« backport
11cdfc399090
run.bash: fix a typo (fix build)
R=golang-dev
CC=golang-dev
https://golang.org/cl/
6506121
»»»
Shenghou Ma [Fri, 21 Sep 2012 19:55:13 +0000 (05:55 +1000)]
[release-branch.go1] run.bash: set appropriate ulimits
««« backport
a97b81d2600f
run.bash: set appropriate ulimits
mainly for NetBSD/OpenBSD.
R=bradfitz, r, rsc
CC=golang-dev
https://golang.org/cl/
6453154
»»»
Shenghou Ma [Fri, 21 Sep 2012 19:55:13 +0000 (05:55 +1000)]
[release-branch.go1] runtime: fix SI_USER for FreeBSD
««« backport
283f6087807b
runtime: fix SI_USER for FreeBSD
Ref: http://svnweb.freebsd.org/base/head/sys/sys/signal.h?revision=HEAD&view=markup
R=golang-dev, devon.odell, r
CC=golang-dev
https://golang.org/cl/
6490118
»»»
Brad Fitzpatrick [Fri, 21 Sep 2012 19:55:12 +0000 (05:55 +1000)]
[release-branch.go1] os/exec: don't crash when out of fds
««« backport
00e1feaa9218
os/exec: don't crash when out of fds
Command.Start could crash before if no fds were available
because a nil *os.File of /dev/null was added to the cleanup
list, which crashed before returning the proper error.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6514043
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:55:12 +0000 (05:55 +1000)]
[release-branch.go1] A+C: add Xing Xing (individual CLA)
««« backport
449c9a4af2f1
A+C: add Xing Xing (individual CLA)
R=golang-dev, nigeltao
CC=golang-dev
https://golang.org/cl/
6493121
»»»
Rob Pike [Fri, 21 Sep 2012 19:55:11 +0000 (05:55 +1000)]
[release-branch.go1] effective_go: use html/template instead of text/template
««« backport
e3fce06291ec
effective_go: use html/template instead of text/template
Should have done this a long time ago.
Fixes #3811.
R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/
6488120
»»»
Brad Fitzpatrick [Fri, 21 Sep 2012 19:55:11 +0000 (05:55 +1000)]
[release-branch.go1] build: print go banner before restoring windows PATH
««« backport
452fc24c7ed3
build: print go banner before restoring windows PATH
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6492117
»»»
Russ Cox [Fri, 21 Sep 2012 19:55:10 +0000 (05:55 +1000)]
[release-branch.go1] html/template: fix URL doc
««« backport
fead9e11a489
html/template: fix URL doc
This is the easy part of issue 3528.
(What to do about "noescape" is the hard part, left open.)
Update #3528.
R=mikesamuel, r, dsymonds
CC=golang-dev
https://golang.org/cl/
6493113
»»»
Russ Cox [Fri, 21 Sep 2012 19:55:10 +0000 (05:55 +1000)]
[release-branch.go1] net/rpc/jsonrpc: fix test error message
««« backport
cbce1b576493
net/rpc/jsonrpc: fix test error message
Fixes #4041.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
6495121
»»»
Russ Cox [Fri, 21 Sep 2012 19:55:09 +0000 (05:55 +1000)]
[release-branch.go1] cmd/dist: emit \r in env -w output
««« backport
108165c03c70
cmd/dist: emit \r in env -w output
go tool dist env -w is supposed to print a Windows batch file.
Normally Windows will execute batch files without \r before \n,
but issue 3060 reports that if the file ends up containing paths
written in Chinese, Windows 7 cannot execute it without the \r.
So add the \r.
Fixes #3060.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
6498120
»»»
Ian Lance Taylor [Fri, 21 Sep 2012 19:55:09 +0000 (05:55 +1000)]
[release-branch.go1] C: Add Andreas Jellinghaus (Google CLA)
««« backport
993e67dd76c4
C: Add Andreas Jellinghaus (Google CLA)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6494121
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:55:08 +0000 (05:55 +1000)]
[release-branch.go1] C: add Francesc Campoy (Google CLA)
««« backport
3796fdf0d0b8
C: add Francesc Campoy (Google CLA)
R=golang-dev, dsymonds, campoy
CC=golang-dev
https://golang.org/cl/
6490102
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:55:08 +0000 (05:55 +1000)]
[release-branch.go1] C: spell Brian's name correctly
««« backport
50457a54c26c
C: spell Brian's name correctly
R=iant, nigeltao
CC=golang-dev
https://golang.org/cl/
6492102
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:55:07 +0000 (05:55 +1000)]
[release-branch.go1] C: add Brian Slesinsky (Google CLA)
««« backport
bfa71d733e8f
C: add Brian Slesinsky (Google CLA)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
6496103
»»»
David Symonds [Fri, 21 Sep 2012 19:55:07 +0000 (05:55 +1000)]
[release-branch.go1] doc: Don't imply incorrect guarantees about data races.
««« backport
dbcfb4459ab8
doc: Don't imply incorrect guarantees about data races.
A race between
a = "hello, world"
and
print(a)
is not guaranteed to print either "hello, world" or "".
Its behaviour is undefined.
Fixes #4039.
R=rsc
CC=dvyukov, gobot, golang-dev, r
https://golang.org/cl/
6489075
»»»
Adam Langley [Fri, 21 Sep 2012 19:55:06 +0000 (05:55 +1000)]
[release-branch.go1] crypto/rand: typo fix from
a69e30463bf4
««« backport
7047e253f1cd
crypto/rand: typo fix from
a69e30463bf4
R=golang-dev
CC=golang-dev
https://golang.org/cl/
6497106
»»»
Adam Langley [Fri, 21 Sep 2012 19:55:05 +0000 (05:55 +1000)]
[release-branch.go1] crypto/rand: zero length reads shouldn't crash on Windows.
««« backport
a69e30463bf4
crypto/rand: zero length reads shouldn't crash on Windows.
R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/
6496099
»»»
Rob Pike [Fri, 21 Sep 2012 19:55:05 +0000 (05:55 +1000)]
[release-branch.go1] faq: go does not have duck typing
««« backport
d3d3e0825dd2
faq: go does not have duck typing
R=golang-dev, 0xjnml, iant, adonovan, aram
CC=golang-dev
https://golang.org/cl/
6500092
»»»
Rob Pike [Fri, 21 Sep 2012 19:55:04 +0000 (05:55 +1000)]
[release-branch.go1] faq: mercurial vs. git
««« backport
4a9c3b3e39c6
faq: mercurial vs. git
Fixes #4052.
R=golang-dev, bradfitz, iant, rsc
CC=golang-dev
https://golang.org/cl/
6490092
»»»
Lucio De Re [Fri, 21 Sep 2012 19:55:04 +0000 (05:55 +1000)]
[release-branch.go1] net,mime: Minor corrections to documentation comments.
««« backport
3da1d25fd216
net,mime: Minor corrections to documentation comments.
R=r
CC=dsymonds, gobot, golang-dev
https://golang.org/cl/
6495085
»»»
Rob Pike [Fri, 21 Sep 2012 19:55:04 +0000 (05:55 +1000)]
[release-branch.go1] faq: another way to solve the closure/variable/range complaint
««« backport
3bca7b333e00
faq: another way to solve the closure/variable/range complaint
It's easier just to declare a new variable.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
6501103
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:55:03 +0000 (05:55 +1000)]
[release-branch.go1] C: add Manu Garg (Google CLA)
««« backport
f06edb3fcffe
C: add Manu Garg (Google CLA)
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6493087
»»»
Nigel Tao [Fri, 21 Sep 2012 19:55:03 +0000 (05:55 +1000)]
[release-branch.go1] image/jpeg: fix quantization tables to be in zig-zag order, not natural
««« backport
292816148e44
image/jpeg: fix quantization tables to be in zig-zag order, not natural
order.
JPEG images generated prior to this CL are still valid JPEGs, as the
quantization tables used are encoded in the wire format. Such JPEGs just
don't use the recommended quantization tables.
R=r, dsymonds, raph, adg
CC=golang-dev, tuom.larsen
https://golang.org/cl/
6497083
»»»
Oling Cat [Fri, 21 Sep 2012 19:55:02 +0000 (05:55 +1000)]
[release-branch.go1] doc/go_spec: fix a typo
««« backport
5bf4d4da76e9
doc/go_spec: fix a typo
R=nigeltao
CC=golang-dev
https://golang.org/cl/
6499075
»»»
Nigel Tao [Fri, 21 Sep 2012 19:55:02 +0000 (05:55 +1000)]
[release-branch.go1] A+C: Oling Cat (individual CLA)
««« backport
4c0b47f8b8f7
A+C: Oling Cat (individual CLA)
R=dsymonds
CC=golang-dev
https://golang.org/cl/
6503070
»»»
Sébastien Paolacci [Fri, 21 Sep 2012 19:55:01 +0000 (05:55 +1000)]
[release-branch.go1] net: fix {FileConn, FileListener, FilePacketConn} fd leak to child process.
««« backport
d694b1866058
net: fix {FileConn, FileListener, FilePacketConn} fd leak to child process.
All of them call `newFileFD' which must properly restore close-on-exec on
duplicated fds.
R=golang-dev, bradfitz, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/
6445081
»»»
Alan Donovan [Fri, 21 Sep 2012 19:55:00 +0000 (05:55 +1000)]
[release-branch.go1] runtime/pprof: emit end-of-log marker at end of CPU profile.
««« backport
92e962e13197
runtime/pprof: emit end-of-log marker at end of CPU profile.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
6489065
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:55:00 +0000 (05:55 +1000)]
[release-branch.go1] doc: fix typo in Concurrency Patterns article
««« backport
29990fa0951c
doc: fix typo in Concurrency Patterns article
Fixes #3178.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6506064
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:54:59 +0000 (05:54 +1000)]
[release-branch.go1] doc: link to references from docs page
««« backport
bbf84838fd24
doc: link to references from docs page
Fixes #3667.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6492078
»»»
Patrick Crosby [Fri, 21 Sep 2012 19:54:59 +0000 (05:54 +1000)]
[release-branch.go1] net/http/pprof: updated documentation (run an http server)
««« backport
4965beed4492
net/http/pprof: updated documentation (run an http server)
Added instructions for starting an http server
to the godoc header for this package. With the old
instructions, the example "go tool pprof..." commands
wouldn't work unless you happen to be running an http
server on port 6060 in your application.
R=golang-dev, minux.ma, adg, giacomo.tartari
CC=golang-dev
https://golang.org/cl/
6483049
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:54:59 +0000 (05:54 +1000)]
[release-branch.go1] runtime: increase stack frame during cgo call on windows/amd64
Russ Cox [Fri, 21 Sep 2012 19:54:58 +0000 (05:54 +1000)]
[release-branch.go1] cmd/gc: fix PkgPath of byte, rune types
««« backport
272e1dd72156
cmd/gc: fix PkgPath of byte, rune types
Fixes #3853.
R=ken2
CC=golang-dev
https://golang.org/cl/
6492071
»»»
Russ Cox [Fri, 21 Sep 2012 19:54:58 +0000 (05:54 +1000)]
[release-branch.go1] A+C: add Uriel Mangado (individual CLA)
««« backport
42966db90999
A+C: add Uriel Mangado (individual CLA)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6492070
»»»
Shenghou Ma [Fri, 21 Sep 2012 19:54:57 +0000 (05:54 +1000)]
[release-branch.go1] cmd/ld: support zero-filled section for Mach-O files
««« backport
b4b475a9a3c8
cmd/ld: support zero-filled section for Mach-O files
R=golang-dev, r, dave, rsc
CC=golang-dev
https://golang.org/cl/
6492069
»»»
Daniel Morsing [Fri, 21 Sep 2012 19:54:57 +0000 (05:54 +1000)]
[release-branch.go1] cmd/gc: Suggest *T in error for x.(T) if it would work.
««« backport
33a62d86ca2f
cmd/gc: Suggest *T in error for x.(T) if it would work.
Accomplished by synchronizing the formatting of conversion errors between typecheck.c and subr.c
Fixes #3984.
R=golang-dev, remyoudompheng, rsc
CC=golang-dev
https://golang.org/cl/
6500064
»»»
Russ Cox [Fri, 21 Sep 2012 19:54:56 +0000 (05:54 +1000)]
[release-branch.go1] cmd/go: be clear that import loops are bad
««« backport
f697709b5082
cmd/go: be clear that import loops are bad
There was mail on golang-nuts a few weeks ago
from someone who understood the message perfectly
and knew he had a cyclic dependency but assumed
that Go, like Python or Java, was supposed to handle it.
R=golang-dev, bradfitz, dave
CC=golang-dev
https://golang.org/cl/
6488069
»»»
Russ Cox [Fri, 21 Sep 2012 19:54:56 +0000 (05:54 +1000)]
[release-branch.go1] A+C: 0/2 on spelling email addresses correctly
««« backport
30d7ee9da51d
A+C: 0/2 on spelling email addresses correctly
TBR=r
CC=golang-dev
https://golang.org/cl/
6497067
»»»
Russ Cox [Fri, 21 Sep 2012 19:54:55 +0000 (05:54 +1000)]
[release-branch.go1] A+C: Patrick Higgins, Shawn Smith (individual CLA)
««« backport
f8b14fa18a7f
A+C: Patrick Higgins, Shawn Smith (individual CLA)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6492067
»»»
Ivan Krasin [Fri, 21 Sep 2012 19:54:55 +0000 (05:54 +1000)]
[release-branch.go1] runtime: add vdso support for linux/amd64. Fixes issue 1933.
««« backport
56ea40aac72b
runtime: add vdso support for linux/amd64. Fixes issue 1933.
R=iant, imkrasin, krasin, iant, minux.ma, rsc, nigeltao, r, fullung
CC=golang-dev
https://golang.org/cl/
6454046
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:54:55 +0000 (05:54 +1000)]
[release-branch.go1] cmd/gc: fix escape analysis bug with variable capture in loops.
Russ Cox [Fri, 21 Sep 2012 19:54:54 +0000 (05:54 +1000)]
[release-branch.go1] runtime/pprof: restore articles in type doc comments
««« backport
b57b5be5a32c
runtime/pprof: restore articles in type doc comments
Reverts part of CL
6460082 .
If a doc comment describes a type by explaining the
meaning of one instance of the type, a leading article
is fine and makes the text less awkward.
Compare:
// A dog is a kind of animal.
// Dog is a kind of animal.
R=golang-dev, dsymonds, dvyukov, r
CC=golang-dev
https://golang.org/cl/
6494066
»»»
Robert Griesemer [Fri, 21 Sep 2012 19:54:53 +0000 (05:54 +1000)]
[release-branch.go1] A+C: added Alan Donovan (Google corporate license)
««« backport
e6da0262840c
A+C: added Alan Donovan (Google corporate license)
R=adg, bradfitz
CC=golang-dev
https://golang.org/cl/
6490063
»»»
Robert Griesemer [Fri, 21 Sep 2012 19:54:53 +0000 (05:54 +1000)]
[release-branch.go1] go/scanner: don't print garbage if there's no error
««« backport
9415be2ba652
go/scanner: don't print garbage if there's no error
R=r
CC=golang-dev
https://golang.org/cl/
6489059
»»»
Rob Pike [Fri, 21 Sep 2012 19:54:52 +0000 (05:54 +1000)]
[release-branch.go1] path: improve documentation for Dir
««« backport
735963d94dad
path: improve documentation for Dir
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
6495059
»»»
Dmitriy Vyukov [Fri, 21 Sep 2012 19:54:52 +0000 (05:54 +1000)]
[release-branch.go1] net/rpc: protect serviceMap with RWMutex
««« backport
fa3b2ef0129d
net/rpc: protect serviceMap with RWMutex
R=r, r
CC=golang-dev
https://golang.org/cl/
6494044
»»»
Rob Pike [Fri, 21 Sep 2012 19:54:51 +0000 (05:54 +1000)]
[release-branch.go1] go_spec.html: clarify rune and string literals
««« backport
8afe25accb81
go_spec.html: clarify rune and string literals
No changes to the meaning, just clearer language and more
examples, including illegal rune and string literals.
In particular, "character literal" and "character constant"
are now called "rune literal" and "rune constant" and the
word "character" always refers to the source text, not
program values.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/
6448137
»»»
Andrew Balholm [Fri, 21 Sep 2012 19:54:51 +0000 (05:54 +1000)]
[release-branch.go1] cmd/yacc/units.txt: fix exchange rates
««« backport
008d345d81e0
cmd/yacc/units.txt: fix exchange rates
In the example "units" program for goyacc, the exchange rates were
reciprocals of the correct amounts. Turn them right-side-up
and update them to current figures.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6495053
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:54:51 +0000 (05:54 +1000)]
[release-branch.go1] cmd/ld: handle a special case of scattered relocation 2/1 on Darwin/386
Andrew Gerrand [Fri, 21 Sep 2012 19:54:50 +0000 (05:54 +1000)]
[release-branch.go1] A+C: add Patrick Crosby (individual contributor)
««« backport
3181682928c9
A+C: add Patrick Crosby (individual contributor)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
6489049
»»»
Dave Cheney [Fri, 21 Sep 2012 19:54:50 +0000 (05:54 +1000)]
[release-branch.go1] net/http/httputil: fix race in DumpRequestOut
««« backport
3b78b41a4b50
net/http/httputil: fix race in DumpRequestOut
Fixes #3892.
Swapping the order of the writers inside the MultiWriter ensures
the request will be written to buf before http.ReadRequest completes.
The fencedBuffer is not required to make the test pass on
any machine that I have access too, but as the buf is shared
across goroutines, I think it is necessary for correctness.
R=bradfitz, fullung, franciscossouza
CC=golang-dev
https://golang.org/cl/
6483061
»»»
Mikio Hara [Fri, 21 Sep 2012 19:54:49 +0000 (05:54 +1000)]
[release-branch.go1] net: delete unused socket-level option helpers
««« backport
66bdff5b0b29
net: delete unused socket-level option helpers
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
6499043
»»»
Tobias Columbus [Fri, 21 Sep 2012 19:54:49 +0000 (05:54 +1000)]
[release-branch.go1] misc/vim: fix for autocompletion
««« backport
7fb0e868dc39
misc/vim: fix for autocompletion
Vim autocompletion respects the $GOPATH variable and does not
ignore dashes ('-'), dots ('.') and underscores ('_') like found
in many remote packages.
Environment variable $GOROOT is determined by calling
'go env GOROOT' instead of relying on the user's environment
variables.
Fixes #3876
Fixes #3882
R=golang-dev, franciscossouza, dsymonds, minux.ma
CC=golang-dev
https://golang.org/cl/
6443151
»»»
Shenghou Ma [Fri, 21 Sep 2012 19:54:48 +0000 (05:54 +1000)]
[release-branch.go1] C: add Tobias Columbus's email used in Rietveld
««« backport
a95c69098e45
C: add Tobias Columbus's email used in Rietveld
R=golang-dev, tobias.columbus, bradfitz
CC=golang-dev
https://golang.org/cl/
6483058
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:54:48 +0000 (05:54 +1000)]
[release-branch.go1] net/http: send an explicit zero Content-Length when Handler never Writes
Julien Schmidt [Fri, 21 Sep 2012 19:54:47 +0000 (05:54 +1000)]
[release-branch.go1] database/sql: stop reuse of bad connections
««« backport
b397807815a6
database/sql: stop reuse of bad connections
The second parameter for sql.putConn() (err) is always nil. As a result bad
connections are reused, even if the driver returns an driver.ErrBadConn.
Unsing a pointer to err instead achievs the desired behavior.
See http://code.google.com/p/go/issues/detail?id=3777 for more details.
Fixes #3777.
R=golang-dev, dave, bradfitz, jameshuachow, BlakeSGentry
CC=golang-dev
https://golang.org/cl/
6348069
»»»
Brad Fitzpatrick [Fri, 21 Sep 2012 19:54:47 +0000 (05:54 +1000)]
[release-branch.go1] A+C: Add Julien Schmidt (Individual CLA)
««« backport
d80f2c4b0445
A+C: Add Julien Schmidt (Individual CLA)
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6459050
»»»
David Symonds [Fri, 21 Sep 2012 19:54:46 +0000 (05:54 +1000)]
[release-branch.go1] A+C: Tobias Columbus (individual CLA)
««« backport
29671078c8aa
A+C: Tobias Columbus (individual CLA)
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6480058
»»»
Adam Langley [Fri, 21 Sep 2012 19:54:46 +0000 (05:54 +1000)]
[release-branch.go1] crypto/tls: return better error message in the case of an SSLv2 handshake.
««« backport
8048fe8f6f4b
crypto/tls: return better error message in the case of an SSLv2 handshake.
Update #3930
Return a better error message in this situation.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6474055
»»»
Shenghou Ma [Fri, 21 Sep 2012 19:54:45 +0000 (05:54 +1000)]
[release-branch.go1] cmd/6g: fix float32/64->uint64 conversion
««« backport
5972fe3f4418
cmd/6g: fix float32/64->uint64 conversion
CVTSS2SQ's rounding mode is controlled by the RC field of MXCSR;
as we specifically need truncate semantic, we should use CVTTSS2SQ.
Fixes #3804.
R=rsc, r
CC=golang-dev
https://golang.org/cl/
6352079
»»»
Shenghou Ma [Fri, 21 Sep 2012 19:54:45 +0000 (05:54 +1000)]
[release-branch.go1] cmd/ld: set ELF header flags for our Linux/ARM binary
««« backport
1f9e023245d4
cmd/ld: set ELF header flags for our Linux/ARM binary
To make it more compliant.
This won't affect the behavior of running on OABI-only kernels.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6475044
»»»
Rob Pike [Fri, 21 Sep 2012 19:54:44 +0000 (05:54 +1000)]
[release-branch.go1] C+A: add Carlos Castillo cookieo9@gmail.com (individual CLA)
««« backport
341a5be3052f
C+A: add Carlos Castillo cookieo9@gmail.com (individual CLA)
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6479045
»»»
Rob Pike [Fri, 21 Sep 2012 19:54:44 +0000 (05:54 +1000)]
[release-branch.go1] time: avoid data race in abs
««« backport
b2855a1654b6
time: avoid data race in abs
Fixes #3967.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
6460115
»»»
Dave Borowitz [Fri, 21 Sep 2012 19:54:43 +0000 (05:54 +1000)]
[release-branch.go1] net/http: Set TLSClientConfig.ServerName on every HTTP request.
««« backport
8d39afcd18b1
net/http: Set TLSClientConfig.ServerName on every HTTP request.
This makes SNI "just work" for callers using the standard http.Client.
Since we now have a test that depends on the httptest.Server cert, change
the cert to be a CA (keeping all other fields the same).
R=bradfitz
CC=agl, dsymonds, gobot, golang-dev
https://golang.org/cl/
6448154
»»»
Brad Fitzpatrick [Fri, 21 Sep 2012 19:54:43 +0000 (05:54 +1000)]
[release-branch.go1] CONTRIBUTORS: Add Dave Borowitz (Google CLA)
««« backport
52a0395d0e81
CONTRIBUTORS: Add Dave Borowitz (Google CLA)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6484046
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:54:42 +0000 (05:54 +1000)]
[release-branch.go1] A+C: add Joakim Sernbrant
««« backport
dd0a97869e4d
A+C: add Joakim Sernbrant
R=golang-dev, nigeltao
CC=golang-dev
https://golang.org/cl/
6476043
»»»
Dave Cheney [Fri, 21 Sep 2012 19:54:42 +0000 (05:54 +1000)]
[release-branch.go1] net/http: fix misplaced defer and example
««« backport
989f373141cc
net/http: fix misplaced defer and example
Moves the defer (again).
Also, correct the example documentation to match.
R=r, robert.hencke, iant, dsymonds, bradfitz
CC=golang-dev
https://golang.org/cl/
6458158
»»»
Dave Cheney [Fri, 21 Sep 2012 19:54:41 +0000 (05:54 +1000)]
[release-branch.go1] os: fix data race on Process.done
««« backport
4fc1c61c3c2c
os: fix data race on Process.done
Fixes #3969.
R=dvyukov, r, alex.brainman, minux.ma
CC=golang-dev
https://golang.org/cl/
6462081
»»»
Shenghou Ma [Fri, 21 Sep 2012 19:54:41 +0000 (05:54 +1000)]
[release-branch.go1] doc/install: we only need command line tools for Xcode on OS X
««« backport
975bfb6bbac4
doc/install: we only need command line tools for Xcode on OS X
Fixes #3973.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6464078
»»»
Volker Dobler [Fri, 21 Sep 2012 19:54:40 +0000 (05:54 +1000)]
[release-branch.go1] strconv: consistent parameter names for ParseUint
««« backport
52813bdd69bb
strconv: consistent parameter names for ParseUint
If ParseUint is like ParseInt it should have the same parameter
names, thus rename b to to base as in ParseInt's documentation.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
6453152
»»»
Dmitriy Vyukov [Fri, 21 Sep 2012 19:54:40 +0000 (05:54 +1000)]
[release-branch.go1] net/http: reduce mutex contention
««« backport
43568ec5cf55
net/http: reduce mutex contention
benchmark old ns/op new ns/op delta
BenchmarkClientServerParallel 155909 154454 -0.93%
BenchmarkClientServerParallel-2 86012 82986 -3.52%
BenchmarkClientServerParallel-4 70211 55168 -21.43%
BenchmarkClientServerParallel-8 80755 47862 -40.73%
BenchmarkClientServerParallel-12 77753 51478 -33.79%
BenchmarkClientServerParallel-16 77920 50278 -35.47%
The benchmark is https://golang.org/cl/
6441134
The machine is 2 x 4 HT cores (16 HW threads total).
Fixes #3946.
Now contention moves to net.pollServer.AddFD().
R=bradfitz
CC=bradfitz, dave, dsymonds, gobot, golang-dev, remyoudompheng
https://golang.org/cl/
6454142
»»»
Alex Brainman [Fri, 21 Sep 2012 19:54:39 +0000 (05:54 +1000)]
[release-branch.go1] pprof: make it work on windows again
««« backport
7c5f4dad8fae
pprof: make it work on windows again
- pprof is a perl script, so go command should invoke
perl instead of trying to run pprof directly;
- pprof should use "go tool nm" unconditionally on windows,
no one else can extract symbols from Go program;
- pprof should use "go tool nm" instead of "6nm".
Fixes #3879.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6445082
»»»
Rob Pike [Fri, 21 Sep 2012 19:54:39 +0000 (05:54 +1000)]
[release-branch.go1] all: move defers to after error check to avoid nil indirection
««« backport
8f0c8f604ee0
all: move defers to after error check to avoid nil indirection
Only affects some tests and none seem likely to be problematic, but let's fix them.
Fixes #3971.
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6463060
»»»
Robert Griesemer [Fri, 21 Sep 2012 19:54:38 +0000 (05:54 +1000)]
[release-branch.go1] go_spec: unary + and - are also defined for complex types
««« backport
1546a1ef0102
go_spec: unary + and - are also defined for complex types
R=r, rsc, iant, ken, iant
CC=golang-dev
https://golang.org/cl/
6450150
»»»
Alex Brainman [Fri, 21 Sep 2012 19:54:38 +0000 (05:54 +1000)]
[release-branch.go1] test: change run.go to ignore \r in compiler output (fixes windows build)
««« backport
b86e4ec1dd66
test: change run.go to ignore \r in compiler output (fixes windows build)
R=golang-dev, dave, minux.ma, remyoudompheng
CC=golang-dev
https://golang.org/cl/
6460093
»»»
Daniel Morsing [Fri, 21 Sep 2012 19:54:37 +0000 (05:54 +1000)]
[release-branch.go1] cmd/gc: Don't claim type assertion would help when it wont.
««« backport
b76339cc168a
cmd/gc: Don't claim type assertion would help when it wont.
Fixes #3465.
R=golang-dev, rsc, remyoudompheng, iant
CC=golang-dev
https://golang.org/cl/
6448097
»»»
Ian Lance Taylor [Fri, 21 Sep 2012 19:54:37 +0000 (05:54 +1000)]
[release-branch.go1] A+C: Andrew Lutomirski (individual CLA)
««« backport
8714f560df67
A+C: Andrew Lutomirski (individual CLA)
Wrote code that was the basis for
https://golang.org/cl/
6454046 /
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6450142
»»»
Dmitriy Vyukov [Fri, 21 Sep 2012 19:54:36 +0000 (05:54 +1000)]
[release-branch.go1] runtime/pprof: fix comments
««« backport
e7e49c318134
runtime/pprof: fix comments
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/
6460082
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:54:36 +0000 (05:54 +1000)]
[release-branch.go1] text/template/parse: fix bug handling /*/
Shenghou Ma [Fri, 21 Sep 2012 19:54:36 +0000 (05:54 +1000)]
[release-branch.go1] runtime: use sched_getaffinity for runtime.NumCPU() on Linux
««« backport
3532ab6bf5be
runtime: use sched_getaffinity for runtime.NumCPU() on Linux
Fixes #3921.
R=iant
CC=golang-dev
https://golang.org/cl/
6448132
»»»
Rémy Oudompheng [Fri, 21 Sep 2012 19:54:35 +0000 (05:54 +1000)]
[release-branch.go1] go/build: correct shouldBuild bug reading whole contents of file.
««« backport
307fafbc2d6f
go/build: correct shouldBuild bug reading whole contents of file.
It was caused by bytes.TrimSpace being able to return a nil
slice.
Fixes #3914.
R=golang-dev, r
CC=golang-dev, remy
https://golang.org/cl/
6458091
»»»
Robert Griesemer [Fri, 21 Sep 2012 19:54:35 +0000 (05:54 +1000)]
[release-branch.go1] spec: clarify evaluation order
««« backport
6beada1bf6c2
spec: clarify evaluation order
Fixes #3852.
R=r, rsc, iant, ken
CC=golang-dev
https://golang.org/cl/
6441102
»»»
Charles L. Dorian [Fri, 21 Sep 2012 19:54:34 +0000 (05:54 +1000)]
[release-branch.go1] math: update definition of NaN in assembly language files
««« backport
f26c1758e269
math: update definition of NaN in assembly language files
R=rsc, minux.ma, golang-dev, nigeltao
CC=golang-dev
https://golang.org/cl/
6461047
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:54:34 +0000 (05:54 +1000)]
[release-branch.go1] doc: add 'Get Started with Go' video, remove some older videos
««« backport
77b1cdceb2b2
doc: add 'Get Started with Go' video, remove some older videos
(I also updated the wiki's GoTalks page with all the latest videos.)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
6441113
»»»
Andrew Gerrand [Fri, 21 Sep 2012 19:54:33 +0000 (05:54 +1000)]
[release-branch.go1] io: amend ReaderFrom doc as per r's comment
««« backport
5d3aaf0b717e
io: amend ReaderFrom doc as per r's comment
R=r
CC=golang-dev
https://golang.org/cl/
6458097
»»»