- 04 Oct, 2013 5 commits
-
-
Keith Randall authored
R=golang-dev, cshapiro, iant CC=golang-dev https://golang.org/cl/14405043
-
Ian Lance Taylor authored
The gccgo implementation mishandled calling Interface on a value created by MakeFunc. R=golang-dev, r CC=golang-dev https://golang.org/cl/14401043
-
Mikio Hara authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/14379043
-
Alex Brainman authored
Fixes #6417 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/14231047
-
Andrew Gerrand authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/14375043
-
- 03 Oct, 2013 17 commits
-
-
Andrew Gerrand authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/14364043
-
Robert Griesemer authored
No semantic spec changes. R=r CC=golang-dev https://golang.org/cl/14363043
-
Ian Lance Taylor authored
Failure occurred when using reflect.Call to pass a func value following a non-pointer value. R=golang-dev, r CC=golang-dev https://golang.org/cl/14186043
-
Robert Hencke authored
R=golang-dev, mirtchovski, r CC=golang-dev https://golang.org/cl/14227043
-
Robert Hencke authored
Full credit goes to gri and rsc for their explanations. R=golang-dev, r CC=golang-dev https://golang.org/cl/14229043
-
Russ Cox authored
That page may be fine for experienced Go programmers but it's not really targeting new programmers. There's too much we don't know yet. R=golang-dev, r CC=golang-dev https://golang.org/cl/14345043
-
Rob Pike authored
Explain for those unfamiliar with twos-complement arithmetic how to implement negation of signed positive constant. Fixes #6408. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/14267044
-
Russ Cox authored
Update #5429 R=golang-dev, r, dan.kortschak CC=golang-dev https://golang.org/cl/14293043
-
Russ Cox authored
Changing from 4 kB to 8 kB brings significant improvement on a variety of the Go 1 benchmarks, on both amd64 and 386 systems. Significant runtime reductions: amd64 386 GoParse -14% -1% GobDecode -12% -20% GobEncode -64% -1% JSONDecode -9% -4% JSONEncode -15% -5% Template -17% -14% In the longer term, khr's new stacks will avoid needing to make this decision at all, but for Go 1.2 this is a reasonable stopgap that makes performance significantly better. Demand paging should mean that if the second 4 kB is not used, it will not be brought into memory, so the change should not adversely affect resident set size. The same argument could justify bumping as high as 64 kB on 64-bit machines, but there are diminishing returns after 8 kB, and using 8 kB limits the possible unintended memory overheads we are not aware of. Benchmark graphs at http://swtch.com/~rsc/gostackamd64.html http://swtch.com/~rsc/gostack386.html Full data at http://swtch.com/~rsc/gostack.zip R=golang-dev, khr, dave, bradfitz, dvyukov CC=golang-dev https://golang.org/cl/14317043
-
Russ Cox authored
Fixes #5633. R=golang-dev, r, tommi.virtanen, adg, nj CC=golang-dev https://golang.org/cl/14283044
-
Dave Day authored
Add the -installsuffix flag to gc and {5,6,8}l, which overrides -race for the suffix if both are supplied. Pass this flag from the go tool for build and install. R=rsc CC=golang-dev https://golang.org/cl/14246044
-
Yasuhiro Matsumoto authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/14259043
-
Russ Cox authored
Fixes #6324. R=golang-dev, iant, mikioh.mikioh CC=golang-dev https://golang.org/cl/13280049
-
Russ Cox authored
Fixes #3524. R=golang-dev, iant, r CC=golang-dev https://golang.org/cl/14296043
-
Russ Cox authored
Fixes #6456. R=golang-dev, r CC=golang-dev https://golang.org/cl/14289043
-
Russ Cox authored
It is not possible to use (there is no declaration in package syscall), and no one seems to care. Alex Brainman may bring this back properly for Go 1.3. Fixes #6338. R=golang-dev, r, alex.brainman CC=golang-dev https://golang.org/cl/14287043
-
Shenghou Ma authored
so that we don't need worry about specifying the required libc version (note: as cmd/go will still be dynamically linked to libc, we still need to perform the build on OSes with an old enough libc. But as cmd/go doesn't rely on many libc symbols, the situation should be significantly better). Fixes #3564. R=golang-dev, adg CC=golang-dev https://golang.org/cl/14261043
-
- 02 Oct, 2013 10 commits
-
-
Josh Bleecher Snyder authored
RawMessage is useful and mildly non-obvious. Given the frequency with which RawMessage questions show up on golang-nuts, and get answered with an example, I suspect adding an example to the docs might help. R=golang-dev, adg CC=golang-dev https://golang.org/cl/14190044
-
Rob Pike authored
Use it as a teaching example about how to solve this problem. Fixes #6501 R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/14250043
-
Russ Cox authored
Fixes #6443. R=golang-dev, iant CC=golang-dev https://golang.org/cl/14231045
-
Russ Cox authored
Not scanning the stack by frames means we are reintroducing a few false positives into the collection. Run the finalizer registration in its own goroutine so that stack is guaranteed to be out of consideration in a later collection. This is working around a regression from yesterday's tip, but it's not a regression from Go 1.1. R=golang-dev TBR=golang-dev CC=golang-dev https://golang.org/cl/14290043
-
Rémy Oudompheng authored
R=rsc CC=golang-dev https://golang.org/cl/14188044
-
Frithjof Schulze authored
Ticket 13740047 updated the documented TLS version to 1.2. This also updates the RFC refered to. R=golang-dev CC=golang-dev, rsc https://golang.org/cl/14029043
-
Russ Cox authored
Walking the stack by frames is ~3x more expensive than not, and since it didn't end up being precise, there is not enough benefit to outweigh the cost. This is the conservative choice: this CL makes the stack scanning behavior the same as it was in Go 1.1. Add benchmarks to package runtime so that we have them when we re-enable this feature during the Go 1.3 development. benchmark old ns/op new ns/op delta BenchmarkGoroutineSelect 3194909 1272092 -60.18% BenchmarkGoroutineBlocking 3120282 866366 -72.23% BenchmarkGoroutineForRange 3256179 939902 -71.13% BenchmarkGoroutineIdle 2005571 482982 -75.92% The Go 1 benchmarks, just to add more data. As far as I can tell the changes are mainly noise. benchmark old ns/op new ns/op delta BenchmarkBinaryTree17 4409403046 4414734932 +0.12% BenchmarkFannkuch11 3407708965 3378306120 -0.86% BenchmarkFmtFprintfEmpty 100 99 -0.60% BenchmarkFmtFprintfString 242 239 -1.24% BenchmarkFmtFprintfInt 204 206 +0.98% BenchmarkFmtFprintfIntInt 320 316 -1.25% BenchmarkFmtFprintfPrefixedInt 295 299 +1.36% BenchmarkFmtFprintfFloat 442 435 -1.58% BenchmarkFmtManyArgs 1246 1216 -2.41% BenchmarkGobDecode 10186951 10051210 -1.33% BenchmarkGobEncode 16504381 16445650 -0.36% BenchmarkGzip 447030885 447056865 +0.01% BenchmarkGunzip 111056154 111696305 +0.58% BenchmarkHTTPClientServer 89973 93040 +3.41% BenchmarkJSONEncode 28174182 27933893 -0.85% BenchmarkJSONDecode 106353777 110443817 +3.85% BenchmarkMandelbrot200 4822289 4806083 -0.34% BenchmarkGoParse 6102436 6142734 +0.66% BenchmarkRegexpMatchEasy0_32 133 132 -0.75% BenchmarkRegexpMatchEasy0_1K 372 373 +0.27% BenchmarkRegexpMatchEasy1_32 113 111 -1.77% BenchmarkRegexpMatchEasy1_1K 964 940 -2.49% BenchmarkRegexpMatchMedium_32 202 205 +1.49% BenchmarkRegexpMatchMedium_1K 68862 68858 -0.01% BenchmarkRegexpMatchHard_32 3480 3407 -2.10% BenchmarkRegexpMatchHard_1K 108255 112614 +4.03% BenchmarkRevcomp 751393035 743929976 -0.99% BenchmarkTemplate 139637041 135402220 -3.03% BenchmarkTimeParse 479 475 -0.84% BenchmarkTimeFormat 460 466 +1.30% benchmark old MB/s new MB/s speedup BenchmarkGobDecode 75.34 76.36 1.01x BenchmarkGobEncode 46.50 46.67 1.00x BenchmarkGzip 43.41 43.41 1.00x BenchmarkGunzip 174.73 173.73 0.99x BenchmarkJSONEncode 68.87 69.47 1.01x BenchmarkJSONDecode 18.25 17.57 0.96x BenchmarkGoParse 9.49 9.43 0.99x BenchmarkRegexpMatchEasy0_32 239.58 241.74 1.01x BenchmarkRegexpMatchEasy0_1K 2749.74 2738.00 1.00x BenchmarkRegexpMatchEasy1_32 282.49 286.32 1.01x BenchmarkRegexpMatchEasy1_1K 1062.00 1088.96 1.03x BenchmarkRegexpMatchMedium_32 4.93 4.86 0.99x BenchmarkRegexpMatchMedium_1K 14.87 14.87 1.00x BenchmarkRegexpMatchHard_32 9.19 9.39 1.02x BenchmarkRegexpMatchHard_1K 9.46 9.09 0.96x BenchmarkRevcomp 338.26 341.65 1.01x BenchmarkTemplate 13.90 14.33 1.03x Fixes #6482. R=golang-dev, dave, r CC=golang-dev https://golang.org/cl/14257043
-
Shenghou Ma authored
Added a new $GO_DISTFLAGS to make.bash, and while we're here, added mention $CXX in make.bash (CL 13704044). Fixes #6448. Update #3564 We can pass GO_DISTFLAGS=-s from misc/dist to make.bash so that it will build a statically linked toolchain. (Note: OS X doesn't have the concept of static linking, so don't pass GO_DISTFLAGS=-s for OS X builds) R=adg, rsc, iant CC=golang-dev https://golang.org/cl/13887043
-
Andrew Gerrand authored
Yay! R=golang-dev, dave CC=golang-dev https://golang.org/cl/14256043
-
Dave Day authored
Currently, the directories generaed by includeArgs can have the "_race" suffix added if invoked with -race flag, but ignores -installsuffix if set. R=adg, rsc CC=golang-dev https://golang.org/cl/14174043
-
- 01 Oct, 2013 2 commits
-
-
Yasuhiro Matsumoto authored
This change allow to godoc: :Godoc github.com/mattn/go-gtk/gtk :Godoc github.com/mattn/go-gtk/gtk NewWindow :Godoc encoding/json :Godoc encoding/json Marshal R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/14171043
-
David Symonds authored
R=adg, djd CC=golang-dev https://golang.org/cl/14176043
-
- 30 Sep, 2013 2 commits
-
-
Carl Shapiro authored
««« original CL description encoding/gob: do not hide pointer argument for the garbage collector R=golang-dev, r CC=golang-dev https://golang.org/cl/14154043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/14165043
-
Carl Shapiro authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/14154043
-
- 29 Sep, 2013 1 commit
-
-
Dave Cheney authored
Fixes #5537. To avoid `go install -v race std` replacing cmd/cgo with a race enabled version and another package trying to build a cgo enabled package, always build cmd/cgo race enabled before doing the rest of the build. R=remyoudompheng, rsc, dvyukov, minux.ma CC=golang-dev https://golang.org/cl/14071044
-
- 28 Sep, 2013 3 commits
-
-
Ian Lance Taylor authored
blank1.go:10:9: error: invalid package name _ blank1.go:17:2: error: cannot use _ as value blank1.go:18:7: error: cannot use _ as value blank1.go:20:8: error: invalid use of ‘_’ R=golang-dev, r CC=golang-dev https://golang.org/cl/14088044
-
Ian Lance Taylor authored
When a floating point constant is used as an array/slice index, gccgo prints "error: index must be integer"; gc prints "constant 2.1 truncated to integer". R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/14044044
-
Robin Eklind authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/14038044
-