]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
10 years agogo1.2.2 go1.2.2
Andrew Gerrand [Mon, 5 May 2014 17:43:37 +0000 (10:43 -0700)]
go1.2.2

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

10 years ago[release-branch.go1.2] doc: document go1.2.2
Andrew Gerrand [Mon, 5 May 2014 17:21:58 +0000 (10:21 -0700)]
[release-branch.go1.2] doc: document go1.2.2

««« CL 100110043 / 51dc50080c9f
doc: document go1.2.2

R=rsc, bradfitz
CC=golang-codereviews
https://golang.org/cl/100110043
»»»

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

10 years agogo1.2.1 go1.2.1
Andrew Gerrand [Mon, 3 Mar 2014 00:53:08 +0000 (11:53 +1100)]
go1.2.1

R=minux.ma, r
CC=golang-codereviews, golang-dev
https://golang.org/cl/70650043

10 years ago[release-branch.go1.2] doc: document Go 1.2.1
Andrew Gerrand [Mon, 3 Mar 2014 00:49:00 +0000 (11:49 +1100)]
[release-branch.go1.2] doc: document Go 1.2.1

Note the installation instructions change doesn't apply here,
so I had to patch this in manually instead of using release-apply.

R=minux.ma, r
CC=golang-codereviews, golang-dev
https://golang.org/cl/69860047

10 years ago[release-branch.go1.2] runtime: fix crash in runtime.GoroutineProfile
Russ Cox [Fri, 28 Feb 2014 22:13:59 +0000 (17:13 -0500)]
[release-branch.go1.2] runtime: fix crash in runtime.GoroutineProfile

This CL is not exactly a copy of the original quoted below.
This CL omits the changes made to mgc0.c in the original.
Those changes do not apply cleanly to the Go 1.2 tree,
and they were cosmetic, simplifying code that was already
doing the right thing.

To double-check that omitting the mgc0.c change has not
invalidated the fix, I have verified by hand that the test program
in issue 6946 fails without this CL and passes with this CL.

««« CL 41640043 / e4c381446b48
runtime: fix crash in runtime.GoroutineProfile

This is a possible Go 1.2.1 candidate.

Fixes #6946.

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

LGTM=adg
R=adg
CC=golang-codereviews, golang-dev, iant, r
https://golang.org/cl/68820045

10 years ago[release-branch.go1.2] runtime: if traceback sees a breakpoint, don't change the PC
Russ Cox [Fri, 28 Feb 2014 03:43:47 +0000 (22:43 -0500)]
[release-branch.go1.2] runtime: if traceback sees a breakpoint, don't change the PC

««« CL 49580044 / 38cd458b1dfe
runtime: if traceback sees a breakpoint, don't change the PC

Changing the PC confuses gdb, because execution does not
continue where gdb expects it.  Not changing the PC has the
potential to confuse a stack dump, but when running under gdb
it seems better to confuse a stack dump than to confuse gdb.

Fixes #6776.

LGTM=rsc
R=golang-codereviews, dvyukov, rsc
CC=golang-codereviews
https://golang.org/cl/49580044
»»»

LGTM=r
R=golang-codereviews, r
CC=golang-dev
https://golang.org/cl/69800043

10 years ago[release-branch.go1.2] runtime: fix data race in GC
Russ Cox [Fri, 28 Feb 2014 03:43:34 +0000 (22:43 -0500)]
[release-branch.go1.2] runtime: fix data race in GC

««« CL 52090045 / 302bdb5b08b1
runtime: fix data race in GC
Fixes #5139.
Update #7065.

R=golang-codereviews, bradfitz, minux.ma
CC=golang-codereviews
https://golang.org/cl/52090045
»»»

LGTM=r
R=golang-codereviews, r
CC=golang-dev
https://golang.org/cl/69790043

10 years ago[release-branch.go1.2] net: ignore some errors in windows Accept
Russ Cox [Fri, 28 Feb 2014 03:43:23 +0000 (22:43 -0500)]
[release-branch.go1.2] net: ignore some errors in windows Accept

««« CL 49490043 / 7ecbc2b8ec97
net: ignore some errors in windows Accept

Fixes #6987

R=golang-codereviews, dvyukov
CC=golang-codereviews
https://golang.org/cl/49490043
»»»

LGTM=r
R=golang-codereviews, r
CC=golang-dev
https://golang.org/cl/69780044

10 years ago[release-branch.go1.2] database/sql: Use all connections in pool
Russ Cox [Fri, 28 Feb 2014 03:43:10 +0000 (22:43 -0500)]
[release-branch.go1.2] database/sql: Use all connections in pool

««« CL 40410043 / 8a7ac002f840
database/sql: Use all connections in pool

The last connection in the pool was not being handed out correctly.

R=golang-codereviews, gobot, bradfitz
CC=golang-codereviews
https://golang.org/cl/40410043

»»»

LGTM=r
R=golang-codereviews, r
CC=golang-dev
https://golang.org/cl/68820044

10 years agogo1.2 go1.2
Andrew Gerrand [Thu, 28 Nov 2013 21:32:31 +0000 (08:32 +1100)]
go1.2

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

10 years ago[release-branch.go1.2] doc/install.html: fix a tag.
Andrew Gerrand [Thu, 28 Nov 2013 20:05:05 +0000 (07:05 +1100)]
[release-branch.go1.2] doc/install.html: fix a tag.

««« CL 30900044 / 65bf677ab8d8
doc/install.html: fix a tag.

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

»»»

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

10 years ago[release-branch.go1.2] misc/vim: describe how to get gofmt-on-save behaviour.
Andrew Gerrand [Thu, 28 Nov 2013 20:04:23 +0000 (07:04 +1100)]
[release-branch.go1.2] misc/vim: describe how to get gofmt-on-save behaviour.

««« CL 31770043 / 286f0ddb799b
misc/vim: describe how to get gofmt-on-save behaviour.

Fixes #6826.

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

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

10 years ago[release-branch.go1.2] README: Fix installation instructions
Andrew Gerrand [Thu, 28 Nov 2013 20:03:43 +0000 (07:03 +1100)]
[release-branch.go1.2] README: Fix installation instructions

««« CL 28500043 / 1140207a3395
README: Fix installation instructions
They were out of date and should refer to the source installation instructions.

Fixes #6783.

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

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

10 years ago[release-branch.go1.2] doc: update installation instructions
Andrew Gerrand [Thu, 28 Nov 2013 20:03:02 +0000 (07:03 +1100)]
[release-branch.go1.2] doc: update installation instructions

««« CL 28700043 / 8b3699321603
doc: update installation instructions

Clarify that GOROOT should only be set when using a custom install path.
Remove NetBSD from binary install page (we don't provide binaries).
Remove "What's next" links from installation instructions.
Emphasize "How to Write Go Code" page.

Fixes #6613.

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

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

10 years agogo1.2rc5 go1.2rc5
Andrew Gerrand [Mon, 18 Nov 2013 01:44:03 +0000 (12:44 +1100)]
go1.2rc5

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

10 years ago[release-branch.go1.2] C: add Marko Mikulicic (Google CLA)
Andrew Gerrand [Mon, 18 Nov 2013 01:41:48 +0000 (12:41 +1100)]
[release-branch.go1.2] C: add Marko Mikulicic (Google CLA)

««« CL 27000043 / c8d3de543c1b
C: add Marko Mikulicic (Google CLA)

R=golang-dev, crawshaw
CC=golang-dev
https://golang.org/cl/27000043
»»»

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

10 years ago[release-branch.go1.2] doc/asm: more about SP, ARM R11
Andrew Gerrand [Mon, 18 Nov 2013 01:40:54 +0000 (12:40 +1100)]
[release-branch.go1.2] doc/asm: more about SP, ARM R11

««« CL 26170043 / b1edf8faa5d6
doc/asm: more about SP, ARM R11

Also rename URL to /doc/asm.

R=golang-dev, minux.ma, r
CC=golang-dev
https://golang.org/cl/26170043
»»»

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

10 years ago[release-branch.go1.2] encoding/gob: do not use MarshalText, UnmarshalText
Andrew Gerrand [Mon, 18 Nov 2013 01:40:00 +0000 (12:40 +1100)]
[release-branch.go1.2] encoding/gob: do not use MarshalText, UnmarshalText

««« CL 22770044 / 23fc3139589c
encoding/gob: do not use MarshalText, UnmarshalText

This seems to be the best of a long list of bad ways to fix this issue.

Fixes #6760.

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

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

10 years ago[release-branch.go1.2] encoding/gob: expose encode/decode example
Andrew Gerrand [Mon, 18 Nov 2013 01:38:31 +0000 (12:38 +1100)]
[release-branch.go1.2] encoding/gob: expose encode/decode example

««« CL 26220045 / d76ade89413f
encoding/gob: expose encode/decode example

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

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

10 years agogo1.2rc4 go1.2rc4
Andrew Gerrand [Wed, 13 Nov 2013 04:29:48 +0000 (15:29 +1100)]
go1.2rc4

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

10 years ago[release-branch.go1.2] src/cmd/?a: link to new assembler document
Andrew Gerrand [Wed, 13 Nov 2013 04:17:48 +0000 (15:17 +1100)]
[release-branch.go1.2] src/cmd/?a: link to new assembler document

««« CL 18430044 / 1a86e8314ff5
src/cmd/?a: link to new assembler document
Blocked on 20930043, the CL the new text references.

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

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

10 years ago[release-branch.go1.2] doc/asm.html: new document, a brief guide to the assembler
Andrew Gerrand [Wed, 13 Nov 2013 04:13:59 +0000 (15:13 +1100)]
[release-branch.go1.2] doc/asm.html: new document, a brief guide to the assembler

««« CL 20930043 / 5a585f237d28
doc/asm.html: new document, a brief guide to the assembler

Fixes #6060

R=golang-dev, iant, bradfitz, josharian, minux.ma, aram, rsc
CC=golang-dev
https://golang.org/cl/20930043
»»»

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

10 years ago[release-branch.go1.2] spec: clarify rules for blank identifiers
Andrew Gerrand [Wed, 13 Nov 2013 03:40:41 +0000 (14:40 +1100)]
[release-branch.go1.2] spec: clarify rules for blank identifiers

««« CL 14415043 / 4daa80747394
spec: clarify rules for blank identifiers

This documents the status quo more precisely.
Not a language change.

Fixes #6006.

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

»»»

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

10 years ago[release-branch.go1.2] doc: use the same wording for OS X as the other OSes
Andrew Gerrand [Wed, 13 Nov 2013 03:39:53 +0000 (14:39 +1100)]
[release-branch.go1.2] doc: use the same wording for OS X as the other OSes

««« CL 25670043 / b7308814101a
doc: use the same wording for OS X as the other OSes

I used "and above" when I should have said "or later".

Sorry for the churn.

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

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

10 years ago[release-branch.go1.2] doc: we support all recent versions of OS X
Andrew Gerrand [Wed, 13 Nov 2013 03:39:07 +0000 (14:39 +1100)]
[release-branch.go1.2] doc: we support all recent versions of OS X

««« CL 25370045 / d809ded6f335
doc: we support all recent versions of OS X

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

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

10 years ago[release-branch.go1.2] CONTRIBUTORS: add additional e-mail address for Richard Musiol
Andrew Gerrand [Wed, 13 Nov 2013 03:38:19 +0000 (14:38 +1100)]
[release-branch.go1.2] CONTRIBUTORS: add additional e-mail address for Richard Musiol

««« CL 25360043 / 37afbf6361e2
CONTRIBUTORS: add additional e-mail address for Richard Musiol

R=adonovan
CC=golang-dev
https://golang.org/cl/25360043
»»»

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

10 years ago[release-branch.go1.2] A+C: Richard Musiol (individual CLA)
Andrew Gerrand [Wed, 13 Nov 2013 03:37:32 +0000 (14:37 +1100)]
[release-branch.go1.2] A+C: Richard Musiol (individual CLA)

««« CL 25350043 / d3cc963320cd
A+C: Richard Musiol (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://golang.org/cl/25350043
»»»

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

10 years ago[release-branch.go1.2] misc/vim: add a gofmt_command flag for :Fmt
Andrew Gerrand [Wed, 13 Nov 2013 03:36:45 +0000 (14:36 +1100)]
[release-branch.go1.2] misc/vim: add a gofmt_command flag for :Fmt

««« CL 22940044 / 39c724dd7f25
misc/vim: add a gofmt_command flag for :Fmt

R=dsymonds, dominik.honnef, n13m3y3r, rsc, kamil.kisiel
CC=golang-dev
https://golang.org/cl/22940044

»»»

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

10 years ago[release-branch.go1.2] cmd/godoc: document package-level examples
Andrew Gerrand [Wed, 13 Nov 2013 03:35:59 +0000 (14:35 +1100)]
[release-branch.go1.2] cmd/godoc: document package-level examples

««« CL 23940043 / 6ad0ec54cf2d
cmd/godoc: document package-level examples

Fixes  issue  5807 .

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

»»»

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

10 years ago[release-branch.go1.2] misc/emacs: various cleanups
Andrew Gerrand [Wed, 13 Nov 2013 03:35:13 +0000 (14:35 +1100)]
[release-branch.go1.2] misc/emacs: various cleanups

««« CL 20100043 / 9fe43a708b89
misc/emacs: various cleanups

- Use #' for function symbols
- Remove unused variables
- Use declare-function to shut up byte compiler

This is identical to CL 19010044 with one exception: Making sure
it doesn't break on Emacs 22.1

R=adonovan, bradfitz, shendaras
CC=golang-dev
https://golang.org/cl/20100043

»»»

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

10 years ago[release-branch.go1.2] emacs: allow users to customize the gofmt command, in particul...
Andrew Gerrand [Wed, 13 Nov 2013 03:34:24 +0000 (14:34 +1100)]
[release-branch.go1.2] emacs: allow users to customize the gofmt command, in particular, to use goimports instead.

««« CL 23680043 / 341a490e4736
emacs: allow users to customize the gofmt command, in particular, to use goimports instead.

R=adonovan
CC=golang-dev
https://golang.org/cl/23680043
»»»

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

10 years ago[release-branch.go1.2] cmd/cgo: fix handling of array of pointers when using clang
Andrew Gerrand [Wed, 13 Nov 2013 03:33:38 +0000 (14:33 +1100)]
[release-branch.go1.2] cmd/cgo: fix handling of array of pointers when using clang

««« CL 22840043 / e6794866ebeb
cmd/cgo: fix handling of array of pointers when using clang

Clang does not record the "size" field for pointer types,
so we must insert the size ourselves. We were already
doing this, but only for the case of pointer types.
For an array of pointer types, the setting of the size for
the nested pointer type was happening after the computation
of the size of the array type, meaning that the array type
was always computed as 0 bytes. Delay the size computation.

This bug happens on all Clang systems, not just FreeBSD.
Our test checked that cgo wrote something, not that it was correct.
FreeBSD's default clang rejects array[0] as a C struct field,
so it noticed the incorrect sizes. But the sizes were incorrect
everywhere.

Update testcdefs to check the output has the right semantics.

Fixes #6292.

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

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

10 years ago[release-branch.go1.2] doc: update note about GCC 4.8.2 in gccgo instructions
Andrew Gerrand [Wed, 13 Nov 2013 03:32:47 +0000 (14:32 +1100)]
[release-branch.go1.2] doc: update note about GCC 4.8.2 in gccgo instructions

««« CL 22510043 / 77e77f508509
doc: update note about GCC 4.8.2 in gccgo instructions

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/22510043
»»»

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

10 years ago[release-branch.go1.2] go/doc: add full stop of Japanese, Chinese and Korean.
Andrew Gerrand [Wed, 13 Nov 2013 03:31:58 +0000 (14:31 +1100)]
[release-branch.go1.2] go/doc: add full stop of Japanese, Chinese and Korean.

««« CL 21130043 / 0685a9549d5a
go/doc: add full stop of Japanese, Chinese and Korean.

This fix will show a good synopsis on package listings in that languages.

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

»»»

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

10 years ago[release-branch.go1.2] A+C: Ato Araki (individual CLA)
Andrew Gerrand [Wed, 13 Nov 2013 03:31:09 +0000 (14:31 +1100)]
[release-branch.go1.2] A+C: Ato Araki (individual CLA)

««« CL 21790043 / cbbdbdf908b9
A+C: Ato Araki (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://golang.org/cl/21790043
»»»

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

10 years ago[release-branch.go1.2] doc/go1.2: link to cgo documentation
Andrew Gerrand [Wed, 13 Nov 2013 03:30:20 +0000 (14:30 +1100)]
[release-branch.go1.2] doc/go1.2: link to cgo documentation

««« CL 21770043 / ae58065f7dff
doc/go1.2: link to cgo documentation

I know it's linked in the previous sentence, but this new link is where I want it to be while reading this sentence.

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

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

10 years ago[release-branch.go1.2] net/textproto: fix CanonicalMIMEHeaderKey panic
Andrew Gerrand [Wed, 13 Nov 2013 03:29:35 +0000 (14:29 +1100)]
[release-branch.go1.2] net/textproto: fix CanonicalMIMEHeaderKey panic

««« CL 21450043 / e081962da65c
net/textproto: fix CanonicalMIMEHeaderKey panic

Fixes #6712

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

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

10 years ago[release-branch.go1.2] C: add Robert Snedegar (Google CLA)
Andrew Gerrand [Wed, 13 Nov 2013 03:28:46 +0000 (14:28 +1100)]
[release-branch.go1.2] C: add Robert Snedegar (Google CLA)

««« CL 21390044 / dc2762a9130d
C: add Robert Snedegar (Google CLA)

R=golang-dev
CC=golang-dev
https://golang.org/cl/21390044
»»»

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

10 years ago[release-branch.go1.2] C: add Brad Garcia (Google CLA)
Andrew Gerrand [Wed, 13 Nov 2013 03:27:59 +0000 (14:27 +1100)]
[release-branch.go1.2] C: add Brad Garcia (Google CLA)

««« CL 19990045 / 78cebfb89b21
C: add Brad Garcia (Google CLA)

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

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

10 years agogo1.2rc3 go1.2rc3
Andrew Gerrand [Fri, 1 Nov 2013 01:44:30 +0000 (12:44 +1100)]
go1.2rc3

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

10 years ago[release-branch.go1.2] cmd/5l, runtime: fix divide for profiling tracebacks on ARM
Andrew Gerrand [Fri, 1 Nov 2013 00:34:40 +0000 (11:34 +1100)]
[release-branch.go1.2] cmd/5l, runtime: fix divide for profiling tracebacks on ARM

««« CL 19910044 / 9eb64f5ef3a6
cmd/5l, runtime: fix divide for profiling tracebacks on ARM

Two bugs:
1. The first iteration of the traceback always uses LR when provided,
which it is (only) during a profiling signal, but in fact LR is correct
only if the stack frame has not been allocated yet. Otherwise an
intervening call may have changed LR, and the saved copy in the stack
frame should be used. Fix in traceback_arm.c.

2. The division runtime call adds 8 bytes to the stack. In order to
keep the traceback routines happy, it must copy the saved LR into
the new 0(SP). Change

        SUB $8, SP

into

        MOVW    0(SP), R11 // r11 is temporary, for use by linker
        MOVW.W  R11, -8(SP)

to update SP and 0(SP) atomically, so that the traceback always
sees a saved LR at 0(SP).

Fixes #6681.

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

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

10 years ago[release-branch.go1.2] doc/go1.2.html: delete repeated word
Andrew Gerrand [Fri, 1 Nov 2013 00:33:51 +0000 (11:33 +1100)]
[release-branch.go1.2] doc/go1.2.html: delete repeated word

««« CL 19840043 / 938b64b0f608
doc/go1.2.html: delete repeated word
TBR=rsc

R=golang-dev
CC=golang-dev
https://golang.org/cl/19840043
»»»

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

10 years ago[release-branch.go1.2] doc/go1.2.html: stack sizes, thread limits
Andrew Gerrand [Fri, 1 Nov 2013 00:33:03 +0000 (11:33 +1100)]
[release-branch.go1.2] doc/go1.2.html: stack sizes, thread limits

««« CL 19600043 / 746466b52725
doc/go1.2.html: stack sizes, thread limits

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

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

10 years ago[release-branch.go1.2] cmd/cgo: accept extra leading _ on __cgodebug_data for all...
Andrew Gerrand [Fri, 1 Nov 2013 00:32:10 +0000 (11:32 +1100)]
[release-branch.go1.2] cmd/cgo: accept extra leading _ on __cgodebug_data for all object formats

««« CL 19780043 / 8b49cdda6ff4
cmd/cgo: accept extra leading _ on __cgodebug_data for all object formats

The current Windows build breakage appears to be because
the Windows code should be looking for __cgodebug_data
not ___cgodebug_data. Dodge the question everywhere by
accepting both.

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

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

10 years ago[release-branch.go1.2] database/sql: document Result methods
Andrew Gerrand [Fri, 1 Nov 2013 00:31:18 +0000 (11:31 +1100)]
[release-branch.go1.2] database/sql: document Result methods

««« CL 19280046 / 2ad8ac71220d
database/sql: document Result methods

Fixes #5110

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

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

10 years ago[release-branch.go1.2] database/sql: Fix typos in doc
Andrew Gerrand [Fri, 1 Nov 2013 00:30:30 +0000 (11:30 +1100)]
[release-branch.go1.2] database/sql: Fix typos in doc

««« CL 17590043 / fb5224487f1b
database/sql: Fix typos in doc

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

»»»

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

10 years ago[release-branch.go1.2] A+C: Jakob Borg (individual CLA).
Andrew Gerrand [Fri, 1 Nov 2013 00:29:41 +0000 (11:29 +1100)]
[release-branch.go1.2] A+C: Jakob Borg (individual CLA).

««« CL 19510043 / ae106f792e5d
A+C: Jakob Borg (individual CLA).

R=golang-dev
CC=golang-dev
https://golang.org/cl/19510043
»»»

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

10 years ago[release-branch.go1.2] time: correct path to time zone zip file on Unix
Andrew Gerrand [Fri, 1 Nov 2013 00:28:57 +0000 (11:28 +1100)]
[release-branch.go1.2] time: correct path to time zone zip file on Unix

««« CL 19280043 / 9d199c7582d6
time: correct path to time zone zip file on Unix

Most Unix systems have their own time zone data,
so we almost never get far enough in the list to
discover that we cannot fall back to the zip file.
Adjust testing to exercise the final fallback.

Plan 9 and Windows were already correct
(and are the main users of the zip file).

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

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

10 years ago[release-branch.go1.2] encoding/xml: fix doc comment
Andrew Gerrand [Fri, 1 Nov 2013 00:28:07 +0000 (11:28 +1100)]
[release-branch.go1.2] encoding/xml: fix doc comment

««« CL 19300046 / 5ac568b9d67b
encoding/xml: fix doc comment

The tag is ",chardata" not "chardata".

Fixes #6631.

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

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

10 years ago[release-branch.go1.2] net/http/httputil: fix DumpRequestOut with ContentLength ...
Andrew Gerrand [Fri, 1 Nov 2013 00:27:19 +0000 (11:27 +1100)]
[release-branch.go1.2] net/http/httputil: fix DumpRequestOut with ContentLength & false body param

««« CL 14920050 / 5ed8c82778ae
net/http/httputil: fix DumpRequestOut with ContentLength & false body param

Fixes #6471

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

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

10 years ago[release-branch.go1.2] os: do not return Lstat errors from Readdir
Andrew Gerrand [Fri, 1 Nov 2013 00:26:31 +0000 (11:26 +1100)]
[release-branch.go1.2] os: do not return Lstat errors from Readdir

««« CL 18870043 / eca0ca43a863
os: do not return Lstat errors from Readdir

This CL restores the Go 1.1.2 semantics for os.File's Readdir method.

The code in Go 1.1.2 was rewritten mainly because it looked buggy.
This new version attempts to be clearer but still provide the 1.1.2 results.

The important diff is not this CL's version against tip but this CL's version
against Go 1.1.2.

Go 1.1.2:

        names, err := f.Readdirnames(n)
        fi = make([]FileInfo, len(names))
        for i, filename := range names {
                fip, err := Lstat(dirname + filename)
                if err == nil {
                        fi[i] = fip
                } else {
                        fi[i] = &fileStat{name: filename}
                }
        }
        return fi, err

This CL:

        names, err := f.Readdirnames(n)
        fi = make([]FileInfo, len(names))
        for i, filename := range names {
                fip, lerr := lstat(dirname + filename)
                if lerr != nil {
                        fi[i] = &fileStat{name: filename}
                        continue
                }
                fi[i] = fip
        }
        return fi, err

The changes from Go 1.1.2 are stylistic, not semantic:
1. Use lstat instead of Lstat, for testing (done before this CL).
2. Make error handling in loop body look more like an error case.
3. Use separate error variable name in loop body, to be clear
   we are not trying to influence the final return result.

Fixes #6656.
Fixes #6680.

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

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

10 years ago[release-branch.go1.2] cmd/gc: silence clang warning
Andrew Gerrand [Fri, 1 Nov 2013 00:25:45 +0000 (11:25 +1100)]
[release-branch.go1.2] cmd/gc: silence clang warning

««« CL 19160043 / 104d56b5d664
cmd/gc: silence clang warning

This code is only built when you run 'make' in cmd/gc,
not in all.bash.

R=golang-dev, jsing, iant
CC=golang-dev
https://golang.org/cl/19160043
»»»

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

10 years ago[release-branch.go1.2] misc/emacs: support godef-jump on import statements
Andrew Gerrand [Fri, 1 Nov 2013 00:24:57 +0000 (11:24 +1100)]
[release-branch.go1.2] misc/emacs: support godef-jump on import statements

««« CL 18230043 / f2b59b5163b0
misc/emacs: support godef-jump on import statements

The newest version of godef supports jumping to a package's source
directory if point is on an import statement.

R=adonovan
CC=golang-dev
https://golang.org/cl/18230043

»»»

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

10 years ago[release-branch.go1.2] debug/dwarf: add DWARF 4 form constants
Andrew Gerrand [Fri, 1 Nov 2013 00:24:11 +0000 (11:24 +1100)]
[release-branch.go1.2] debug/dwarf: add DWARF 4 form constants

««« CL 18460043 / 08e6655618f5
debug/dwarf: add DWARF 4 form constants

Some versions of clang generate DWARF 4-format attributes
even when using -gdwarf-2. We don't care much about the
values, but we do need to be able to parse past them.

This fixes a bug in Go 1.2 rc2 reported via private mail using
a near-tip version of clang.

R=golang-dev, iant, dvyukov
CC=golang-dev
https://golang.org/cl/18460043
»»»

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

10 years ago[release-branch.go1.2] doc: update front page summary text
Andrew Gerrand [Fri, 1 Nov 2013 00:23:23 +0000 (11:23 +1100)]
[release-branch.go1.2] doc: update front page summary text

««« CL 18080045 / 5ffdb9cc0bfe
doc: update front page summary text

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

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

10 years ago[release-branch.go1.2] cmd/cgo: stop using -fno-eliminate-unused-debug-types
Andrew Gerrand [Fri, 1 Nov 2013 00:22:39 +0000 (11:22 +1100)]
[release-branch.go1.2] cmd/cgo: stop using -fno-eliminate-unused-debug-types

««« CL 18850043 / 5ef4bf9eb256
cmd/cgo: stop using -fno-eliminate-unused-debug-types

This flag was added in January 2010, in CL 181102, to fix issue 497.
(Numbers were just shorter back then.) The fix was for OS X machines
and the llvm-gcc frontend.

In July 2011 we had to change the way we get enum values, because
there were no flags available to force Xcode's llvm-gcc to include the
enum names and values in DWARF debug output.

We now use clang, not llvm-gcc, on OS X machines.
Earlier versions of clang printed a warning about not knowing the flag.
Newer versions of clang now make that an error.

That is:
 - The flag was added for OS X machines.
 - The flag is no longer necessary on OS X machines.
 - The flag now breaks some OS X machines.

Remove it.

I have run the original program from issue 497 successfully
without the flag on both OS X and Linux machines.

Fixes #6678.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/18850043
»»»

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

10 years ago[release-branch.go1.2] runtime: relax preemption assertion during stack split
Andrew Gerrand [Fri, 1 Nov 2013 00:21:54 +0000 (11:21 +1100)]
[release-branch.go1.2] runtime: relax preemption assertion during stack split

««« CL 18740044 / 1a8903f0a577
runtime: relax preemption assertion during stack split

The case can happen when starttheworld is calling acquirep
to get things moving again and acquirep gets preempted.
The stack trace is in golang.org/issue/6644.

It is difficult to build a short test case for this, but
the person who reported issue 6644 confirms that this
solves the problem.

Fixes #6644.

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

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

10 years ago[release-branch.go1.2] net: handle single-line non-\n-terminated files correctly...
Andrew Gerrand [Fri, 1 Nov 2013 00:21:05 +0000 (11:21 +1100)]
[release-branch.go1.2] net: handle single-line non-\n-terminated files correctly in readLine

««« CL 15960047 / a0d4544cdb2a
net: handle single-line non-\n-terminated files correctly in readLine

Fixes #6646.

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

»»»

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

10 years ago[release-branch.go1.2] net/url: fix Encode doc comment
Andrew Gerrand [Fri, 1 Nov 2013 00:20:21 +0000 (11:20 +1100)]
[release-branch.go1.2] net/url: fix Encode doc comment

««« CL 16430043 / f9af8b83c78c
net/url: fix Encode doc comment

Encoded query strings are always sorted by key; the example wasn't.

R=golang-dev, dsymonds, minux.ma, bradfitz
CC=golang-dev
https://golang.org/cl/16430043
»»»

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

10 years ago[release-branch.go1.2] misc/linkcheck: better redirect handling, use meaningful exit...
Andrew Gerrand [Fri, 1 Nov 2013 00:19:34 +0000 (11:19 +1100)]
[release-branch.go1.2] misc/linkcheck: better redirect handling, use meaningful exit code

««« CL 14425049 / 093d299d669e
misc/linkcheck: better redirect handling, use meaningful exit code

Prevent linkcheck from following redirects that lead beyond the outside
the root URL.

Return a non-zero exit code when there are problems.

Some minor refactoring for clarity.

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

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

10 years ago[release-branch.go1.2] strings: fix Replacer bug with prefix matches
Andrew Gerrand [Fri, 1 Nov 2013 00:18:49 +0000 (11:18 +1100)]
[release-branch.go1.2] strings: fix Replacer bug with prefix matches

««« CL 16880043 / 0eb6508d3e88
strings: fix Replacer bug with prefix matches

singleStringReplacer had a bug where if a string was replaced
at the beginning and no output had yet been produced into the
temp buffer before matching ended, an invalid nil check (used
as a proxy for having matched anything) meant it always
returned its input.

Fixes #6659

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

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

10 years ago[release-branch.go1.2] database/sql: link to wiki in package docs
Andrew Gerrand [Fri, 1 Nov 2013 00:18:03 +0000 (11:18 +1100)]
[release-branch.go1.2] database/sql: link to wiki in package docs

««« CL 14087043 / 7ebbddd21330
database/sql: link to wiki in package docs

Update #5886

R=golang-dev, kamil.kisiel, adg, r, rsc, dave, arnehormann, bradfitz
CC=golang-dev
https://golang.org/cl/14087043

»»»

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

10 years ago[release-branch.go1.2] C+A: add Matthew Cottingham (Individual CLA)
Andrew Gerrand [Fri, 1 Nov 2013 00:17:17 +0000 (11:17 +1100)]
[release-branch.go1.2] C+A: add Matthew Cottingham (Individual CLA)

««« CL 16650043 / afb8e00de04a
C+A: add Matthew Cottingham (Individual CLA)

Done by addca, but codereview failed with a Python stacktrace,
so submitting by hand.

R=golang-dev
CC=golang-dev
https://golang.org/cl/16650043
»»»

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

10 years ago[release-branch.go1.2] plan9: correct create permissions with union directory
Andrew Gerrand [Fri, 1 Nov 2013 00:16:32 +0000 (11:16 +1100)]
[release-branch.go1.2] plan9: correct create permissions with union directory

««« CL 15360045 / f257b02e7ffe
plan9: correct create permissions with union directory

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

»»»

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

10 years ago[release-branch.go1.2] misc/dist: use go.tools release branch
Andrew Gerrand [Fri, 1 Nov 2013 00:15:47 +0000 (11:15 +1100)]
[release-branch.go1.2] misc/dist: use go.tools release branch

««« CL 15450047 / 1f81a19c2ee2
misc/dist: use go.tools release branch

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

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

10 years ago[release-branch.go1.2] test/mapnan: use time.Now instead of syscall.Getrusage
Andrew Gerrand [Fri, 1 Nov 2013 00:15:02 +0000 (11:15 +1100)]
[release-branch.go1.2] test/mapnan: use time.Now instead of syscall.Getrusage

««« CL 15570046 / 9169cb38c3e8
test/mapnan: use time.Now instead of syscall.Getrusage

Avoids a dependency on a somewhat nonstandard part of package syscall.

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

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

10 years ago[release-branch.go1.2] cmd/cgo: use __typeof__, -w instead of typeof, -Wno-all
Andrew Gerrand [Fri, 1 Nov 2013 00:14:19 +0000 (11:14 +1100)]
[release-branch.go1.2] cmd/cgo: use __typeof__, -w instead of typeof, -Wno-all

««« CL 14920052 / 98840b3349f4
cmd/cgo: use __typeof__, -w instead of typeof, -Wno-all

Suggested by iant in earlier CL.

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

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

10 years ago[release-branch.go1.2] time: fix ParseDuration overflow when given more than 9 digits...
Andrew Gerrand [Fri, 1 Nov 2013 00:13:30 +0000 (11:13 +1100)]
[release-branch.go1.2] time: fix ParseDuration overflow when given more than 9 digits on 32-bit arch

««« CL 15080043 / fbf3b853e00b
time: fix ParseDuration overflow when given more than 9 digits on 32-bit arch
Fixes #6617.

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

»»»

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

10 years ago[release-branch.go1.2] misc/emacs: handle empty "import ()" in go-goto-imports
Andrew Gerrand [Fri, 1 Nov 2013 00:12:28 +0000 (11:12 +1100)]
[release-branch.go1.2] misc/emacs: handle empty "import ()" in go-goto-imports

««« CL 14454058 / 6b8f33ab7ca4
misc/emacs: handle empty "import ()" in go-goto-imports

R=adonovan
CC=golang-dev
https://golang.org/cl/14454058

»»»

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

10 years ago[release-branch.go1.2] math: remove unnecessary source file
Andrew Gerrand [Fri, 1 Nov 2013 00:11:36 +0000 (11:11 +1100)]
[release-branch.go1.2] math: remove unnecessary source file

««« CL 15750046 / 2d1e1adf8ece
math: remove unnecessary source file

The routines in this file are dregs from a very early copy of the math API.
There are no Go prototypes and no non-amd64 implementations.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/15750046
»»»

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

10 years ago[release-branch.go1.2] go/build: document the go1.2 build tag
Andrew Gerrand [Fri, 1 Nov 2013 00:10:46 +0000 (11:10 +1100)]
[release-branch.go1.2] go/build: document the go1.2 build tag

««« CL 14930046 / d4f6533fad0b
go/build: document the go1.2 build tag

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

»»»

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

10 years ago[release-branch.go1.2] crypto/x509: name constraints should be a disjunction.
Andrew Gerrand [Fri, 1 Nov 2013 00:09:56 +0000 (11:09 +1100)]
[release-branch.go1.2] crypto/x509: name constraints should be a disjunction.

««« CL 15570044 / b4c37131e846
crypto/x509: name constraints should be a disjunction.

The code was requiring that all constraints be met, but it should be
satisfied by meeting *any* of them.

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

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

10 years ago[release-branch.go1.2] crypto/tls: advertise support for RSA+SHA1 in TLS 1.2 handshake.
Andrew Gerrand [Fri, 1 Nov 2013 00:09:06 +0000 (11:09 +1100)]
[release-branch.go1.2] crypto/tls: advertise support for RSA+SHA1 in TLS 1.2 handshake.

««« CL 15650043 / 29d3ab5ced5a
crypto/tls: advertise support for RSA+SHA1 in TLS 1.2 handshake.

Despite SHA256 support being required for TLS 1.2 handshakes, some
servers are aborting handshakes that don't offer SHA1 support.

This change adds support for signing TLS 1.2 ServerKeyExchange messages
with SHA1. It does not add support for signing TLS 1.2 client
certificates with SHA1 as that would require the handshake to be
buffered.

Fixes #6618.

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

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

10 years ago[release-branch.go1.2] net/mail: fix minor doc typo.
Andrew Gerrand [Fri, 1 Nov 2013 00:08:05 +0000 (11:08 +1100)]
[release-branch.go1.2] net/mail: fix minor doc typo.

««« CL 15510043 / 6752a7aad603
net/mail: fix minor doc typo.

R=golang-dev, minux.ma
CC=golang-dev
https://golang.org/cl/15510043
»»»

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

10 years ago[release-branch.go1.2] cmd/yacc: fix stderr on Windows.
Andrew Gerrand [Fri, 1 Nov 2013 00:07:06 +0000 (11:07 +1100)]
[release-branch.go1.2] cmd/yacc: fix stderr on Windows.

««« CL 15330043 / 69bf31787310
cmd/yacc: fix stderr on Windows.
Fixes #6620.

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

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

10 years ago[release-branch.go1.2] cmd/cgo: fix line number in an error message
Andrew Gerrand [Fri, 1 Nov 2013 00:06:07 +0000 (11:06 +1100)]
[release-branch.go1.2] cmd/cgo: fix line number in an error message

««« CL 14870046 / b508daf6dae6
cmd/cgo: fix line number in an error message

Fixes #6563.

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

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

10 years ago[release-branch.go1.2] cmd/cgo: stop using compiler error message text to analyze...
Andrew Gerrand [Fri, 1 Nov 2013 00:05:17 +0000 (11:05 +1100)]
[release-branch.go1.2] cmd/cgo: stop using compiler error message text to analyze C names

««« CL 15070043 / 90a628ac54ed
cmd/cgo: stop using compiler error message text to analyze C names

The old approach to determining whether "name" was a type, constant,
or expression was to compile the C program

        name;

and scan the errors and warnings generated by the compiler.
This requires looking for specific substrings in the errors and warnings,
which ties the implementation to specific compiler versions.
As compilers change their errors or drop warnings, cgo breaks.
This happens slowly but it does happen.
Clang in particular (now required on OS X) has a significant churn rate.

The new approach compiles a slightly more complex program
that is either valid C or not valid C depending on what kind of
thing "name" is. It uses only the presence or absence of an error
message on a particular line, not the error text itself. The program is:

        // error if and only if name is undeclared
        void f1(void) { typeof(name) *x; }

        // error if and only if name is not a type
        void f2(void) { name *x; }

        // error if and only if name is not an integer constant
        void f3(void) { enum { x = (name)*1 }; }

I had not been planning to do this until Go 1.3, because it is a
non-trivial change, but it fixes a real Xcode 5 problem in Go 1.2,
and the new code is easier to understand than the old code.
It should be significantly more robust.

Fixes #6596.
Fixes #6612.

R=golang-dev, r, james, iant
CC=golang-dev
https://golang.org/cl/15070043
»»»

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

10 years ago[release-branch.go1.2] cmd/gc: shorten name used for map bucket type
Andrew Gerrand [Fri, 1 Nov 2013 00:00:12 +0000 (11:00 +1100)]
[release-branch.go1.2] cmd/gc: shorten name used for map bucket type

««« CL 15110044 / 95336afd420c
cmd/gc: shorten name used for map bucket type

Before:
type.struct { buckets *struct { overflow *struct { overflow *struct { overflow *struct { overflow *struct { overflow *<...>; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; oldbuckets *struct { overflow *struct { overflow *struct { overflow *struct { overflow *struct { overflow *<...>; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable }; keys [8]string; values [8]*"".RangeTable } }

After:
type.map.bucket[string]*"".RangeTable

This makes debugging maps a little nicer, and it takes up less space in the binary.

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

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

10 years ago[release-branch.go1.2] net: make sure failed Dial returns nil Conn
Andrew Gerrand [Thu, 31 Oct 2013 23:58:25 +0000 (10:58 +1100)]
[release-branch.go1.2] net: make sure failed Dial returns nil Conn

««« CL 14950045 / 1e60ffd5933d
net: make sure failed Dial returns nil Conn

Fixes #6614.

R=golang-dev, bradfitz, mikioh.mikioh
CC=golang-dev
https://golang.org/cl/14950045
»»»

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

10 years ago[release-branch.go1.2] runtime: remove nomemprof
Andrew Gerrand [Thu, 31 Oct 2013 23:51:42 +0000 (10:51 +1100)]
[release-branch.go1.2] runtime: remove nomemprof

««« CL 14695044 / 35d5bae6aac8
runtime: remove nomemprof
Nomemprof seems to be unneeded now, there is no recursion.
If the recursion will be re-introduced, it will break loudly by deadlocking.
Fixes #6566.

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

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

10 years ago[release-branch.go1.2] misc/dist: build race packages when os suffix present
Andrew Gerrand [Thu, 31 Oct 2013 23:50:00 +0000 (10:50 +1100)]
[release-branch.go1.2] misc/dist: build race packages when os suffix present

««« CL 14930043 / 5746e3a5443b
misc/dist: build race packages when os suffix present

The "darwin-amd64-osx10.8" target was not matching "darwin-amd64".

R=golang-dev
CC=golang-dev
https://golang.org/cl/14930043
»»»

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

10 years agogo1.2rc2 go1.2rc2
Andrew Gerrand [Fri, 18 Oct 2013 04:53:33 +0000 (13:53 +0900)]
go1.2rc2

10 years agoapi: add go1.2.txt, use in tests
Andrew Gerrand [Fri, 18 Oct 2013 04:36:59 +0000 (13:36 +0900)]
api: add go1.2.txt, use in tests

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

10 years agomisc/dist: set default go.tools tag
Andrew Gerrand [Fri, 18 Oct 2013 01:51:21 +0000 (10:51 +0900)]
misc/dist: set default go.tools tag

Fixes #6607.

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

10 years agonet/url: fix regression when serializing relative URLs
Brad Fitzpatrick [Thu, 17 Oct 2013 23:06:40 +0000 (16:06 -0700)]
net/url: fix regression when serializing relative URLs

Only add a slash to path if it's a separator between
a host and path.

Fixes #6609

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

10 years agoruntime: correct test for when to poll network
Ian Lance Taylor [Thu, 17 Oct 2013 18:57:48 +0000 (11:57 -0700)]
runtime: correct test for when to poll network

Fixes #6610.

R=golang-dev, khr
CC=golang-dev
https://golang.org/cl/14793043

10 years agoruntime: correct parameter name in MCentral_AllocList comment
Ian Lance Taylor [Thu, 17 Oct 2013 18:57:00 +0000 (11:57 -0700)]
runtime: correct parameter name in MCentral_AllocList comment

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

10 years agoencoding/xml: accept chains of interfaces and pointers
Russ Cox [Thu, 17 Oct 2013 16:13:33 +0000 (12:13 -0400)]
encoding/xml: accept chains of interfaces and pointers

Fixes #6556.

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

10 years agodatabase/sql: make tests repeatable with -cpu=n,n
Alberto García Hierro [Thu, 17 Oct 2013 16:02:32 +0000 (09:02 -0700)]
database/sql: make tests repeatable with -cpu=n,n

New test added in CL 14611045 causes a deadlock when
running the tests with -cpu=n,n because the fakedb
driver always waits when opening a new connection after
running TestConnectionLeak.  Reset its state after.

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

10 years agoA+C: add Jamie Turner (Dropbox corporate CLA).
David Symonds [Thu, 17 Oct 2013 00:48:27 +0000 (11:48 +1100)]
A+C: add Jamie Turner (Dropbox corporate CLA).

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

10 years agodatabase/sql: fix some test fmt verbs
Brad Fitzpatrick [Wed, 16 Oct 2013 23:30:39 +0000 (16:30 -0700)]
database/sql: fix some test fmt verbs

Found by vet.

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

10 years agospec: clarify re-use of underlying arrays in slice operations
Robert Griesemer [Wed, 16 Oct 2013 23:16:54 +0000 (16:16 -0700)]
spec: clarify re-use of underlying arrays in slice operations

Please note the slight rewording for append: The spec now
requires that append reuses the underlying array if it is
sufficiently large. Per majority sentiment.

This is technically a language change but the current
implementation always worked this way.

Fixes #5818.
Fixes #5180.

R=rsc, iant, r, ken, minux.ma, dan.kortschak, rogpeppe, go.peter.90
CC=golang-dev
https://golang.org/cl/14419054

10 years agodatabase/sql: Fix connection leak and potential deadlock
Alberto García Hierro [Wed, 16 Oct 2013 16:22:57 +0000 (09:22 -0700)]
database/sql: Fix connection leak and potential deadlock

CL 10726044 introduced a race condition which causes connections
to be leaked under certain circumstances. If SetMaxOpenConns is
used, the application eventually deadlocks. Otherwise, the number
of open connections just keep growing indefinitely.

Fixes #6593

R=golang-dev, bradfitz, tad.glines, bketelsen
CC=golang-dev
https://golang.org/cl/14611045

10 years agodatabase/sql: fix double decrement of numOpen count; test for connection leaks
Alberto García Hierro [Wed, 16 Oct 2013 16:17:25 +0000 (09:17 -0700)]
database/sql: fix double decrement of numOpen count; test for connection leaks

Add a check at the end of every test to make sure
there are no leaked connections after running a test.

Avoid incorrectly decrementing the number of open connections
when the driver connection ends up it a bad state (numOpen was
decremented twice).

Prevent leaking a Rows struct (which ends up leaking a
connection) in Row.Scan() when a *RawBytes destination is
improperly used.

Close the Rows struct in TestRowsColumns.

Update #6593

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

10 years agocmd/cgo: simpler fix for issue 6506.
Shenghou Ma [Wed, 16 Oct 2013 01:35:52 +0000 (21:35 -0400)]
cmd/cgo: simpler fix for issue 6506.
Replaces CL 14682044.
Fixes #6506.

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

10 years agodoc/effective_go.html: fix code example
Shenghou Ma [Wed, 16 Oct 2013 01:30:49 +0000 (21:30 -0400)]
doc/effective_go.html: fix code example
Fixes #6595.

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

10 years agocmd/cgo: print the builtin prolog after the per-file preamble
Russ Cox [Tue, 15 Oct 2013 19:00:48 +0000 (15:00 -0400)]
cmd/cgo: print the builtin prolog after the per-file preamble

The preamble may want to #define some special symbols
and then #include <sys/types.h> itself. The builtin prolog
also #includes <sys/types.h>, which would break such a
preamble (because the second #include will be a no-op).

The use of sys/types.h in the builtin prolog is new since Go 1.1,
so this should preserve the semantics of more existing cgo
code than we would otherwise.

It also fixes src/pkg/syscall/mkall.sh's use of go tool cgo -godefs
on some Linux systems.

Thanks to fullung@ for identifying the problem.

Fixes #6558.

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

10 years agoundo CL 14231047 / 2f4c2dde2756
Alex Brainman [Tue, 15 Oct 2013 18:37:43 +0000 (14:37 -0400)]
undo CL 14231047 / 2f4c2dde2756

undone because the change slows down profile collection
significantly and unpredictable at times (see comments
at https://golang.org/cl/14231047 for details)

««« original CL description
runtime: collect profiles even while on g0 stack

Fixes #6417

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

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

10 years agocmd/cgo: fix Xcode 5 incompatibility for #defined expressions
Russ Cox [Tue, 15 Oct 2013 18:34:46 +0000 (14:34 -0400)]
cmd/cgo: fix Xcode 5 incompatibility for #defined expressions

Ensure that clang always exits with a non-zero status by
giving it something that it always warns about (the statement "1;").

Fixes #6128.

R=golang-dev, iant, minux.ma
CC=golang-dev
https://golang.org/cl/14702043

10 years agomisc/cgo/test: cut out non-standard functions
Russ Cox [Tue, 15 Oct 2013 18:25:29 +0000 (14:25 -0400)]
misc/cgo/test: cut out non-standard functions

Otherwise the link fails. Fixes build.

TBR=golang-dev
CC=golang-dev
https://golang.org/cl/14483050