1
0
mirror of https://github.com/golang/go synced 2024-11-15 08:30:35 -07:00
Commit Graph

12881 Commits

Author SHA1 Message Date
Russ Cox
87372e839e [release-branch.go1] crypto/aes: fix comment
««« backport d4f7f7438d1f
crypto/aes: fix comment

Fixes #3589.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/6190044

»»»
2012-06-13 16:23:46 -04:00
Jean-Marc Eurin
a340c2a131 [release-branch.go1] misc/emacs: Restore the window position after a successful gofmt.
««« backport 9d6693456f93
misc/emacs: Restore the window position after a successful gofmt.

This adds restoring the window position so that the buffer doesn't jump around after the erase/copy.

R=sameer
CC=golang-dev
https://golang.org/cl/5981055

»»»
2012-06-13 16:23:45 -04:00
Sameer Ajmani
1927afba99 [release-branch.go1] C: correct entry: jmeurin, not jme.
««« backport 726c57a92c5d
C: correct entry: jmeurin, not jme.

R=golang-dev, rsc
CC=golang-dev, jme, jmeurin
https://golang.org/cl/6192057

»»»
2012-06-13 16:23:44 -04:00
Sameer Ajmani
cc52fe30c1 [release-branch.go1] C: Jeremy Ellington (Google CLA)
««« backport 448f98d1af28
C: Jeremy Ellington (Google CLA)

R=golang-dev, rsc
CC=golang-dev, jme
https://golang.org/cl/6197058

»»»
2012-06-13 16:23:43 -04:00
Shenghou Ma
c60564f59b [release-branch.go1] runtime: fix c compiler warning
««« backport e388ce51be75
runtime: fix c compiler warning

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6185047

»»»
2012-06-13 16:23:43 -04:00
Rémy Oudompheng
778529bd58 [release-branch.go1] math/big: fix superpolynomial complexity in Karatsuba algorithm.
««« backport 7873186d5774
math/big: fix superpolynomial complexity in Karatsuba algorithm.

benchmark                     old ns/op    new ns/op    delta
BenchmarkExp3Power0x10              732          734   +0.27%
BenchmarkExp3Power0x40              834          836   +0.24%
BenchmarkExp3Power0x100            1600         1579   -1.31%
BenchmarkExp3Power0x400            3478         3417   -1.75%
BenchmarkExp3Power0x1000          19388        19229   -0.82%
BenchmarkExp3Power0x4000         160274       156881   -2.12%
BenchmarkExp3Power0x10000       1552050      1372058  -11.60%
BenchmarkExp3Power0x40000      27328710     15216920  -44.32%
BenchmarkExp3Power0x100000    612349000    131407100  -78.54%
BenchmarkExp3Power0x400000  44073524000   1122195000  -97.45%

R=golang-dev, mtj, gri, rsc
CC=golang-dev, remy
https://golang.org/cl/6176043

»»»
2012-06-13 16:23:42 -04:00
Michael Chaten
3cbadbd631 [release-branch.go1] encoding/json: Fix panic when trying to unmarshal the empty string into an integer
««« backport 7ee60b35f644
encoding/json: Fix panic when trying to unmarshal the empty string into an integer

Fixes #3450.

R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/6035050

»»»
2012-06-13 16:23:41 -04:00
Adam Langley
5ccc50c8d6 [release-branch.go1] crypto/x509: fix panic when using unavailable hash function.
««« backport d8d358ddc6e0
crypto/x509: fix panic when using unavailable hash function.

crypto.Hash.New() changed to panicking when the hash function isn't
linked in, but crypto/x509 still expects it to return nil.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6175047

»»»
2012-06-13 16:23:40 -04:00
Shenghou Ma
fcfedc0117 [release-branch.go1] cmd/dist: remove stray src/pkg/runtime/z* when cleaning
««« backport 26fc3f8aa53e
cmd/dist: remove stray src/pkg/runtime/z* when cleaning

R=golang-dev, bradfitz, dave, rsc, lstoakes, rsc
CC=golang-dev
https://golang.org/cl/6180044

»»»
2012-06-13 16:23:39 -04:00
Ian Lance Taylor
c08ef1339e [release-branch.go1] cgo: rename C names for Go types to avoid conflicting with package
««« backport d063a7844d48
cgo: rename C names for Go types to avoid conflicting with package

Fixes #3371.

R=rsc, bsiegert, r, mtj, iant
CC=golang-dev
https://golang.org/cl/6131060

»»»
2012-06-13 16:23:38 -04:00
Robert Hencke
db26f2a473 [release-branch.go1] cmd/go: do not ignore DepsErrors in 'go run'
««« backport 1d4d8324085b
cmd/go: do not ignore DepsErrors in 'go run'

Fixes #3490.

R=golang-dev, dave, rsc
CC=golang-dev
https://golang.org/cl/6040046

»»»
2012-06-13 16:23:38 -04:00
Brad Fitzpatrick
7a4e18dbe6 [release-branch.go1] encoding/base64: don't ignore underlying souce read error in decode
««« backport 69c9477136d3
encoding/base64: don't ignore underlying souce read error in decode

Fixes #3577

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6137054

»»»
2012-06-13 16:23:37 -04:00
Brian Dellisanti
43f2be4f4b [release-branch.go1] os/exec: close all internal descriptors when Cmd.Start() fails.
««« backport 9d046474e95a
os/exec: close all internal descriptors when Cmd.Start() fails.

This closes any internal descriptors (pipes, etc) that Cmd.Start() had
opened before it failed.

Fixes #3468.

R=golang-dev, iant, bradfitz
CC=golang-dev
https://golang.org/cl/5986044

»»»
2012-06-13 16:23:36 -04:00
Ian Lance Taylor
2555bbfdd8 [release-branch.go1] A+C: add Brian Dellisanti (individual CLA)
««« backport f63da4c9c6d7
A+C: add Brian Dellisanti (individual CLA)

R=golang-dev, bsiegert, r
CC=golang-dev
https://golang.org/cl/6127056

»»»
2012-06-13 16:23:35 -04:00
Anthony Martin
0b4c5d7946 [release-branch.go1] path/filepath: fix typo
««« backport 6c742b3b04d1
path/filepath: fix typo

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6117063

»»»
2012-06-13 16:23:33 -04:00
Dave Cheney
3a3d8826b4 [release-branch.go1] lib9: fix warning under clang 3.1
««« backport 73a10f76098b
lib9: fix warning under clang 3.1

Fixes #3534.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6035054

»»»
2012-06-13 16:23:32 -04:00
Shenghou Ma
ec1cbabbac [release-branch.go1] syscall: support Getpid() on Windows
««« backport 6436d0889d29
syscall: support Getpid() on Windows
        Fixes #3379.

R=golang-dev, alex.brainman, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/5909043

»»»
2012-06-13 16:23:31 -04:00
Shenghou Ma
fd30163bdb [release-branch.go1] cmd/api: allow addition of API
««« backport d7ef356b8c17
cmd/api: allow addition of API

R=bradfitz, rsc
CC=golang-dev
https://golang.org/cl/5991081

»»»
2012-06-13 16:23:31 -04:00
Brad Fitzpatrick
8ac275bb01 [release-branch.go1] debug/gosym: in test, use temp binary name in /tmp, and clean up.
««« backport 5e1544310d03
debug/gosym: in test, use temp binary name in /tmp, and clean up.

This fixes all.bash on shared machines.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5992078

»»»
2012-06-13 16:23:29 -04:00
Shenghou Ma
763858faca [release-branch.go1] build: run.bash no longer accepts --no-banner
««« backport bc79188b0281
build: run.bash no longer accepts --no-banner

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5986063

»»»
2012-06-13 16:23:28 -04:00
Shenghou Ma
e983ddae2f [release-branch.go1] build: unset GOROOT_FINAL before tests
««« backport 4ee28b87fb90
build: unset GOROOT_FINAL before tests
        Fix the builders.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5976068

»»»
2012-06-13 16:23:28 -04:00
Sameer Ajmani
2cdf371346 [release-branch.go1] misc/emacs: fix go-mode syntax table and whitespace handling.
««« backport d3896e6fb40e
misc/emacs: fix go-mode syntax table and whitespace handling.
- flag * and / as comment characters
- mark newline as a comment-ender
- include newline in go-mode-whitespace-p

Thanks Jonathan Amsterdam and Steve Yegge for the patch!

R=golang-dev, rsc
CC=golang-dev, jba, stevey
https://golang.org/cl/5938056

»»»
2012-06-13 16:23:24 -04:00
Andrew Gerrand
2a9009f417 [release-branch.go1] undo CL 6118059 / 79503f11634a
Accidentally applied to release branch.

««« original CL description
misc/dist: drop repetition in filenames, default to release tag

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6118059
»»»

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6120056
2012-04-26 13:32:05 -07:00
Andrew Gerrand
50be632ee4 misc/dist: drop repetition in filenames, default to release tag
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6118059
2012-04-26 13:05:10 -07:00
Andrew Gerrand
2fffba7fe1 go1.0.1
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6121054
2012-04-26 12:50:14 -07:00
Andrew Gerrand
1c15a46489 [release-branch.go1] doc: go1.0.1 release notes
««« CL 6123055 / fdfe4968b115
doc: go1.0.1 release notes

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6123055
»»»

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6109062
2012-04-26 12:29:08 -07:00
Shenghou Ma
318b29d661 [release-branch.go1] cmd/godoc: update App Engine README and script for Go 1
««« CL 5849053 / f68d1d478a97
cmd/godoc: update App Engine README and script for Go 1

R=adg, dsymonds
CC=golang-dev
https://golang.org/cl/5849053
»»»

Also applied !appengine build constrain to main.go from CL 5969063
so that the godoc app at release-branch.go1 will build and work properly.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6112063
2012-04-27 03:13:15 +08:00
Andrew Gerrand
c7a1baf1f0 [release-branch.go1] time: doc fix.
««« CL 6127050 / 6d5417240a0c
time: doc fix.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6127050
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/6118057
2012-04-26 11:45:54 -07:00
Andrew Gerrand
19b11c49a9 [release-branch.go1] doc: simplify the image_draw article example for converting an image to
««« CL 6119054 / a7183646b353
doc: simplify the image_draw article example for converting an image to
RGBA.

R=adg, r, bsiegert
CC=golang-dev
https://golang.org/cl/6119054
»»»

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6119056
2012-04-26 11:39:33 -07:00
Andrew Gerrand
6b8d891e4e [release-branch.go1] cmd/go: new tag selection logic
««« CL 6112060 / bcd5635a53b0
cmd/go: new tag selection logic

The new logic is "use go1 if it's there, otherwise no tag."
Nothing needs to say "I require go1.0.1", and I want to
preserve some flexibility in defining what tags mean.

Right now (before go1.0.1) there is only one possible tag,
"go1", and I'd like to keep it that way.

R=golang-dev, bradfitz, r, adg
CC=golang-dev
https://golang.org/cl/6112060
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/6116059
2012-04-26 11:36:07 -07:00
Andrew Gerrand
cbffaffa6d [release-branch.go1] doc: update wiki article to use html/template properly.
««« CL 6116055 / d282c379aad7
doc: update wiki article to use html/template properly.

Fixes #3569.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6116055
»»»

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6119055
2012-04-26 11:34:54 -07:00
Russ Cox
8f2d48993a [release-branch.go1] mime: make ParseMediaType return zero results on error
««« CL 6119051 / 1384d7510575
mime: make ParseMediaType return zero results on error

Fixes #3562

R=golang-dev, adg, rsc
CC=golang-dev
https://golang.org/cl/6119051
»»»

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6127045
2012-04-25 15:44:30 -04:00
Russ Cox
a8cea4cda0 [release-branch.go1] A+C: Akshat Kumar (individual CLA)
««« backport ca2868ad4611
A+C: Akshat Kumar (individual CLA)

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/6004043
»»»
2012-04-10 15:14:04 -04:00
Bobby Powers
342f4bf288 [release-branch.go1] encoding/json: allow punctuation in tag names
««« backport 233ff5d46b3d
encoding/json: allow punctuation in tag names

everything except backslash and the quote chars is fair game.

Fixes #3546.

R=rsc, r
CC=golang-dev
https://golang.org/cl/6048047

»»»
2012-04-25 14:33:33 +10:00
Brad Fitzpatrick
b4ea696b49 [release-branch.go1] mime/multipart: report io.EOF correctly on part ending without newlines
««« backport 4ecca118488b
mime/multipart: report io.EOF correctly on part ending without newlines

If a part ends with "--boundary--", without a final "\r\n",
that's also a graceful EOF, and we should return io.EOF instead
of the fmt-wrapped io.EOF from bufio.Reader.ReadSlice.

I found this bug parsing an image attachment from gmail.
Minimal test case stripped down from the original
gmail-generated attachment included.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6118043
»»»
2012-04-23 22:26:48 -07:00
Rob Pike
c619931610 [release-branch.go1] path: document that Clean deletes trailing slashes.
««« backport ab273014412e
path: document that Clean deletes trailing slashes.

Fixes #3492.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6112044
»»»
2012-04-24 13:17:05 +10:00
Rémy Oudompheng
bff1a8a3b1 [release-branch.go1] net: fix typo in Listener.File() documentation
««« backport 0739e30d5df7
net: fix typo in Listener.File() documentation

R=golang-dev, dave, rsc
CC=golang-dev, remy
https://golang.org/cl/6097044
»»»
2012-04-24 01:27:19 +02:00
Luuk van Dijk
cb6f9ce4c7 [release-branch.go1] cmd/gc: fix addresses escaping through closures called in-place.
««« backport a890477d3dfb
cmd/gc: fix addresses escaping through closures called in-place.

Fixes #3545.

R=rsc
CC=golang-dev
https://golang.org/cl/6061043

»»»
2012-04-23 15:39:01 -04:00
Andrew Gerrand
01dce10cbf [release-branch.go1] doc: sync playground.js
««« backport 953b30b83997
doc: sync playground.js

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5956043
»»»
2012-04-03 08:10:21 +10:00
Rob Pike
86990145a6 [release-branch.go1] reflect: document and test TypeOf(nil)
««« backport 82aaf0925029
reflect: document and test TypeOf(nil)
Fixes #3549.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6107047
»»»
2012-04-23 12:07:02 +10:00
Dave Cheney
8b5350b8e4 [release-branch.go1] net: fix race between Close and Read
««« backport 5f24ff99b5f1
net: fix race between Close and Read

Fixes #3507.

Applied the suggested fix from rsc. If the connection
is in closing state then errClosing will bubble up to
the caller.

The fix has been applied to udp, ip and unix as well as
their code path include nil'ing c.fd on close. Func
tests are available in the linked issue that verified
the bug existed there as well.

R=rsc, fullung, alex.brainman, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/6002053
»»»
2012-04-21 10:01:32 +10:00
Andrew Gerrand
802ac98ffc [release-branch.go1] doc: don't wrap package names in directory listing
««« backport f4f63fb397c6
doc: don't wrap package names in directory listing

Fixes #3522.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/6063054
»»»
2012-04-20 10:04:13 -04:00
Shenghou Ma
554316495f [release-branch.go1] net/http: add example for FileServer to mention StripPrefix
««« backport 362b760ecfc7
net/http: add example for FileServer to mention StripPrefix
        Fixes #3530.

R=golang-dev, rsc, bradfitz
CC=golang-dev
https://golang.org/cl/6032052
»»»
2012-04-20 00:41:10 +08:00
Brad Fitzpatrick
69a8369b87 [release-branch.go1] A+C: add Bjorn Tillenius (Individual CLA)
««« backport b93d51d8ac36
A+C: add Bjorn Tillenius (Individual CLA)

R=golang-dev, kevlar
CC=golang-dev
https://golang.org/cl/6075045
»»»
2012-04-19 09:23:48 -07:00
Brad Fitzpatrick
56612a5dc8 [release-branch.go1] A+C: Add Michael Chaten (Individual CLA)
««« backport a08a6e660bf0
A+C: Add Michael Chaten (Individual CLA)

R=golang-dev, kevlar
CC=golang-dev
https://golang.org/cl/6075044
»»»
2012-04-19 09:18:49 -07:00
Benny Siegert
78bf569018 [release-branch.go1] doc/articles/image_draw.html: Change ColorImage to Uniform
««« backport a224d214002e
doc/articles/image_draw.html: Change ColorImage to Uniform

Fixes #3474.

R=nigeltao
CC=golang-dev
https://golang.org/cl/6048050

»»»
2012-04-19 11:04:42 +10:00
Adam Langley
5fe252d191 [release-branch.go1] encoding/asn1: allow lengths up to the maximum int value.
««« backport d088bc4e2e64
encoding/asn1: allow lengths up to the maximum int value.

Previously we capped lengths at 2**24 rather than 2**31.

R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/6050050
»»»
2012-04-18 13:41:11 -04:00
David Symonds
dd58503eaf [release-branch.go1] flag: update style.
««« backport 059ba0d0dc6a
flag: update style.

R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/6051044
»»»
2012-04-17 16:37:35 +10:00
Brad Fitzpatrick
5c69520377 [release-branch.go1] CONTRIBUTORS: add Colby Ranger (Google CLA)
««« backport 4875dfefc730
CONTRIBUTORS: add Colby Ranger (Google CLA)

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6037052
»»»
2012-04-16 10:25:20 -07:00
Shenghou Ma
85a2bbe135 [release-branch.go1] doc/code: mention $GOBIN
««« backport 543047268d1a
doc/code: mention $GOBIN

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5989045

»»»
2012-04-17 02:41:27 +10:00