- 01 Dec, 2012 5 commits
-
-
Luit van Drongelen authored
Exactly how I find minute details like this is beyond me. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6842125
-
Johan Euphrosine authored
The first iteration always do `m[0], m[0] = m[0], m[0]`, because `rand.Intn(1)` is 0. fun note: IIRC in TAOCP version of this algorithm, `i` goes backward (n-1->1), meaning that the "already" shuffled part of the array is never altered betweens iterations, while in the current implementation the "not-yet" shuffled part of the array is conserved between iterations. R=golang-dev CC=golang-dev https://golang.org/cl/6845121
-
Brad Fitzpatrick authored
Worked in Go 1, broken in f440e65f93fe. Fixes #4477 R=golang-dev, agl CC=golang-dev https://golang.org/cl/6865043
-
Rémy Oudompheng authored
Contention profile in BenchmarkTCPOneShot (Core 2 Quad): Before Total: 80.285 seconds 44.743 55.7% 55.7% 44.743 55.7% runtime.chanrecv1 31.995 39.9% 95.6% 31.995 39.9% sync.(*Mutex).Lock 3.547 4.4% 100.0% 3.547 4.4% runtime.chansend1 After Total: 48.341 seconds 45.810 94.8% 94.8% 45.810 94.8% runtime.chanrecv1 2.530 5.2% 100.0% 2.530 5.2% runtime.chansend1 0.001 0.0% 100.0% 0.001 0.0% sync.(*Mutex).Lock R=golang-dev, dave, mikioh.mikioh CC=golang-dev https://golang.org/cl/6845119
-
Mikio Hara authored
Also fixes comments on ResolveIPAddr. Fixes #4476. R=bradfitz, golang-dev CC=golang-dev https://golang.org/cl/6854129
-
- 30 Nov, 2012 10 commits
-
-
Ian Lance Taylor authored
R=golang-dev CC=golang-dev https://golang.org/cl/6849129
-
Anthony Martin authored
R=golang-dev, dave, mikioh.mikioh, bradfitz, rsc CC=golang-dev https://golang.org/cl/6674043
-
Shenghou Ma authored
`godoc net/http` used to complain "/target contains more than one package: http, main" R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/6852100
-
Shenghou Ma authored
also fix an annoying test that relies on $GOROOT be set. Fixes #3690. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6844086
-
Dave Cheney authored
64bit atomics are broken on 32bit systems. This is issue 599. linux/arm builders all broke with this change, I am concerned that the other 32bit builders are silently impacted. ««« original CL description net: fix data races on deadline vars Fixes #4434. R=mikioh.mikioh, bradfitz, dvyukov, alex.brainman CC=golang-dev https://golang.org/cl/6855110 »»» R=rsc, mikioh.mikioh, dvyukov, minux.ma CC=golang-dev https://golang.org/cl/6852105
-
Dave Cheney authored
Fixes #4434. R=mikioh.mikioh, bradfitz, dvyukov, alex.brainman CC=golang-dev https://golang.org/cl/6855110
-
Dmitriy Vyukov authored
When a race happens inside of runtime (chan, slice, etc), currently reports contain only user file:line. If the line contains a complex expression, it's difficult to figure out where the race exactly. This change adds one more top frame with exact runtime function (e.g. runtime.chansend, runtime.mapaccess). R=golang-dev CC=golang-dev https://golang.org/cl/6851125
-
Dmitriy Vyukov authored
W/o this change stack traces do not show from where sync.Once() or atomic.XXX was called. This change add funcenter/exit instrumentation to sync/sync.atomic packages. R=golang-dev CC=golang-dev https://golang.org/cl/6854112
-
Alex Brainman authored
Some have their system setup in a particular way, see http://golang.org/issue/4444#c3. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6851129
-
Brad Fitzpatrick authored
RFC 2616: "The 204 response MUST NOT include a message-body, and thus is always terminated by the first empty line after the header fields." Previously we'd trigger chunked encoding by default on responses, and then when finishing the request we'd write the chunk trailers, which counted as a message-body. Fixes #4454 R=golang-dev CC=golang-dev https://golang.org/cl/6782139
-
- 29 Nov, 2012 6 commits
-
-
Robert Griesemer authored
Fixes #4450. R=rsc, iant CC=golang-dev https://golang.org/cl/6845104
-
Russ Cox authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6854119
-
Robert Griesemer authored
1) Built-ins are restricted like for expression statements. This documents the status quo. 2) Calls cannot be parenthesized. The spec is not clear. gccgo permits it already, gc doesn't. Be explicit in the spec. Fixes #4462. R=rsc, iant, r, ken, lvd CC=golang-dev https://golang.org/cl/6861043
-
Brad Fitzpatrick authored
The new version of rietveld pushed 1.5 hours ago requires HTTPS now, otherwise it issues a 301 to HTTPS which we barfed on. R=golang-dev CC=golang-dev https://golang.org/cl/6782135
-
Robert Griesemer authored
- check indices of array/slice composite literals - handle [...]T - also: go/defer statements R=rsc CC=golang-dev https://golang.org/cl/6856107
-
Robert Griesemer authored
More lenient parsing with better error recovery. It's easier for the type check to pick up the slack. R=iant CC=golang-dev https://golang.org/cl/6856108
-
- 28 Nov, 2012 4 commits
-
-
Alex Brainman authored
Fixes #4444. R=golang-dev, minux.ma, rsc CC=golang-dev https://golang.org/cl/6858079
-
Alex Brainman authored
Fixes #4342. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6850080
-
Alex Brainman authored
Test creates 2 tcp connections for put and get. Make sure these are closed properly after test is over, otherwise server hangs waiting for connection to be closed. R=golang-dev, bradfitz, dave CC=golang-dev https://golang.org/cl/6842109
-
Dave Cheney authored
Update #4434. The proposal attempts to reduce the number of places where fd,{r,w}deadline is checked and updated in preparation for issue 4434. In doing so the deadline logic is simplified by letting the pollster return errTimeout from netFD.Wait{Read,Write} as part of the wakeup logic. The behaviour of setting n = 0 has been restored to match rev 2a55e349097f, which was the previous change to fd_unix.go before CL 6851096. R=jsing, bradfitz, mikioh.mikioh, rsc CC=fullung, golang-dev https://golang.org/cl/6850110
-
- 27 Nov, 2012 15 commits
-
-
Mikio Hara authored
Fixes misedit in CL 6842053. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6849115
-
Dave Cheney authored
A fix similar to CL 6859043 was effective in resolving the intermittent failure. Fixes #4423. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6854102
-
Mikio Hara authored
This CL continues with introducing IPv6 scoped addressing capability into the net package. Update #4234. R=rsc CC=golang-dev https://golang.org/cl/6842053
-
Rémy Oudompheng authored
Fixes #4448. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6855100
-
Robert Griesemer authored
Package format is a utility package that takes care of parsing, sorting of imports, and formatting of .go source using the canonical gofmt formatting parameters. Use go/format in various clients instead of the lower-level components. R=r, bradfitz, dave, rogpeppe, rsc CC=golang-dev https://golang.org/cl/6852075
-
Jan Ziak authored
Garbage collection code (to be merged later) is calling functions which have many local variables. This increases the probability that the stack capacity won't be big enough to hold the local variables. So, start gc() on a bigger stack to eliminate a potentially large number of calls to runtime·morestack(). R=rsc, remyoudompheng, dsymonds, minux.ma, iant, iant CC=golang-dev https://golang.org/cl/6846044
-
Dmitriy Vyukov authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6854103
-
Rick Arnold authored
As discussed in issue 2672 and on golang-nuts, this CL adds a Split() method to regexp. It is based on returning the "opposite" of FindAllString() so that the returned substrings are everything not matched by the expression. See: https://groups.google.com/forum/?fromgroups=#!topic/golang-nuts/xodBZh9Lh2E Fixes #2762. R=remyoudompheng, r, rsc CC=golang-dev https://golang.org/cl/6846048
-
Russ Cox authored
Fix suggested by serbaut. Fixes #4445. R=sameer CC=golang-dev, serbaut https://golang.org/cl/6842102
-
Volker Dobler authored
Update #4125 R=minux.ma, rsc CC=golang-dev https://golang.org/cl/6847107
-
John Graham-Cumming authored
The syslog implementation was not correctly implementing the traditional syslog format because it had a confused notion of 'priority'. syslog priority is not a single number but is, in fact, the combination of a facility number and a severity. The previous Go syslog implementation had a single Priority that appeared to be the syslog severity and no way of setting the facility. That meant that all syslog messages from Go programs appeared to have a facility of 0 (LOG_KERN) which meant they all appeared to come from the kernel. Also, the 'prefix' was in fact the syslog tag (changed the internal name for clarity as the term tag is more widely used) and the timestamp and hostname values were missing from messages. With this change syslog messages are generated in the correct format with facility and severity combined into a priority, the timestamp in RFC3339 format, the hostname, the tag (with the PID in [] appened) and the message. The format is now: <PRI>1 TIMESTAMP HOSTNAME TAG[PID]: MSG The TIMESTAMP, HOSTNAME and PID fields are filled in automatically by the package. The TAG and the MSG are supplied by the user. This is what rsyslogd calls TraditionalFormat and should be compatible with multiple systems. R=rsc, jgc, 0xjnml, mikioh.mikioh, bradfitz CC=golang-dev https://golang.org/cl/6782118
-
Dmitriy Vyukov authored
R=golang-dev, remyoudompheng, rsc CC=golang-dev https://golang.org/cl/6525052
-
Dmitriy Vyukov authored
The test failed on one of the builders with: timeout_test.go:594: ln.Accept: accept tcp 127.0.0.1:19373: use of closed network connection http://build.golang.org/log/e83f4a152b37071b9d079096e15913811ad296b5 R=golang-dev, bradfitz, dave, mikioh.mikioh, remyoudompheng, rsc CC=golang-dev https://golang.org/cl/6859043
-
Nigel Tao authored
This CL defines the API. Implementation will come in follow-up CLs. Update #1960. R=bradfitz, dr.volker.dobler, rsc CC=golang-dev https://golang.org/cl/6849092
-
Brad Fitzpatrick authored
Part of merging goprotobuf's A+C into Go's. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6844096
-