1
0
mirror of https://github.com/golang/go synced 2024-11-15 09:40:34 -07:00
Commit Graph

12999 Commits

Author SHA1 Message Date
Brad Fitzpatrick
a1bfd04394 [release-branch.go1] net/http: fix doc inaccuracy and typo; tighten test
««« backport 60041e23de38
net/http: fix doc inaccuracy and typo; tighten test

Note url.Error wrapping, and s/issue/issuing/.

Fixes #3724

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

»»»
2012-09-22 05:53:45 +10:00
Shenghou Ma
4aaf800fd7 [release-branch.go1] runtime: fix struct Sigaction for Linux/386
««« backport 645947213cac
runtime: fix struct Sigaction for Linux/386
        We need to use kernel headers to generate defs_linux_$GOARCH.h

R=golang-dev, dave, alex.brainman, iant
CC=golang-dev
https://golang.org/cl/6296091

»»»
2012-09-22 05:53:44 +10:00
David G. Andersen
133727bd0c [release-branch.go1] net/rpc: fix typo in documentation, clarify semantics of error return
««« backport ef713d7587f2
net/rpc: fix typo in documentation, clarify semantics of error return

Several of my students were confused by trying to use both the error
return and a reply return, so I figured it was worth explicitly clarifying
that returning an error overrides the reply.

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

»»»
2012-09-22 05:53:44 +10:00
David G. Andersen
e67e930344 [release-branch.go1] encoding/json: fix minor typo in documentation for Marshal
««« backport 093dcfc4d307
encoding/json: fix minor typo in documentation for Marshal

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

»»»
2012-09-22 05:53:43 +10:00
Andrew Gerrand
4cc0efc468 [release-branch.go1] doc: put A Tour of Go video on the front page
««« backport a95bedca6dae
doc: put A Tour of Go video on the front page

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

»»»
2012-09-22 05:53:43 +10:00
Mats Lidell
e84e197cca [release-branch.go1] misc/emacs: Replace replace-{string|regexp} for XEmacs compatible code
««« backport d730d2e4733d
misc/emacs: Replace replace-{string|regexp} for XEmacs compatible code

Use code to be used in lisp programs as suggested in the doc strings for
replace-{string|regexp}. Bonus: This code works for XEmacs.

R=golang-dev, sameer, jmeurin
CC=golang-dev
https://golang.org/cl/6296073

»»»
2012-09-22 05:53:42 +10:00
Shenghou Ma
fbf580a3bc [release-branch.go1] doc/articles/slices_usage_and_internals: fix typo
««« backport 5b56c2c0597f
doc/articles/slices_usage_and_internals: fix typo
        Fixes #3753.

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

»»»
2012-09-22 05:53:42 +10:00
Shenghou Ma
c8e6fca26b [release-branch.go1] runtime: fix struct Sigaction for Linux/ARM
««« backport 6eefce99091e
runtime: fix struct Sigaction for Linux/ARM
        if we were to use sizeof(sa.sa_mask) instead of 8 as the last argument
        to rt_sigaction, we would have already fixed this bug, so also updated
        Linux/386 and Linux/amd64 files to use that; also test the return value
        of rt_sigaction.

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

»»»
2012-09-22 05:53:41 +10:00
Brad Fitzpatrick
34141f7c1b [release-branch.go1] net/http: clarify client return values in docs
««« backport f7839a55036e
net/http: clarify client return values in docs

Also, fixes one violation found during testing where both
response and error could be non-nil when a CheckRedirect test
failed.  This is arguably a minor API (behavior, not
signature) change, but it wasn't documented either way and was
inconsistent & non-Go like.  Any code depending on the old
behavior was wrong anyway.

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

»»»
2012-09-22 05:53:41 +10:00
Robert Griesemer
3046fc9754 [release-branch.go1] go/ast: multiple "blank" imports are permitted
««« backport 2033e1b11a20
go/ast: multiple "blank" imports are permitted

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

»»»
2012-09-22 05:53:40 +10:00
Marcel van Lohuizen
002a3b4722 [release-branch.go1] bytes: fixed typo.
««« backport a3c2d3c41c45
bytes: fixed typo.

R=r
CC=golang-dev
https://golang.org/cl/6301096

»»»
2012-09-22 05:53:40 +10:00
Adam Langley
2eb00d042e [release-branch.go1] A+C: Christine Hansmann (individual CLA)
««« backport 4086a221c497
A+C: Christine Hansmann (individual CLA)

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

»»»
2012-09-22 05:53:39 +10:00
Robert Griesemer
0352cdb054 [release-branch.go1] go/ast: Walk: do not walk comment list
««« backport 5e3661048f2e
go/ast: Walk: do not walk comment list

A comment to that effect was introduced
with rev d332f4b9cef5 but the respective
code wasn't deleted.

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

»»»
2012-09-22 05:53:39 +10:00
Shenghou Ma
53538d8ad3 [release-branch.go1] doc: delete Mercurial Queues doc
««« backport 47e7c99fbe87
doc: delete Mercurial Queues doc
        Fixes #3716.

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

»»»
2012-09-22 05:53:39 +10:00
Shenghou Ma
69a3887662 [release-branch.go1] crypto/elliptic: fix doc typo
««« backport 9f9c0363f0ed
crypto/elliptic: fix doc typo
        Fixes #3735.

R=golang-dev, agl
CC=golang-dev
https://golang.org/cl/6301083

»»»
2012-09-22 05:53:38 +10:00
Brad Fitzpatrick
5557e72b70 [release-branch.go1] net/http: use index.html modtime (not directory) for If-Modified-Since
««« backport c536f328c34b
net/http: use index.html modtime (not directory) for If-Modified-Since

Thanks to Håvid Falch for finding the problem.

Fixes #3414

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

»»»
2012-09-22 05:53:38 +10:00
Russ Cox
63608ff3be [release-branch.go1] runtime: replace runtime·rnd function with ROUND macro
««« backport 722bb90ae3ee
runtime: replace runtime·rnd function with ROUND macro

It's sad to introduce a new macro, but rnd shows up consistently
in profiles, and the function call overwhelms the two arithmetic
instructions it performs.

R=r
CC=golang-dev
https://golang.org/cl/6260051

»»»
2012-09-22 05:53:37 +10:00
Brad Fitzpatrick
1f107b58f7 [release-branch.go1] net/http: fix response Connection: close, close client connections
««« backport 4c333000f50b
net/http: fix response Connection: close, close client connections

Fixes #3663
Updates #3540 (fixes it more)
Updates #1967 (fixes it more, re-enables a test)

R=golang-dev, n13m3y3r
CC=golang-dev
https://golang.org/cl/6213064

»»»
2012-09-22 05:53:37 +10:00
Brad Fitzpatrick
299e7d20a3 [release-branch.go1] net/http: fix regression and mute known test failure for now
««« backport c3cbd6798cc7
net/http: fix regression and mute known test failure for now

Two tests added in 820ffde8c are expected to fail until the fix
for Issue 3540 goes back in (pending Windows net fixes), so
make those tests just Logf for now, with a TODO to re-enable.

Add a new client test.

Rearrange the transport code to be more readable, and fix the
bug from 820ffde8c where the persistConn was being closed before
the body was fully ready.

Fixes #3644
Updates #1967 (not yet fixed, but should be after Issue 3540)

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

»»»
2012-09-22 05:53:36 +10:00
James Gray
4900af0839 [release-branch.go1] net/http: non-keepalive connections close successfully
««« backport 820ffde8c396
net/http: non-keepalive connections close successfully

Connections did not close if Request.Close or Response.Close was true. This meant that if the user wanted the connection to close, or if the server requested it via "Connection: close", the connection would not be closed.

Fixes #1967.

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

»»»
2012-09-22 05:53:36 +10:00
Brad Fitzpatrick
6e3205f519 [release-branch.go1] net/http: ignore paths on CONNECT requests in ServeMux
««« backport 8eae6e390d20
net/http: ignore paths on CONNECT requests in ServeMux

Fixes #3538

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

»»»
2012-09-22 05:53:35 +10:00
Anthony Martin
59db4e26d2 [release-branch.go1] os: avoid panic when testing errors on Plan 9
««« backport 99b8351bfb9e
os: avoid panic when testing errors on Plan 9

R=golang-dev, bradfitz, akumar
CC=golang-dev
https://golang.org/cl/6017043

»»»
2012-09-22 05:53:35 +10:00
Shenghou Ma
2898687794 [release-branch.go1] 5c, 6c, 8c: take GOROOT_FINAL into consideration
««« backport 016c4fefed77
5c, 6c, 8c: take GOROOT_FINAL into consideration

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

»»»
2012-09-22 05:53:34 +10:00
Shenghou Ma
cb71577d10 [release-branch.go1] 5a, 6a, 8a: take GOROOT_FINAL into consideration
««« backport a608a03df703
5a, 6a, 8a: take GOROOT_FINAL into consideration

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

»»»
2012-09-22 05:53:32 +10:00
Andrew Gerrand
cb6c6570b7 [release-branch.go1] syscall: fix windows build
««« CL 6303061 / 17432a753e50
syscall: fix windows build

TBR=bradfitz
CC=golang-dev
https://golang.org/cl/6303061
»»»

R=golang-dev
CC=golang-dev
https://golang.org/cl/6295080
2012-06-14 12:50:42 +10:00
Russ Cox
d0eabe2bbf [release-branch.go1] syscall: fix GetCurrentProcessId symbol name on Windows 2012-06-13 22:06:57 -04:00
Andrew Gerrand
75fff72d44 [release-branch.go1] doc: document go1.0.2
««« CL 6298079 / a19665fe6f33
doc: document go1.0.2

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

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6302076
2012-06-14 11:50:00 +10:00
Russ Cox
5d333a6de5 [release-branch.go1] update VERSION to go1.0.2 2012-06-13 16:25:02 -04:00
Russ Cox
596e6f390b [release-branch.go1] syscall: unexport GetCurrentProcessId on Windows 2012-06-13 16:25:01 -04:00
Jan Ziak
96ab6e4a84 [release-branch.go1] runtime: improved continuity in hash computation
««« backport c8d163b7930e
runtime: improved continuity in hash computation

Fixes #3695.

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

»»»
2012-06-13 16:25:00 -04:00
Jean-Marc Eurin
4a0549ffc6 [release-branch.go1] misc/emacs: Fix a failure when /tmp/<file>.go exists.
««« backport 903a3cdd92cf
misc/emacs: Fix a failure when /tmp/<file>.go exists.

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

»»»
2012-06-13 16:25:00 -04:00
Jean-Marc Eurin
95c8f44f3a [release-branch.go1] misc/emacs: Fix the automatic gofmt when creating a new file.
««« backport 5b4920fe3605
misc/emacs: Fix the automatic gofmt when creating a new file.

Patching the buffer with the output from gofmt -d only works if
the file already exists. If it doesn't, replace the content with
the output of gofmt.

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

»»»
2012-06-13 16:24:59 -04:00
Brad Fitzpatrick
687e047b14 [release-branch.go1] encoding/gob: fix doc typo
««« backport d34766b79c5e
encoding/gob: fix doc typo

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

»»»
2012-06-13 16:24:58 -04:00
Russ Cox
2117541627 [release-branch.go1] syscall: revert API changes in Windows Win32finddata fix.
««« backport 7a7a91c3da32
syscall: revert API changes in Windows Win32finddata fix.

Preserve old API by using correct struct in system call
and then copying the results, as we did for SetsockoptLinger.

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

»»»
2012-06-13 16:24:57 -04:00
Russ Cox
1ddbfeedae [release-branch.go1] cmd/api: handle empty API file, ignore -next in release
««« backport 8e7ad2db0833
cmd/api: handle empty API file, ignore -next in release

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

»»»
2012-06-13 16:24:56 -04:00
Russ Cox
e819613d08 [release-branch.go1] regexp/syntax: unexport ErrUnexpectedParen
««« backport b4cdcec897fb
regexp/syntax: unexport ErrUnexpectedParen

This new error is the only API change in the current draft of
Go 1.0.2 CLs. I'd like to include the CL that introduced it,
because it replaces a mysterious 'internal error' with a
useful error message, but I don't want any API changes,
so unexport the error constant for now. It can be
re-exported for Go 1.1.

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

»»»
2012-06-13 16:24:55 -04:00
Dave Cheney
ef902f8c8e [release-branch.go1] cmd/5c, cmd/5g, cmd/5l: fix cross compilation failure on darwin
««« backport 432f2b7f5458
cmd/5c, cmd/5g, cmd/5l: fix cross compilation failure on darwin

Fixes #3708.

The fix to allow 5{c,g,l} to compile under clang 3.1 broke cross
compilation on darwin using the Apple default compiler on 10.7.3.

This failure was introduced in 9b455eb64690.

This has been tested by cross compiling on darwin/amd64 to linux/arm using

* gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)
* clang version 3.1 (branches/release_31)

As well as on linux/arm using

* gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5)
* Ubuntu clang version 3.0-6ubuntu3 (tags/RELEASE_30/final) (based on LLVM 3.0)
* Debian clang version 3.1-4 (branches/release_31) (based on LLVM 3.1)

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

»»»
2012-06-13 16:24:54 -04:00
Russ Cox
2c396a8f4a [release-branch.go1] cmd/cgo: make Go code order deterministic
««« backport 319a9f3330d0
cmd/cgo: make Go code order deterministic

The type declarations were being generated using
a range over a map, which meant that successive
runs produced different orders. This will make sure
successive runs produce the same files.

Fixes #3707.

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

»»»
2012-06-13 16:24:54 -04:00
Russ Cox
5169191e96 [release-branch.go1] cmd/gc: limit data disassembly to -SS
««« backport 14ce24bcd818
cmd/gc: limit data disassembly to -SS

This makes -S useful again.

R=ken2
CC=golang-dev
https://golang.org/cl/6302054

»»»
2012-06-13 16:24:53 -04:00
Russ Cox
a2f13c8cf2 [release-branch.go1] cmd/gc: fix LEAQ $0, SI bug
««« backport c4a344d25b87
cmd/gc: fix LEAQ $0, SI bug

Cannot take effective address of constant.

Fixes #3670.

R=ken2
CC=golang-dev
https://golang.org/cl/6299055

»»»
2012-06-13 16:24:52 -04:00
Russ Cox
0d5061ac95 [release-branch.go1] cmd/gc: fix type checking loop
««« backport e69400ace361
cmd/gc: fix type checking loop

CL 4313064 fixed its test case but did not address a
general enough problem:

type T1 struct { F *T2 }
type T2 T1
type T3 T2

could still end up copying the definition of T1 for T2
before T1 was done being evaluated, or T3 before T2
was done.

In order to propagate the updates correctly,
record a copy of an incomplete type for re-execution
once the type is completed. Roll back CL 4313064.

Fixes #3709.

R=ken2
CC=golang-dev, lstoakes
https://golang.org/cl/6301059

»»»
2012-06-13 16:24:51 -04:00
Russ Cox
61364c1b97 [release-branch.go1] cmd/gc: delete dead code
««« backport 721d528a4e91
cmd/gc: delete dead code

R=ken2
CC=golang-dev
https://golang.org/cl/6307050

»»»
2012-06-13 16:24:50 -04:00
Russ Cox
a56e41d518 [release-branch.go1] cmd/gc: do not crash on struct with _ field
««« backport af07f1cd12dc
cmd/gc: do not crash on struct with _ field

Fixes #3607.

R=ken2
CC=golang-dev
https://golang.org/cl/6296052

»»»
2012-06-13 16:24:49 -04:00
Russ Cox
4bc9ddf82f [release-branch.go1] cmd/gc: preserve side effects during inlining of function with _ argument
««« backport 0ba8e27c7b87
cmd/gc: preserve side effects during inlining of function with _ argument

Fixes #3593.

R=ken2
CC=golang-dev, lvd
https://golang.org/cl/6305061

»»»
2012-06-13 16:24:49 -04:00
Russ Cox
dc0f7d6fde [release-branch.go1] encoding/json: fix panic unmarshaling into non-nil interface value
««« backport bee83c1509a3
encoding/json: fix panic unmarshaling into non-nil interface value

Fixes #3614.

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

»»»
2012-06-13 16:24:48 -04:00
Russ Cox
cec2715018 [release-branch.go1] cmd/gc: mark output of typename as type-checked
««« backport d39a44280dd3
cmd/gc: mark output of typename as type-checked

R=ken2
CC=golang-dev
https://golang.org/cl/6302051

»»»
2012-06-13 16:24:47 -04:00
Daniel Morsing
24ee3e4eef [release-branch.go1] fmt: fix doc typo
««« backport 76f136192aac
fmt: fix doc typo

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

»»»
2012-06-13 16:24:46 -04:00
Russ Cox
0db7bc2ed8 [release-branch.go1] A+C: Daniel Morsing (individual CLA)
««« backport a47632179cb7
A+C: Daniel Morsing (individual CLA)

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

»»»
2012-06-13 16:24:45 -04:00
Russ Cox
2ed8b2011d [release-branch.go1] A+C: Markus Sonderegger (individual CLA)
««« backport a6e2b17a16d7
A+C: Markus Sonderegger (individual CLA)

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

»»»
2012-06-13 16:24:44 -04:00
Shenghou Ma
d261dc39aa [release-branch.go1] build: restore PATH before "dist banner"
««« backport 2787cca7ac8f
build: restore PATH before "dist banner"
        Fixes #3699.

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

»»»
2012-06-13 16:24:44 -04:00