- 27 Apr, 2013 1 commit
-
-
Dave Cheney authored
Turns out the optimal value is 8 on cortex-A9 systems (pandaboard) benchmark old ns/op new ns/op delta BenchmarkAppend 907 908 +0.11% BenchmarkAppend1Byte 101 101 +0.00% BenchmarkAppend4Bytes 116 116 +0.00% BenchmarkAppend8Bytes 139 138 -0.72% BenchmarkAppend16Bytes 185 158 -14.59% BenchmarkAppend32Bytes 131 131 +0.00% BenchmarkAppendStr1Byte 72 72 +0.00% BenchmarkAppendStr4Bytes 93 93 -0.21% BenchmarkAppendStr8Bytes 116 116 +0.00% BenchmarkAppendStr16Bytes 161 125 -22.36% BenchmarkAppendStr32Bytes 102 102 +0.00% BenchmarkAppendSpecialCase 613 613 +0.00% R=golang-dev, r CC=golang-dev https://golang.org/cl/8863045
-
- 26 Apr, 2013 2 commits
-
-
Brad Fitzpatrick authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/8981043
-
Dmitriy Vyukov authored
R=golang-dev, adg, r CC=golang-dev https://golang.org/cl/8819046
-
- 25 Apr, 2013 5 commits
-
-
Brad Fitzpatrick authored
The refcounting of driver Conns was completedly busted and would leak (be held open forever) with any reasonable load. This was a significant regression from Go 1.0. The core of this patch is removing one line: s.db.addDep(dc, s) A database conn (dc) is a resource that be re-created any time (but cached for speed) should not be held open forever with a dependency refcount just because the Stmt (s) is alive (which typically last for long periods of time, like forever). The meat of the patch is new tests. In fixing the real issue, a lot of tests then failed due to the fakedb_test.go's paranoia about closing a fakeConn while it has open fakeStmts on it. I could've ignored that, but that's been a problem in the past for other bugs. Instead, I now track per-Conn open statements and close them when the the conn closes. The proper way to do this would've been making *driverStmt a finalCloser and using the dep mechanism, but it was much more invasive. Added a TODO instead. I'd like to give a way for drivers to opt-out of caring about driver.Stmt closes before a driver.Conn close, but that's a TODO for the future, and that TODO is added in this CL. I know this is very late for Go 1.1, but database/sql is currently nearly useless without this. I'd like to believe all these database/sql bugs in the past release cycle are the result of increased usage, number of drivers, and good feedback from increasingly-capable Go developers, and not the result of me sucking. It's also hard with all the real drivers being out-of-tree, so I'm having to add more and more hooks to fakedb_test.go to simulate things which real drivers end up doing. Fixes #5323 R=golang-dev, snaury, gwenn.kahz, google, r CC=golang-dev https://golang.org/cl/8836045
-
Jan Ziak authored
Update #5291. R=golang-dev, daniel.morsing, iant, r CC=golang-dev https://golang.org/cl/8663052
-
Jan Ziak authored
It works on i386, but fails on amd64 and arm. ««« original CL description runtime: prevent the GC from seeing the content of a frame in runfinq() Fixes #5348. R=golang-dev, dvyukov CC=golang-dev https://golang.org/cl/8954044 »»» R=golang-dev, r CC=golang-dev https://golang.org/cl/8695051
-
Jan Ziak authored
Fixes #5348. R=golang-dev, dvyukov CC=golang-dev https://golang.org/cl/8954044
-
Mikio Hara authored
Update #5344 R=golang-dev, dave, r, alex.brainman CC=golang-dev https://golang.org/cl/8934043
-
- 24 Apr, 2013 2 commits
-
-
Rob Pike authored
- clean up the notypes version of the test so it's quiet - change the package in the buildtag test to avoid confusing godoc R=golang-dev, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/8671049
-
Ian Lance Taylor authored
R=r, ken, khr, daniel.morsing CC=dsymonds, golang-dev, rickyz https://golang.org/cl/8925043
-
- 23 Apr, 2013 8 commits
-
-
Mikio Hara authored
R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/8698049
-
Anthony Martin authored
We have to reset the global lineno variable before processing each file otherwise line numbers will be offset by the number of lines in the previous file. The following examples are from the beginning of the ztime_linux_amd64.c file which is generated from time.goc in the runtime package. Before: #line 2483 "/home/apm/src/go/src/pkg/runtime/time.goc" static Timers timers; static void addtimer ( Timer* ) ; void time·Sleep(int64 ns) { #line 2492 "/home/apm/src/go/src/pkg/runtime/time.goc" After: #line 16 "/home/apm/src/go/src/pkg/runtime/time.goc" static Timers timers; static void addtimer ( Timer* ) ; void time·Sleep(int64 ns) { #line 25 "/home/apm/src/go/src/pkg/runtime/time.goc" R=golang-dev, minux.ma, iant, r, adg CC=golang-dev https://golang.org/cl/8653045
-
Shenghou Ma authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8896045
-
Oling Cat authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8919043
-
Jeremy Jackins authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8625044
-
Shenghou Ma authored
Fixes #5333. R=golang-dev, adg CC=golang-dev https://golang.org/cl/8698046
-
Mikio Hara authored
The protocol number of ICMP for IPv6 is 58, not 1. R=golang-dev, iant, r CC=golang-dev https://golang.org/cl/8663048
-
Christian Himpel authored
R=r CC=golang-dev https://golang.org/cl/8889045
-
- 22 Apr, 2013 6 commits
-
-
Rob Pike authored
This should do it for the release. There was a new data set pushed out a couple of days ago. Fixes #4553. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8621044
-
Rob Pike authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8915043
-
Shenghou Ma authored
Depends on CL 8715043 and CL 8676050. Fixes #5273. R=alex.brainman, r CC=gobot, golang-dev https://golang.org/cl/8764043
-
Rob Pike authored
Change the term 'standard time', which already means something, to 'reference time', and add a couple of sentences and clarifications. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8799047
-
Brad Fitzpatrick authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/8911044
-
Andrew Gerrand authored
Fixes #5329. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8897044
-
- 21 Apr, 2013 4 commits
-
-
Jonathan Rudenberg authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/8880043
-
Brad Fitzpatrick authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/8887043
-
Brad Fitzpatrick authored
No reason to pull in math just for x != x. R=golang-dev, r CC=golang-dev https://golang.org/cl/8886043
-
Brad Fitzpatrick authored
R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/8721045
-
- 20 Apr, 2013 2 commits
-
-
Alex Brainman authored
This should have been part of CL8715043. Update #5106 R=golang-dev, r, iant CC=golang-dev https://golang.org/cl/8676050
-
Mikio Hara authored
Update #5219. R=golang-dev, dvyukov, r CC=golang-dev https://golang.org/cl/8602047
-
- 19 Apr, 2013 5 commits
-
-
Brad Fitzpatrick authored
Fixes #5316 R=golang-dev, r, minux.ma CC=golang-dev https://golang.org/cl/8871043
-
Shenghou Ma authored
before: fmt.statictmp_0731:/usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: unsuccessful exit status 0x100 now: /usr/local/go/pkg/tool/linux_amd64/6l: running gcc failed: unsuccessful exit status 0x100 R=golang-dev, iant, r CC=golang-dev https://golang.org/cl/8827045
-
Rob Pike authored
But stop eventually if the reader misbehaves. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8757045
-
Rob Pike authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/8833050
-
Rob Pike authored
Also add a new variable ErrNoProgress that io.Readers can use to report ineffectual Read calls. Fixes #5310. R=golang-dev, dsymonds, bradfitz CC=golang-dev https://golang.org/cl/8845043
-
- 18 Apr, 2013 5 commits
-
-
Brad Fitzpatrick authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/8763045
-
Robert Griesemer authored
Fixes #5315. R=golang-dev, r CC=golang-dev https://golang.org/cl/8841048
-
Brad Fitzpatrick authored
I read docs and wrote a crawler + link checker on the plane, which also checks for #fragments. I'll send that out later when it's less gross. R=golang-dev, r CC=golang-dev https://golang.org/cl/8729050
-
Dave Cheney authored
https://golang.org/cl/8134043 disabled cgo when cross compiling, this means builders which compile for both amd64 and 386 will be compiling the latter with cgo disabled. This proposal modifies the builder to mirror the dist tool by always doing a native build. Tested on my darwin/amd64 builder and confirmed the result when building darwin/386 is a native 386 build with cgo enabled. R=bradfitz, dsymonds, r, adg CC=golang-dev https://golang.org/cl/8842044
-
Rémy Oudompheng authored
Also document the panic to be consistent with math/rand. Fixes #5187. R=golang-dev, dave, bradfitz, r CC=golang-dev https://golang.org/cl/8303043
-