- 26 Nov, 2012 3 commits
-
-
Joel Sing authored
R=golang-dev, bradfitz, minux.ma, dave CC=golang-dev https://golang.org/cl/6842081
-
Joel Sing authored
R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/6854079
-
Joel Sing authored
Check the return value from malloc - do not assume that we were allocated memory just because we asked for it. Update #4415. R=minux.ma, daniel.morsing, remyoudompheng, rsc CC=golang-dev https://golang.org/cl/6782100
-
- 25 Nov, 2012 7 commits
-
-
Dave Cheney authored
If the a network read would block, and a packet arrived just before the timeout expired, then the number of bytes from the previous (blocking) read, -1, would be returned. This change restores the previous logic, where n would be unconditionally set to 0 if err != nil, but was skipped due to a change in CL 6851096. The test for this change is CL 6851061. R=bradfitz, mikioh.mikioh, dvyukov, rsc CC=golang-dev https://golang.org/cl/6852085
-
Brad Fitzpatrick authored
Should make BSDs more reliable. (they seem to reuse ports quicker than Linux) Tested by hand with local modifications to force reuse on Linux. (net/http tests failed before, pass now) Details in the issue. Fixes #4436 R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/6847101
-
Brad Fitzpatrick authored
Fixes #4421 R=golang-dev, dave, minux.ma, mchaten, rsc CC=golang-dev https://golang.org/cl/6855083
-
Mikio Hara authored
Make use of carry clear condition instead of low or same. R=minux.ma, jsing, dave CC=golang-dev https://golang.org/cl/6844080
-
Dmitriy Vyukov authored
The tests verify that deadlines are "persistent", read/write deadlines do not interfere, can be reset, read deadline can be set with both SetDeadline() and SetReadDeadline(), etc. R=golang-dev, bradfitz, dave CC=golang-dev https://golang.org/cl/6850070
-
Ian Lance Taylor authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6856084
-
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
-