- 11 Oct, 2011 5 commits
-
-
Russ Cox authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/5229052
-
Hector Chu authored
gp->m can go from non-nil to nil when it re-enters schedule(). R=golang-dev CC=golang-dev, rsc https://golang.org/cl/5245042
-
Chris Farmiloe authored
Socket descriptors are not closed when fd.connect() fails during generic socket creation. After a connection failure [ECONNREFUSED] descriptors are left in SYN_SENT state indefinitely (unless they get an explicit RST). Repeated failed connections will eventually cause your program to hit the user/system max-open-files limit. Fixes #2349. R=golang-dev, mikioh.mikioh CC=golang-dev https://golang.org/cl/5229047
-
Brad Fitzpatrick authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5252050
-
Andrew Gerrand authored
gotest: document examples go/doc: tidy comment R=golang-dev, r CC=golang-dev https://golang.org/cl/5235055
-
- 10 Oct, 2011 5 commits
-
-
Rob Pike authored
Plus the need for a second in-memory buffer. Plays a bit fast and loose with the contents of a byte buffer, but saves a potentially huge allocation. The gotest run is about 10% faster overall after this change. R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/5236043
-
Mikio Hara authored
R=adg CC=golang-dev https://golang.org/cl/5237058
-
Nigel Tao authored
R=mikesamuel, andybalholm CC=golang-dev https://golang.org/cl/5218041
-
Brad Fitzpatrick authored
R=rsc CC=golang-dev https://golang.org/cl/5228041
-
Andrew Gerrand authored
Fixes #2351. R=r, bradfitz CC=golang-dev https://golang.org/cl/5235056
-
- 08 Oct, 2011 5 commits
-
-
Andrew Gerrand authored
R=golang-dev, rsc, iant, robert.hencke CC=golang-dev https://golang.org/cl/5235041
-
Luuk van Dijk authored
string literals used as package qualifiers are now prefixed with '@' which obviates the need for the extra ':' before tags. R=rsc, gri, lvd CC=golang-dev https://golang.org/cl/5129057
-
Adam Langley authored
R=bradfitz CC=golang-dev https://golang.org/cl/5244042
-
Adam Langley authored
With this in place, a TLS server is capable of selecting the correct certificate based on the client's ServerNameIndication extension. The need to call Config.BuildNameToCertificate is unfortunate, but adding a sync.Once to the Config structure made it uncopyable and I felt that was too high a price to pay. Parsing the leaf certificates in each handshake was too inefficient to consider. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/5151048
-
Joel Sing authored
Implement a locking model based on the current linux model - a tri-state mutex with active spinning, passive spinning and sleeping. R=golang-dev, dvyukov, rsc CC=golang-dev https://golang.org/cl/4974043
-
- 07 Oct, 2011 10 commits
-
-
Robert Griesemer authored
R=r CC=golang-dev https://golang.org/cl/5235043
-
Rob Pike authored
t.ns was hanging after recent changes. R=gri, rsc CC=golang-dev https://golang.org/cl/5237044
-
Robert Griesemer authored
Was never working correctly when executing from the command-line. R=r CC=golang-dev https://golang.org/cl/5236042
-
Robert Griesemer authored
R=r CC=golang-dev https://golang.org/cl/5235042
-
Mikio Hara authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5237041
-
Brad Fitzpatrick authored
R=r, rsc, alex.brainman CC=golang-dev https://golang.org/cl/5234041
-
Robert Griesemer authored
Also: Fewer calls to flush for faster processing (once per identifier or error instead of once per token). R=golang-dev, r CC=golang-dev https://golang.org/cl/5236041
-
Nigel Tao authored
I accidentally left it off of https://golang.org/cl/5132048/. R=r CC=golang-dev https://golang.org/cl/5202042
-
Robert Griesemer authored
FileSet deserialization (Read) uses its own instance of a gob decoder. If the FileSet data may be followed by other data on the reader, Read may consume too much data that is lost unless the reader implements ReadByte. Also: Minor internal refactoring for symmetry. R=r CC=golang-dev https://golang.org/cl/5233041
-
Robert Griesemer authored
Also: Minor refactoring for cleanliness and symmetry. Fixes #2286. R=r CC=golang-dev https://golang.org/cl/5232041
-
- 06 Oct, 2011 15 commits
-
-
Robert Griesemer authored
This is a semantic but no API change. It is a cleaner implementation of pure filtering. Applications that need function bodies stripped can easily do this them- selves. R=rsc CC=golang-dev https://golang.org/cl/5206046
-
Robert Griesemer authored
Removed the URL form parameter "f=text" in favor of a more flexible mode parameter "m" which now accepts a list of mode flags as documented in doc.go. Fixes #1784. R=rsc CC=golang-dev https://golang.org/cl/5227041
-
Andrew Gerrand authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5231041
-
Andrew Gerrand authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/5207044
-
Rob Pike authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/5208042
-
Rob Pike authored
R=golang-dev, rsc, dsymonds CC=golang-dev https://golang.org/cl/5209045
-
Andrew Gerrand authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5211045
-
Andrew Gerrand authored
This CL introduces the go.Example type and go.Examples functions that are used to represent and extract code samples from Go source. They should be of the form: // Output of this function. func ExampleFoo() { fmt.Println("Output of this function.") } It also modifies godoc to read example code from _test.go files, and include them in the HTML output with JavaScript-driven toggles. It also implements testing of example functions with gotest. The stdout/stderr is compared against the output comment on the function. This CL includes examples for the sort.Ints function and the sort.SortInts type. After patching this CL in and re-building go/doc and godoc, try godoc -http=localhost:6060 and visit http://localhost:6060/pkg/sort/ R=gri, r, rsc CC=golang-dev https://golang.org/cl/5137041
-
Brad Fitzpatrick authored
Allows passing extra fds to the child process. Fixes #2329 R=rsc, dsymonds CC=golang-dev https://golang.org/cl/5162050
-
Rob Pike authored
Fixes #2336. R=golang-dev, dsymonds, rsc CC=golang-dev https://golang.org/cl/5222042
-
Rob Pike authored
R=golang-dev, bradfitz, dsymonds, gri CC=golang-dev https://golang.org/cl/5223043
-
Miki Tebeka authored
See discussion at https://groups.google.com/d/topic/golang-dev/RAKiqi44GEU/discussion R=golang-dev, bradfitz, dvyukov, rogpeppe, r, r, borman CC=golang-dev https://golang.org/cl/5071044
-
Rob Pike authored
R=golang-dev, gri CC=golang-dev, miki.tebeka https://golang.org/cl/5225042
-
Dmitriy Vyukov authored
Linux/amd64, 2 x Intel Xeon E5620, 8 HT cores, 2.40GHz benchmark old ns/op new ns/op delta BenchmarkFinalizer 420.00 261.00 -37.86% BenchmarkFinalizer-2 985.00 201.00 -79.59% BenchmarkFinalizer-4 1077.00 244.00 -77.34% BenchmarkFinalizer-8 1155.00 180.00 -84.42% BenchmarkFinalizer-16 1182.00 184.00 -84.43% BenchmarkFinalizerRun 2128.00 1378.00 -35.24% BenchmarkFinalizerRun-2 1655.00 1418.00 -14.32% BenchmarkFinalizerRun-4 1634.00 1522.00 -6.85% BenchmarkFinalizerRun-8 2213.00 1581.00 -28.56% BenchmarkFinalizerRun-16 2424.00 1599.00 -34.03% Darwin/amd64, Intel L9600, 2 cores, 2.13GHz benchmark old ns/op new ns/op delta BenchmarkChanCreation 1451.00 926.00 -36.18% BenchmarkChanCreation-2 3124.00 1412.00 -54.80% BenchmarkChanCreation-4 6121.00 2628.00 -57.07% BenchmarkFinalizer 684.00 420.00 -38.60% BenchmarkFinalizer-2 11195.00 398.00 -96.44% BenchmarkFinalizer-4 15862.00 654.00 -95.88% BenchmarkFinalizerRun 2025.00 1397.00 -31.01% BenchmarkFinalizerRun-2 3920.00 1447.00 -63.09% BenchmarkFinalizerRun-4 9471.00 1545.00 -83.69% R=golang-dev, cw, rsc CC=golang-dev https://golang.org/cl/4963057
-
Russ Cox authored
The malloc sample trigger was not being set in a new m, so the first allocation in each new m - the goroutine structure - was being sampled with probability 1 instead of probability sizeof(G)/rate, an oversampling of about 5000x for the default rate of 1 MB. This bug made pprof graphs show far more G allocations than there actually were. R=golang-dev, r CC=golang-dev https://golang.org/cl/5224041
-