- 25 Jun, 2013 2 commits
-
-
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 3 commits
-
-
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
-
Rob Pike authored
The -cover flag is now just enable/disable and is implied if either of the other flags is set. R=rsc CC=golang-dev https://golang.org/cl/10420043
-
Rob Pike authored
The single flag -cover provides the default simplest behavior. The other flags, -covermode and -coverprofile, provide more control. The three flags interconnect to work well. R=rsc, adg CC=golang-dev https://golang.org/cl/10364044
-
- 18 Jun, 2013 5 commits
-
-
Rob Pike authored
Move the data dumper to the testing package, where it has access to file I/O. Print a percentage value at the end of the run. R=rsc, adg CC=golang-dev https://golang.org/cl/10264045
-
Robert Griesemer authored
Pointed out by go vet. R=r CC=golang-dev https://golang.org/cl/10368048
-
Russ Cox authored
(By not using the tail-call wrappers when the race detector is enabled.) R=golang-dev, minux.ma, dvyukov, daniel.morsing CC=golang-dev https://golang.org/cl/10227043
-
Cosmos Nicolaou authored
R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/9103045
-
Dave Cheney authored
Fixes #5714. R=golang-dev, iant CC=golang-dev https://golang.org/cl/10386043
-