- 25 Nov, 2012 1 commit
-
-
Dave Cheney authored
The fix for issue 4403 may include more calls to time.Now().UnixNano(). I was concerned that if this function allocated it would cause additional garbage on the heap. It turns out that it doesn't, which is a nice surprise. Also add benchmark for Now().UnixNano() R=bradfitz, minux.ma CC=golang-dev https://golang.org/cl/6849097
-
- 24 Nov, 2012 7 commits
-
-
Alex Brainman authored
R=golang-dev, mikioh.mikioh, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/6851098
-
Caine Tighe authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6856078
-
Ian Lance Taylor authored
Fixes #4432. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/6858064
-
Brad Fitzpatrick authored
Otherwise a fast sender or receiver can make sockets always readable or writable, preventing deadline checks from ever occuring. Update #4191 (fixes it with other CL, coming separately) Fixes #4403 R=golang-dev, alex.brainman, dave, mikioh.mikioh CC=golang-dev https://golang.org/cl/6851096
-
John Graham-Cumming authored
madvise was missing so implement it in assembler. This change needs to be extended to the other BSD variantes (Net and Open) Without this change the scavenger will attempt to pass memory back to the operating system when it has become idle, but the memory is not returned and for long running Go processes the total memory used can grow until OOM occurs. I have only been able to test the code on FreeBSD AMD64. The ARM platforms needs testing. R=golang-dev, mikioh.mikioh, dave, jgc, minux.ma CC=golang-dev https://golang.org/cl/6850081
-
Dave Cheney authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6845077
-
Brad Fitzpatrick authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6846095
-
- 23 Nov, 2012 2 commits
-
-
Shenghou Ma authored
Fixes #4426. R=dvyukov CC=golang-dev https://golang.org/cl/6851099
-
Shenghou Ma authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6851100
-
- 21 Nov, 2012 9 commits
-
-
Robert Griesemer authored
We have the notion of a PackageName, not package identifier. As is, it could construed that imports that rename a package don't have an "imported package identifier" but a local one. R=r, rsc, iant, ken, dsymonds CC=golang-dev https://golang.org/cl/6858049
-
Dave Cheney authored
R=adg, minux.ma, rsc CC=golang-dev https://golang.org/cl/6843068
-
Dave Cheney authored
Fixes #4060. 2012/11/21 19:51:34 http: panic serving 127.0.0.1:47139: Kaaarn! goroutine 7 [running]: net/http.func·004(0x7f330807ffb0, 0x7f330807f100) /home/dfc/go/src/pkg/net/http/server.go:615 +0xa7 ----- stack segment boundary ----- main.(*httpHandler).ServeHTTP() /home/dfc/src/httppanic.go:16 +0x53 net/http.(*conn).serve(0xc200090240, 0x0) /home/dfc/go/src/pkg/net/http/server.go:695 +0x55d created by net/http.(*Server).Serve /home/dfc/go/src/pkg/net/http/server.go:1119 +0x36d R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6846085
-
Vladimir Nikishenko authored
Fixes #4417. R=golang-dev, iant, minux.ma, bradfitz CC=golang-dev, vova616 https://golang.org/cl/6782097
-
Shenghou Ma authored
Fixes #4420. R=golang-dev, rsc, remyoudompheng CC=golang-dev https://golang.org/cl/6854080
-
Brad Fitzpatrick authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6845073
-
Joel Sing authored
Update OpenBSD runtime to use the new version of the sys___tfork syscall and switch TLS initialisation from sys_arch to sys___set_tcb (note that both of these syscalls are available in OpenBSD 5.2). R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/6843058
-
Rémy Oudompheng authored
Fixes #4399. R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/6845053
-
Dave Cheney authored
Putting aside the unguarded access to fd.sysfile, the condition will never be true as fd.incref above handles the closed condition. R=mikioh.mikioh, dvyukov CC=golang-dev https://golang.org/cl/6845062
-
- 20 Nov, 2012 5 commits
-
-
Shenghou Ma authored
R=fullung, bradfitz, dave CC=golang-dev https://golang.org/cl/6846081
-
Ian Lance Taylor authored
The exp/types packages does not support the gccgo export data format. At some point it should, but not yet. R=gri, bradfitz, r, iant, dsymonds CC=golang-dev https://golang.org/cl/6854068
-
Alex Brainman authored
Also enables TestDirWindows test on windows. Fixes #4401. R=golang-dev, bradfitz CC=golang-dev, krautz https://golang.org/cl/6847072
-
Brad Fitzpatrick authored
Noticed this while closing tabs. Yesterday I thought I could ignore this garbage and hope that a fix for issue 2205 handled it, but I just realized that's the opposite case, string->[]byte, whereas this is []byte->string. I'm having a hard time convincing myself that an Issue 2205-style fix with static analysis and faking a string header would be safe in all cases without violating the memory model (callee assumes frozen memory; are there non-racy ways it could keep being modified?) R=dsymonds CC=dave, gobot, golang-dev https://golang.org/cl/6850067
-
Brad Fitzpatrick authored
Fixes #4411 R=dsymonds CC=gobot, golang-dev https://golang.org/cl/6854067
-
- 19 Nov, 2012 7 commits
-
-
Brad Fitzpatrick authored
Saves 5 seconds on my machine. If Issue 4380 is fixed this clone can be removed. Update #4380 R=golang-dev, remyoudompheng, minux.ma, gri CC=golang-dev https://golang.org/cl/6845058
-
Robert Griesemer authored
There's no good reason to make any printer state adjustments simply because the file name in node position information has changed. Eliminate the relevant code. R=r CC=golang-dev https://golang.org/cl/6856054
-
Brad Fitzpatrick authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/6853069
-
Brad Fitzpatrick authored
Don't rely on finding cmd.exe in a particular spot. Fixes #4401 R=golang-dev, krautz CC=golang-dev https://golang.org/cl/6842066
-
Christian Himpel authored
This enables to loop over some goroutines, e.g. to print the backtrace of goroutines 1 to 9: set $i = 1 while $i < 10 printf "backtrace of goroutine %d:\n", $i goroutine $i++ bt end R=lvd, lvd CC=golang-dev https://golang.org/cl/6843071
-
Robert Griesemer authored
Fixes #4405. R=rsc, bradfitz CC=golang-dev https://golang.org/cl/6855060
-
Brad Fitzpatrick authored
Update #4401 R=golang-dev, mattn.jp CC=golang-dev https://golang.org/cl/6853067
-
- 18 Nov, 2012 2 commits
-
-
Dave Cheney authored
Fixes #4369. Remove the check for fd.sysfd < 0, the first line of fd.accept() tests if the fd is open correctly and will handle the fd being closed during accept. R=dvyukov, bradfitz CC=golang-dev https://golang.org/cl/6843076
-
Dave Cheney authored
This is part 1 of a series of proposals to fix issue 4369. In resolving issue 3507 it was decided not to nil out the inner conn.fd field to avoid a race. This implies the checks for fd == nil inside incref/decref are never true. Removing this logic removes one source of errClosing error values, which affects issue 4373 and moves towards bradfitz's request that fd.accept() return io.EOF when closed concurrently. Update #4369. Update #4373. R=mikioh.mikioh, bradfitz, dvyukov, rsc CC=golang-dev https://golang.org/cl/6852057
-
- 17 Nov, 2012 7 commits
-
-
Dave Cheney authored
Enable warnings as errors during the cgo portion of runtime/cgo. iant requested that the list of flags match cmd/dist/build.c, but I would like to avoid the set of disabled warnings if possible. ref: https://groups.google.com/d/topic/golang-nuts/TrCoVzIIG4M/discussion requires: 6843061 R=minux.ma, iant CC=golang-dev https://golang.org/cl/6852055
-
Robert Griesemer authored
Fixes #4400. R=r, mirtchovski CC=golang-dev https://golang.org/cl/6782084
-
Shenghou Ma authored
R=dave, remyoudompheng CC=golang-dev https://golang.org/cl/6854056
-
Robert Griesemer authored
Replacement CL for 6813061; thanks to minux for prototyping. Fixes #4300. R=minux.ma CC=golang-dev https://golang.org/cl/6782082
-
Shenghou Ma authored
now we load jquery in its parent--godoc.html. R=golang-dev, adg CC=golang-dev https://golang.org/cl/6814112
-
Shenghou Ma authored
Write() can safely use uint32 loads when input is aligned. Also add test and benchmarks for unaligned writes. Benchmark result obtained by Dave Cheney on ARMv5TE @ 1.2GHz: benchmark old ns/op new ns/op delta BenchmarkHash8Bytes 4104 3417 -16.74% BenchmarkHash1K 22061 11208 -49.20% BenchmarkHash8K 146630 65148 -55.57% BenchmarkHash8BytesUnaligned 4128 3436 -16.76% BenchmarkHash1KUnaligned 22054 21473 -2.63% BenchmarkHash8KUnaligned 146658 146909 +0.17% benchmark old MB/s new MB/s speedup BenchmarkHash8Bytes 1.95 2.34 1.20x BenchmarkHash1K 46.42 91.36 1.97x BenchmarkHash8K 55.87 125.74 2.25x BenchmarkHash8BytesUnaligned 1.94 2.33 1.20x BenchmarkHash1KUnaligned 46.43 47.69 1.03x BenchmarkHash8KUnaligned 55.86 55.76 1.00x R=golang-dev, dave, bradfitz CC=golang-dev https://golang.org/cl/6782072
-
Shenghou Ma authored
also fix one out-of-date comment in cmd/ld/pe.c as well. R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/6843061
-