- 24 May, 2013 2 commits
-
-
Ian Lance Taylor authored
Fixes #5548. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/9643044
-
Rob Pike authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/9656045
-
- 23 May, 2013 8 commits
-
-
Frederick Kelly Mayle III authored
benchmark old ns/op new ns/op delta BenchmarkMapIter 191 190 -0.52% BenchmarkMapIterEmpty 22 4 -78.96% R=golang-dev, minux.ma, dvyukov, iant, khr CC=golang-dev https://golang.org/cl/9637043
-
Brad Fitzpatrick authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/9669044
-
Brad Fitzpatrick authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/9695045
-
Dominik Honnef authored
Operations like gofmt and go-remove-unused-imports delete entire lines of text. Previously this put them on the kill-ring, negatively affecting user experience. R=adonovan CC=gobot, golang-dev https://golang.org/cl/9605043
-
Daniel Morsing authored
This only affects calls where both ReaderFrom and WriterTo are implemented. WriterTo can issue one large write, while ReaderFrom must Read until EOF, potentially reallocating when out of memory. With one large Write, the Writer only needs to allocate once. This also helps in ioutil.Discard since we can avoid copying memory when the Reader implements WriterTo. R=golang-dev, dsymonds, remyoudompheng, bradfitz CC=golang-dev, minux.ma https://golang.org/cl/9462044
-
Nan Deng authored
This change contains an implementation of the RSASSA-PSS signature algorithm described in RFC 3447. R=agl, agl CC=gobot, golang-dev, r https://golang.org/cl/9438043
-
Mikio Hara authored
This CL adds missing IPv6 socket options which are required to control IPv6 as described in RFC 3493, RFC 3542. Update #5538 R=golang-dev, dave, iant CC=golang-dev https://golang.org/cl/9373046
-
Alex Brainman authored
Fixes #5042. R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/7786047
-
- 22 May, 2013 21 commits
-
-
Francesc Campoy authored
R=adg, bradfitz, r CC=golang-dev https://golang.org/cl/9626045
-
Robert Griesemer authored
1) go/doc: - create correct ast.FuncType - use more commonly used variable names in a test case 2) make ast.FuncType.Pos robust in case of incorrect ASTs R=golang-dev CC=golang-dev https://golang.org/cl/9651044
-
Adam Langley authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/9678043
-
Rémy Oudompheng authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/9676043
-
Shenghou Ma authored
fix test failure of go.tools sub-repo on NetBSD. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/9662044
-
Shenghou Ma authored
Fixes #5532. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/9672044
-
Robert Griesemer authored
As pointed out by adonovan. R=golang-dev, adonovan CC=golang-dev https://golang.org/cl/9662045
-
Ian Lance Taylor authored
I will try again for 4.8.2. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/9663045
-
Rob Pike authored
Fixes #5541. This time for sure. R=golang-dev, minux.ma, iant CC=golang-dev https://golang.org/cl/9668043
-
Daniel Morsing authored
If a union contains a pointer, it will mess up the garbage collector, causing memory corruption. R=golang-dev, dave, nightlyone, adg, dvyukov, bradfitz, minux.ma, r, iant CC=golang-dev https://golang.org/cl/8469043
-
Dmitriy Vyukov authored
This is needed for preemptive scheduler, because the goroutine can be preempted at surprising points. R=golang-dev, iant CC=golang-dev https://golang.org/cl/9376043
-
Dmitriy Vyukov authored
When cgo is used, runtime creates an additional M to handle callbacks on threads not created by Go. This effectively disabled deadlock detection, which is a right thing, because Go program can be blocked and only serve callbacks on external threads. This also disables deadlock detection under race detector, because it happens to use cgo. With this change the additional M is created lazily on first cgo call. So deadlock detector works for programs that import "C", "net" or "net/http/pprof" but do not use them in fact. Also fixes deadlock detector under race detector. It should be fine to create the M later, because C code can not call into Go before first cgo call, because C code does not know when Go initialization has completed. So a Go program need to call into C first either to create an external thread, or notify a thread created in global ctor that Go initialization has completed. Fixes #4973. Fixes #5475. R=golang-dev, minux.ma, iant CC=golang-dev https://golang.org/cl/9303046
-
Shenghou Ma authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/9662043
-
Rob Pike authored
The original code was correct. The count returned must be the length of the input slice, not the length of the formatted message. ««« original CL description log/syslog: report errors from Fprintf Thanks to chiparus for identifying this. Fixes #5541. R=golang-dev, iant CC=golang-dev https://golang.org/cl/9658043 »»» R=golang-dev, iant CC=golang-dev https://golang.org/cl/9644044
-
Dmitriy Vyukov authored
Currently per-sizeclass stats are lost for destroyed MCache's. This patch fixes this. Also, only update mstats.heap_alloc on heap operations, because that's the only stat that needs to be promptly updated. Everything else needs to be up-to-date only in ReadMemStats(). R=golang-dev, remyoudompheng, dave, iant CC=golang-dev https://golang.org/cl/9207047
-
Rob Pike authored
Thanks to chiparus for identifying this. Fixes #5541. R=golang-dev, iant CC=golang-dev https://golang.org/cl/9658043
-
Shenghou Ma authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/9392049
-
Dmitriy Vyukov authored
The nlistmin/size thresholds are copied from tcmalloc, but are unnecesary for Go malloc. We do not do explicit frees into MCache. For sparse cases when we do (mainly hashmap), simpler logic will do. R=rsc, dave, iant CC=gobot, golang-dev, r, remyoudompheng https://golang.org/cl/9373043
-
Rob Pike authored
Also delete the special case for exp, which isn't necessary any more. Fixes #5529. R=rsc, nightlyone CC=golang-dev https://golang.org/cl/9611048
-
David Symonds authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/9564044
-
Brad Fitzpatrick authored
R=dsymonds CC=gobot, golang-dev https://golang.org/cl/9570043
-
- 21 May, 2013 9 commits
-
-
Brad Fitzpatrick authored
A bufio.Writer.Flush marks the usual end of a Writer's life. Recycle its internal buffer on those explicit flushes, but not on normal, as-needed internal flushes. benchmark old ns/op new ns/op delta BenchmarkWriterEmpty 1959 727 -62.89% benchmark old allocs new allocs delta BenchmarkWriterEmpty 2 1 -50.00% benchmark old bytes new bytes delta BenchmarkWriterEmpty 4215 83 -98.03% R=gri, iant CC=gobot, golang-dev, voidlogic7 https://golang.org/cl/9459044
-
Brad Fitzpatrick authored
Works around a bug in nginx: http://trac.nginx.org/nginx/ticket/358 Fixes #5522 R=iant CC=gobot, golang-dev https://golang.org/cl/9627043
-
Brad Fitzpatrick authored
This should have been removed in 45c12efb4635. Not a correctness issue, but unnecessary work. This CL also adds paranoia checks in removeDep so this doesn't happen again. Fixes #5502 R=adg CC=gobot, golang-dev, google https://golang.org/cl/9543043
-
Brad Fitzpatrick authored
undo CL 8478044 / 0d28fd55e721 Lack of consensus. ««« original CL description time: add Time.FormatAppend This is a version of Time.Format that doesn't require allocation. Fixes #5192 Update #5195 R=r CC=gobot, golang-dev https://golang.org/cl/8478044 »»» R=r CC=golang-dev https://golang.org/cl/9462049
-
Daniel Morsing authored
Fixes #5172. R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/9614044
-
Shenghou Ma authored
Fixes #5479. R=golang-dev, dave CC=golang-dev https://golang.org/cl/9416047
-
Brad Fitzpatrick authored
R=minux.ma CC=golang-dev https://golang.org/cl/9459047
-
Brad Fitzpatrick authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/9459046
-
Adam Langley authored
This isn't clearly a bug on Go's part, but it triggers a bug in Firefox which means that crypto/tls and net/http cannot be wired up together unless NextProtos includes "http/1.1". When net/http sets up the tls.Config, it does this and so works fine. But anyone setting up the tls.Config themselves will hit the Firefox bug. Fixes #5445. R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/9539045
-