- 25 Jun, 2013 9 commits
-
-
Ian Lance Taylor authored
Built after adding -Wconversion to the list of compiler arguments used when building. I believe these are all OK assuming we will not change the API. There is no effort to detect overflow due to very long strings. R=golang-dev, dave, rsc, r CC=golang-dev https://golang.org/cl/10195044
-
Dmitriy Vyukov authored
Currently more than 1 gorutine can execute raceWrite() in Wait() in the following scenario: 1. goroutine 1 executes first check of wg.counter, sees that it's == 0 2. goroutine 2 executes first check of wg.counter, sees that it's == 0 3. goroutine 2 locks the mutex, sees that he is the first waiter and executes raceWrite() 4. goroutine 2 block on the semaphore 5. goroutine 3 executes Done() and unblocks goroutine 2 6. goroutine 1 lock the mutex, sees that he is the first waiter and executes raceWrite() It produces the following false report: WARNING: DATA RACE Write by goroutine 35: sync.raceWrite() src/pkg/sync/race.go:41 +0x33 sync.(*WaitGroup).Wait() src/pkg/sync/waitgroup.go:103 +0xae command-line-arguments_test.TestNoRaceWaitGroupMultipleWait2() src/pkg/runtime/race/testdata/waitgroup_test.go:156 +0x19a testing.tRunner() src/pkg/testing/testing.go:361 +0x108 Previous write by goroutine 36: sync.raceWrite() src/pkg/sync/race.go:41 +0x33 sync.(*WaitGroup).Wait() src/pkg/sync/waitgroup.go:103 +0xae command-line-arguments_test.func·012() src/pkg/runtime/race/testdata/waitgroup_test.go:148 +0x4d R=golang-dev, r CC=golang-dev https://golang.org/cl/10424043
-
Alex Brainman authored
Resubmit 3c2cddfbdaec now that windows callbacks are not generated during runtime. Fixes #5494 R=golang-dev, minux.ma, rsc CC=golang-dev https://golang.org/cl/10487043
-
Rémy Oudompheng authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/10483045
-
Dave Cheney authored
Fix a bunch of warnings detected by https://golang.org/cl/8090044. Same as CL 10483044, but for FreeBSD. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/10498044
-
Alex Brainman authored
- change runtime_pollWait so it does not return closed or timeout if IO is ready - windows must know if IO has completed or not even after interruption; - add (*pollDesc).Prepare(mode int) that can be used for both read and write, same for Wait; - introduce runtime_pollWaitCanceled and expose it in net as (*pollDesc).WaitCanceled(mode int); Full windows netpoll changes are here https://golang.org/cl/8670044/. R=golang-dev, dvyukov CC=golang-dev https://golang.org/cl/10485043
-
Dave Cheney authored
Fix a bunch of warnings detected by https://golang.org/cl/8090044 R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/10483044
-
Rob Pike authored
The compiler still gets the escape analysis wrong, but the annotation here is correct. R=golang-dev, dave, bradfitz CC=golang-dev https://golang.org/cl/10514046
-
Dave Cheney authored
Part 2 of several. R=rsc, mikioh.mikioh, r CC=golang-dev https://golang.org/cl/10462043
-
- 24 Jun, 2013 13 commits
-
-
Rob Pike authored
No semantic change. I found the wording distracting in a couple of instances and was moved to improve it. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/10478048
-
Brad Fitzpatrick authored
If a server response contains a Content-Length and the body is short, the Transport should end in io.ErrUnexpectedEOF, not io.EOF. Fixes #5738 R=golang-dev, kevlar, r CC=golang-dev https://golang.org/cl/10237050
-
ChaiShushan authored
Fixes #5617. R=r, rsc CC=gobot, golang-dev https://golang.org/cl/10370043
-
ChaiShushan authored
Fixes #5768. R=golang-dev CC=golang-dev https://golang.org/cl/10503043
-
ChaiShushan authored
In general the description should describe what is added or fixed, not how it was done (the code does this), but in this case the cause was delete was missing, so the fix is to add it. Fixes issue 5765. R=golang-dev, iant, r CC=golang-dev https://golang.org/cl/10496043
-
Dmitriy Vyukov authored
until we decide what to do with issues 5659/5736. Profiling with race detector is not very useful in general, and now it makes race builders red. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/10523043
-
Russ Cox authored
Time is a tiny struct, so the compiler copies a Time by copying each of the three fields. The layout of a time on amd64 is [ptr int32 gap32 ptr]. Copying a Time onto a location that formerly held a pointer in the second word changes only the low 32 bits, creating a different but still plausible pointer. This confuses the garbage collector when it appears in argument or result frames. To avoid this problem, declare nsec as uintptr, so that there is no gap on amd64 anymore, and therefore no partial pointers. Note that rearranging the fields to put the int32 last still leaves a gap - [ptr ptr int32 gap32] - because Time must have a total size that is ptr-width aligned. Update #5749 This CL is enough to fix the problem, but we should still do the other actions listed in the initial report. We're not too far from completely precise collection. R=golang-dev, dvyukov, r CC=golang-dev https://golang.org/cl/10504043
-
Adam Langley authored
Fixes 5747. R=golang-dev, r, bradfitz CC=golang-dev https://golang.org/cl/10401050
-
Alex Brainman authored
Update #5494 R=golang-dev, minux.ma, rsc, iant CC=golang-dev https://golang.org/cl/10368043
-
ChaiShushan authored
In general the description should describe what is added or fixed, not how it was done (the code does this), but in this case the cause were "/ /= ;" was missing, so the fix is to add it. Fixes #5761. R=golang-dev, adg CC=golang-dev https://golang.org/cl/10479043
-
ChaiShushan authored
In general the description should describe what is added or fixed, not how it was done (the code does this), but in this case the cause was delete was missing, so the fix is to add it. Fixes #5759. R=adg CC=dave, dominik.honnef, gobot, golang-dev https://golang.org/cl/10476043
-
Andrew Gerrand authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/10482043
-
Dave Cheney authored
The tradition is to use _posix when the platform extends beyond unix variants. As windows has its own file, rename to the more usual _unix. R=golang-dev, r CC=golang-dev https://golang.org/cl/10320043
-
- 23 Jun, 2013 1 commit
-
-
Rémy Oudompheng authored
Fixes #4230 (again). R=rsc, golang-dev, r CC=golang-dev https://golang.org/cl/10470043
-
- 22 Jun, 2013 2 commits
-
-
Rick Arnold authored
If time.Sub results in a value that won't fit in a Duration (int64), return either the min or max int64 value as appropriate. Fixes #5011. R=golang-dev, bradfitz, r, rsc CC=golang-dev https://golang.org/cl/10328043
-
Dave Cheney authored
See discussion: https://groups.google.com/forum/#!topic/golang-dev/zSmH0lQxKAs Part 1 of several. Move identical types and functions to syscall_unix.go. R=rsc, mikioh.mikioh, r CC=golang-dev https://golang.org/cl/10392048
-
- 21 Jun, 2013 6 commits
-
-
Robert Griesemer authored
The existing compilers convert empty strings to empty but non-nil byte and rune slices. The spec required a nil byte and rune slice in those cases. That seems an odd additional requirement. Adjust the spec to match the reality. Also, removed over-specification for conversions of nil []byte and []rune: such nil slices already act like empty slices and thus don't need extra language. Added extra examples instead. Fixes #5704. R=rsc, r, iant CC=golang-dev https://golang.org/cl/10440045
-
Robert Griesemer authored
The go/ast ImportSpec always requires a non-nil path. R=adonovan CC=golang-dev https://golang.org/cl/10402047
-
Rob Pike authored
R=adg, rsc CC=golang-dev https://golang.org/cl/10392049
-
Robert Griesemer authored
Experimental, per rsc's proposal. R=rsc CC=golang-dev https://golang.org/cl/10204043
-
Adam Langley authored
This Intel instruction implements multiplication in binary fields. R=golang-dev, minux.ma, dave, rsc CC=golang-dev https://golang.org/cl/10428043
-
Dave Cheney authored
trivial: it is not a serious problem to leak a fd in a short lived process, but it was obscuring my investigation of issue 5593. R=golang-dev, iant, bradfitz CC=golang-dev https://golang.org/cl/10391043
-
- 20 Jun, 2013 8 commits
-
-
Rob Pike authored
These are not erroneous, just poor or confusing. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/10448043
-
Ian Lance Taylor authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/10401046
-
Brad Fitzpatrick authored
The old code worked, somewhat on accident, but was confusing, and had a useless assignment to the inner err. It worked because url.Parse parses just about anything, so the outer err was always nil, so it always fell through to the bottom return statement, even without the "err = nil" line. Instead, just have two return statements, and add a comment. R=golang-dev, r CC=golang-dev https://golang.org/cl/10448044
-
Rob Pike authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/10328044
-
Rob Pike authored
Output now: ok crypto/aes 0.060s coverage: 89.8% of statements ok crypto/des 0.074s coverage: 92.2% of statements ok crypto/dsa 0.056s coverage: 34.5% of statements ok crypto/ecdsa 0.058s coverage: 86.8% of statements ok crypto/elliptic 0.039s coverage: 94.6% of statements ok crypto/hmac 0.037s coverage: 93.5% of statements ok crypto/md5 0.031s coverage: 96.2% of statements ok crypto/rand 0.074s coverage: 9.9% of statements ok crypto/rc4 0.090s coverage: 66.7% of statements ok crypto/rsa 0.253s coverage: 83.5% of statements R=rsc, adg CC=golang-dev https://golang.org/cl/10413044
-
Adam Langley authored
This complements the parsing function that we already have. R=golang-dev, r CC=golang-dev https://golang.org/cl/10426043
-
Rémy Oudompheng authored
R=iant, golang-dev CC=golang-dev https://golang.org/cl/10365052
-
Andrew Gerrand authored
Fixes #5655. R=golang-dev, minux.ma, r CC=golang-dev https://golang.org/cl/10410045
-
- 19 Jun, 2013 1 commit
-
-
Adam Langley authored
TLS clients send ciphersuites in preference order (most prefereable first). This change alters the order so that ECDHE comes before plain RSA, and RC4 comes before AES (because of the Lucky13 attack). This is unlikely to have much effect: as a server, the code uses the client's ciphersuite order by default and, as a client, the non-Go server probably imposes its order. R=golang-dev, r, raggi, jsing CC=golang-dev https://golang.org/cl/10372045
-