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

13024 Commits

Author SHA1 Message Date
Shenghou Ma
f98661e77e [release-branch.go1] cmd/gc: add missing case for OCOM in defaultlit()
««« backport b5c4f411a852
cmd/gc: add missing case for OCOM in defaultlit()
        Fixes #3765.

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

»»»
2012-09-22 05:53:56 +10:00
Amir Mohammad Saied
731bbfef3b [release-branch.go1] cmd/go: httpGet function does not use global variable httpClient
««« backport 650544a058e9
cmd/go: httpGet function does not use global variable httpClient

No change, just for consistency.

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

»»»
2012-09-22 05:53:56 +10:00
Brad Fitzpatrick
9786db83e9 [release-branch.go1] net/http: ignore malicious or dumb Range requests
««« backport d32138d8d05f
net/http: ignore malicious or dumb Range requests

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

»»»
2012-09-22 05:53:56 +10:00
Pieter Droogendijk
df2bb18fae [release-branch.go1] cmd/dist: Make windows.c's fatal() print to stderr
««« backport 3f7501fdb220
cmd/dist: Make windows.c's fatal() print to stderr

Generating env.bat using dist env -wp > env.bat failed silently
if case of an error, because the message was redirected to env.bat.
Verbose messages still go to stdout, causing problems, but that's
a seperate change.
Made errprintf() identical to xprintf(), except for the output handle.
Yes, it's duplicate code, but most of the function is unpacking
the argument list and preparing it for WriteFile(), which has to be
done anyway.

R=golang-dev, alex.brainman
CC=golang-dev
https://golang.org/cl/6343047

»»»
2012-09-22 05:53:55 +10:00
Jean-Marc Eurin
e1092f2746 [release-branch.go1] misc/emacs: Fix the gofmt patching when the TMPDIR is not the default.
««« backport c5f564efc620
misc/emacs: Fix the gofmt patching when the TMPDIR is not the default.

The previous code assumed the gofmt output referred to /tmp but
that's not true if TMPDIR points somewhere else (like on Macs).
Fixes #3782.

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

»»»
2012-09-22 05:53:55 +10:00
Brad Fitzpatrick
118f2163bc [release-branch.go1] net/http: support multiple byte ranges in ServeContent
««« backport 070604630d24
net/http: support multiple byte ranges in ServeContent

Fixes #3784

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

»»»
2012-09-22 05:53:54 +10:00
Andrey Mirtchovski
e3bc1e4206 [release-branch.go1] net/http: Fix a verb-tense mismatch and a typo in documentation.
««« backport f8a77e2b7d0b
net/http: Fix a verb-tense mismatch and a typo in documentation.

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

»»»
2012-09-22 05:53:54 +10:00
Robert Griesemer
6263484de5 [release-branch.go1] go spec: clean up section on selectors
««« backport eb24cee7f21b
go spec: clean up section on selectors

- point out difference between selectors and qualified identifiers
- differentiate between illegal selectors and run-time panics
- use "indirect" as opposed to "dereference" consistently
- add extra links

Fixes #3779.

R=r, rsc, iant, ken
CC=golang-dev
https://golang.org/cl/6326059

»»»
2012-09-22 05:53:53 +10:00
Joe Poirier
f7a20edf47 [release-branch.go1] syscall: add missing argument type
««« backport 3909e0071e70
syscall: add missing argument type

And update implementation location comment.

R=golang-dev, alex.brainman
CC=golang-dev
https://golang.org/cl/6352046

»»»
2012-09-22 05:53:53 +10:00
Robert Griesemer
5c990db214 [release-branch.go1] go spec: clean up use of QualifiedIdent production.
««« backport d8bd45866999
go spec: clean up use of QualifiedIdent production.

Fixes #3763.

R=r, rsc, iant, ken
CC=golang-dev
https://golang.org/cl/6333066

»»»
2012-09-22 05:53:52 +10:00
Russ Cox
7cf931beb0 [release-branch.go1] A+C: L Campbell (individual CLA)
««« backport c88692a626e9
A+C: L Campbell (individual CLA)

Guess I was wrong about being done for the day.

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

»»»
2012-09-22 05:53:52 +10:00
Rob Pike
ba76560a34 [release-branch.go1] fmt: set p.field before nil check
««« backport 5f13e0662e38
fmt: set p.field before nil check
Fixes #3752.

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

»»»
2012-09-22 05:53:51 +10:00
Andrew Gerrand
025324f030 [release-branch.go1] doc: drop video title from homepage
««« backport 9da3902443ca
doc: drop video title from homepage

It's just stutter.

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

»»»
2012-09-22 05:53:51 +10:00
Russ Cox
9c094065d2 [release-branch.go1] A+C: Jonathan Gold (individual CLA)
««« backport ee62927ec779
A+C: Jonathan Gold (individual CLA)

This is my last one for today, I hope!

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

»»»
2012-09-22 05:53:50 +10:00
Russ Cox
a2c35039af [release-branch.go1] A+C: add Michael Stapelberg (individual CLA)
««« backport 04f61caa80cd
A+C: add Michael Stapelberg (individual CLA)

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

»»»
2012-09-22 05:53:50 +10:00
Pieter Droogendijk
2f34673073 [release-branch.go1] go/build: fix doc typo
««« backport e12419d09635
go/build: fix doc typo

go/build section "Build Constraints", first paragraph said:
  "... they must be appear near the top of the file ..."
fixed to:
  "... they must appear near the top of the file ..."

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

»»»
2012-09-22 05:53:49 +10:00
Amir Mohammad Saied
81c423a763 [release-branch.go1] misc/chrome/gophertool: Support for manifest version 1 is being phased out.
««« backport 0f017230e6b4
misc/chrome/gophertool: Support for manifest version 1 is being phased out.

Manifest version 1 was deprecated in Chrome 18, and support will be phased
out according to the schedule available at:
http://code.google.com/chrome/extensions/manifestVersion.html

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

»»»
2012-09-22 05:53:49 +10:00
Russ Cox
270db92140 [release-branch.go1] A+C: Amir Mohammad Saied, Thomas Alan Copeland (both individual CLA)
««« backport 565770878659
A+C: Amir Mohammad Saied, Thomas Alan Copeland (both individual CLA)

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

»»»
2012-09-22 05:53:48 +10:00
Robert Griesemer
ef54d5cff0 [release-branch.go1] spec: clarify receive operator
««« backport c72ac7873261
spec: clarify receive operator

- receiving from a closed channel returns immediately
- in the ,ok form, the 2nd result is of type bool, not
  just boolean (gc and ggcgo agree).

Per dsymonds' suggestion.

R=r, rsc, ken, iant, dsymonds
CC=golang-dev
https://golang.org/cl/6333057

»»»
2012-09-22 05:53:48 +10:00
Russ Cox
3b81bac147 [release-branch.go1] runtime: detect hash map collision problems
««« backport f99b9475b914
runtime: detect hash map collision problems

This can only happen if the hash function we're using is getting
far more than it's fair share of collisions, but that has happened
to us repeatedly as we've expanded the allowed use cases for
hash tables (issue 1544, issue 2609, issue 2630, issue 2883, issue 3695).
Maybe this will help the next time we try something new.

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

»»»
2012-09-22 05:53:47 +10:00
Han-Wen Nienhuys
fd70e5dd66 [release-branch.go1] os: make POSIX StartProcess work with chroot again.
««« backport 2aaa88600d48
os: make POSIX StartProcess work with chroot again.

Skip directory check in startProcess in the presence of
SysProcAttr.

Fixes #3649.

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

»»»
2012-09-22 05:53:47 +10:00
Russ Cox
e409b76bb8 [release-branch.go1] CONTRIBUTORS: add Han-Wen Nienhuys (Google CLA)
««« backport d4b91c10aa5e
CONTRIBUTORS: add Han-Wen Nienhuys (Google CLA)

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

»»»
2012-09-22 05:53:46 +10:00
Dave Cheney
de4d684429 [release-branch.go1] runtime: avoid r9/r10 during memmove
««« backport 5ca8acc84025
runtime: avoid r9/r10 during memmove

Fixes #3718.

Requires CL 6300043.

R=rsc, minux.ma, extraterrestrial.neighbour
CC=golang-dev
https://golang.org/cl/6305100

»»»
2012-09-22 05:53:46 +10:00
Dave Cheney
ad8ecb7d82 [release-branch.go1] runtime: avoid r9/r10 during memset
««« backport 572efb136b1a
runtime: avoid r9/r10 during memset

Partially fixes issue 3718.

R=golang-dev, rsc, minux.ma
CC=golang-dev
https://golang.org/cl/6300043

»»»
2012-09-22 05:53:45 +10:00
David Symonds
5ba3b575bb [release-branch.go1] flag: fix indexing doc.
««« backport 6ca4825bc867
flag: fix indexing doc.

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

»»»
2012-09-22 05:53:45 +10:00
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