]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
10 years agogo1.1.2 go1.1.2
Andrew Gerrand [Tue, 13 Aug 2013 05:33:06 +0000 (15:33 +1000)]
go1.1.2

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

10 years ago[release-branch.go1.1] doc: release notes for go1.1.2
Andrew Gerrand [Tue, 13 Aug 2013 05:19:16 +0000 (15:19 +1000)]
[release-branch.go1.1] doc: release notes for go1.1.2

««« CL 12016043 / 897a42d03643
doc: release notes for go1.1.2

R=golang-dev, go.peter.90, rsc, r
CC=golang-dev
https://golang.org/cl/12016043
»»»

Fixes #5928.

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

10 years ago[release-branch.go1.1] bufio: check buffer availability before reading in ReadFrom
Andrew Gerrand [Mon, 29 Jul 2013 08:00:58 +0000 (18:00 +1000)]
[release-branch.go1.1] bufio: check buffer availability before reading in ReadFrom

This change was applied by hand, as bufio has seen some refactoring
since 1.1 was branched. The only difference between this and the
original patch is the offset of the change, and s/flush/Flush/.

««« CL 11801043 / 3ffbc06b4874
bufio: check buffer availability before reading in ReadFrom

Fixes  issue 5947 .

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

Update #5928

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

10 years ago[release-branch.go1.1] syscall: prlimit argument error for Getrlimit and Setrlimit...
Andrew Gerrand [Mon, 29 Jul 2013 00:34:53 +0000 (10:34 +1000)]
[release-branch.go1.1] syscall: prlimit argument error for Getrlimit and Setrlimit on Linux 32-bit

««« CL 11803043 / ba52f6399462
syscall: prlimit argument error for Getrlimit and Setrlimit on Linux 32-bit

The rlimit arguments for prlimit are reversed for linux 32-bit (386 and arm).
Getrlimit becomes Setrlimit and vice versa.
Fixes #5949.

R=iant, mikioh.mikioh, rsc
CC=golang-dev
https://golang.org/cl/11803043

»»»

Update #5928

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

10 years ago[release-branch.go1.1] cmd/cgo: gccgo fixes
Andrew Gerrand [Sun, 28 Jul 2013 23:57:49 +0000 (09:57 +1000)]
[release-branch.go1.1] cmd/cgo: gccgo fixes

««« CL 11406047 / 4d9c3095de9d
cmd/cgo: gccgo fixes

Don't require a full-scale callback for calls to the special
prologue functions.

Always use a simple wrapper function for C functions, so that
we can handle static functions defined in the import "C"
comment.

Disable a test that relies on gc-specific function names.

Fixes #5905.

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

»»»

Update #5928

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

10 years ago[release-branch.go1.1] cmd/gc: avoid passing unevaluated constant expressions to...
Andrew Gerrand [Fri, 26 Jul 2013 00:04:32 +0000 (10:04 +1000)]
[release-branch.go1.1] cmd/gc: avoid passing unevaluated constant expressions to backends.

««« CL 11107044 / 5baf6060648e
cmd/gc: avoid passing unevaluated constant expressions to backends.

Backends do not exactly expect receiving binary operators with
constant operands or use workarounds to move them to
register/stack in order to handle them.

Fixes #5841.

R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/11107044

»»»

Update #5928

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

10 years ago[release-branch.go1.1] undo 6efaa14e2e7f
Andrew Gerrand [Tue, 23 Jul 2013 00:10:11 +0000 (10:10 +1000)]
[release-branch.go1.1] undo 6efaa14e2e7f

It breaks the build.

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

10 years ago[release-branch.go1.1] runtime: prevent sysmon from polling network excessivly
Andrew Gerrand [Mon, 22 Jul 2013 23:50:35 +0000 (09:50 +1000)]
[release-branch.go1.1] runtime: prevent sysmon from polling network excessivly

««« CL 11569043 / 6b3c351c7fe6
runtime: prevent sysmon from polling network excessivly
If the network is not polled for 10ms, sysmon starts polling network
on every iteration (every 20us) until another thread blocks in netpoll.
Fixes  issue 5922 .

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

Update #5928

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

10 years ago[release-branch.go1.1] cmd/8g: Make clearfat non-interleaved with pointer calculations.
Andrew Gerrand [Mon, 22 Jul 2013 23:40:49 +0000 (09:40 +1000)]
[release-branch.go1.1] cmd/8g: Make clearfat non-interleaved with pointer calculations.

««« CL 11383043 / dc24634de6c5
cmd/8g: Make clearfat non-interleaved with pointer calculations.

clearfat (used to zero initialize structures) will use AX for x86 block ops. If we write to AX while calculating the dest pointer, we will fill the structure with incorrect values.
Since 64-bit arithmetic uses AX to synthesize a 64-bit register, getting an adress by indexing with 64-bit ops can clobber the register.

Fixes #5820.

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

Update #5928

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

10 years ago[release-branch.go1.1] runtime: properly set G status after syscall
Andrew Gerrand [Mon, 22 Jul 2013 23:31:37 +0000 (09:31 +1000)]
[release-branch.go1.1] runtime: properly set G status after syscall

««« CL 9307045 / fab6ba2a2d10
runtime: properly set G status after syscall

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

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

10 years ago[release-branch.go1.1] cmd/6g, cmd/8g: prevent constant propagation of non-constant...
Andrew Gerrand [Mon, 22 Jul 2013 22:00:01 +0000 (08:00 +1000)]
[release-branch.go1.1] cmd/6g, cmd/8g: prevent constant propagation of non-constant LEA.

««« CL 10785043 / cf792c00f410
cmd/6g, cmd/8g: prevent constant propagation of non-constant LEA.

Fixes #5809.

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

Update #5928

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

10 years ago[release-branch.go1.1] cmd/gc: fix issue with method wrappers not having escape analy...
Andrew Gerrand [Mon, 22 Jul 2013 13:45:28 +0000 (23:45 +1000)]
[release-branch.go1.1] cmd/gc: fix issue with method wrappers not having escape analysis run on them.

««« CL 10383048 / 58e15340e78f
cmd/gc: fix issue with method wrappers not having escape analysis run on them.

Escape analysis needs the right curfn value on a dclfunc node, otherwise it will not analyze the function.
When generating method value wrappers, we forgot to set the curfn correctly.

Fixes #5753.

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

Update #5928

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

10 years ago[release-branch.go1.1] time: prevent a panic from leaving the timer mutex held
Andrew Gerrand [Mon, 22 Jul 2013 08:41:32 +0000 (18:41 +1000)]
[release-branch.go1.1] time: prevent a panic from leaving the timer mutex held

««« CL 10373047 / 974a69ed9fcf
time: prevent a panic from leaving the timer mutex held

When deleting a timer, a panic due to nil deref
would leave a lock held, possibly leading to a deadlock
in a defer. Instead return false on a nil timer.

Fixes #5745.

R=golang-dev, daniel.morsing, dvyukov, rsc, iant
CC=golang-dev
https://golang.org/cl/10373047

»»»

Update #5928

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

10 years ago[release-branch.go1.1] cmd/gc: fix missing export data for inlining in a few other...
Andrew Gerrand [Mon, 22 Jul 2013 08:34:36 +0000 (18:34 +1000)]
[release-branch.go1.1] cmd/gc: fix missing export data for inlining in a few other cases.

««« CL 10464043 / c224c549a3c7
cmd/gc: fix missing export data for inlining in a few other cases.

Exported inlined functions that perform a string conversion
using a non-exported named type may miss it in export data.

Fixes #5755.

R=rsc, golang-dev, ality, r
CC=golang-dev
https://golang.org/cl/10464043
»»»

Update #5928

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

10 years ago[release-branch.go1.1] cmd/gc: fix pointer composite literals in exported if statements.
Andrew Gerrand [Mon, 22 Jul 2013 08:22:30 +0000 (18:22 +1000)]
[release-branch.go1.1] cmd/gc: fix pointer composite literals in exported if statements.

««« CL 10470043 / d04e6b0bcacf
cmd/gc: fix pointer composite literals in exported if statements.

Fixes #4230 (again).

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

Update #5928

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

10 years ago[release-branch.go1.1] doc: add go1.1.1 to the release notes go1.1.1
Andrew Gerrand [Thu, 13 Jun 2013 02:49:43 +0000 (12:49 +1000)]
[release-branch.go1.1] doc: add go1.1.1 to the release notes

««« CL 10236045 / 3cda43260443
doc: add go1.1.1 to the release notes

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

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

10 years agogo1.1.1
Andrew Gerrand [Thu, 13 Jun 2013 02:21:56 +0000 (12:21 +1000)]
go1.1.1

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

10 years ago[release-branch.go1.1] remove release tag from release branch
Andrew Gerrand [Thu, 13 Jun 2013 02:20:27 +0000 (12:20 +1000)]
[release-branch.go1.1] remove release tag from release branch

This should have been done before tagging go1.1.
Better late than never.

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

10 years ago[release-branch.go1.1] cmd/gc: compute initialization order for top-level blank vars...
Andrew Gerrand [Thu, 13 Jun 2013 00:30:45 +0000 (10:30 +1000)]
[release-branch.go1.1] cmd/gc: compute initialization order for top-level blank vars too.

««« CL 8601044 / 3a74e15c5d56
cmd/gc: compute initialization order for top-level blank vars too.

Fixes #5244.

R=golang-dev, rsc, iant, r, daniel.morsing
CC=golang-dev
https://golang.org/cl/8601044
»»»

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

10 years ago[release-branch.go1.1] cmd/gc: save local var list before inlining
Andrew Gerrand [Thu, 13 Jun 2013 00:04:17 +0000 (10:04 +1000)]
[release-branch.go1.1] cmd/gc: save local var list before inlining

««« CL 10210043 / b357e33bb414
cmd/gc: save local var list before inlining

This avoids problems with inlining in genwrappers, which
occurs after functions have been compiled.  Compiling a
function may cause some unused local vars to be removed from
the list.  Since a local var may be unused due to
optimization, it is possible that a removed local var winds up
beingused in the inlined version, in which case hilarity
ensues.

Fixes #5515.

R=golang-dev, khr, dave
CC=golang-dev
https://golang.org/cl/10210043
»»»

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

10 years ago[release-branch.go1.1] doc: GCC 4.8.1 is not updated to Go 1.1
Shenghou Ma [Tue, 11 Jun 2013 15:34:53 +0000 (23:34 +0800)]
[release-branch.go1.1] doc: GCC 4.8.1 is not updated to Go 1.1

««« CL 9663045 / 6c64135360c2
doc: GCC 4.8.1 is not updated to Go 1.1

I will try again for 4.8.2.

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

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

11 years ago[release-branch.go1.1] cmd/gc: fix missing slice/array types in export data.
Andrew Gerrand [Wed, 5 Jun 2013 01:19:26 +0000 (11:19 +1000)]
[release-branch.go1.1] cmd/gc: fix missing slice/array types in export data.

««« CL 9953044 / 0e1b2f7384d2
cmd/gc: fix missing slice/array types in export data.

Fixes #5614.

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

R=iant, remyoudompheng, dsymonds
CC=golang-dev
https://golang.org/cl/10033043

11 years ago[release-branch.go1.1] runtime: fix heap corruption during GC
Andrew Gerrand [Wed, 5 Jun 2013 01:12:46 +0000 (11:12 +1000)]
[release-branch.go1.1] runtime: fix heap corruption during GC

««« CL 9831043 / e84e7204b01b
runtime: fix heap corruption during GC
The 'n' variable is used during rescan initiation in GC_END case,
but it's overwritten with chan capacity in GC_CHAN case.
As the result rescan is done with the wrong object size.
Fixes #5554.

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

R=dvyukov, khr, dave
CC=golang-dev
https://golang.org/cl/10028044

11 years ago[release-branch.go1.1] test: do not run the test that relies on precise GC on 32...
Andrew Gerrand [Wed, 5 Jun 2013 01:07:26 +0000 (11:07 +1000)]
[release-branch.go1.1] test: do not run the test that relies on precise GC on 32-bits

««« CL 9573043 / c0f8999bd970
test: do not run the test that relies on precise GC on 32-bits
Currently most of the 32-bit builder are broken.
Fixes #5516.

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

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

11 years ago[release-branch.go1.1] runtime: zeroize g->fnstart to not prevent GC of the closure
Andrew Gerrand [Wed, 5 Jun 2013 00:52:00 +0000 (10:52 +1000)]
[release-branch.go1.1] runtime: zeroize g->fnstart to not prevent GC of the closure

««« CL 9557043 / 2c128d417029
runtime: zeroize g->fnstart to not prevent GC of the closure
Fixes #5493.

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

R=dvyukov, iant, minux.ma, bradfitz, dave
CC=golang-dev
https://golang.org/cl/10031043

11 years ago[release-branch.go1.1] cmd/gc: repair make(T) in export data for inlining.
Andrew Gerrand [Wed, 5 Jun 2013 00:27:38 +0000 (10:27 +1000)]
[release-branch.go1.1] cmd/gc: repair make(T) in export data for inlining.

««« CL 9303050 / 9a73efa2cd4e
cmd/gc: repair make(T) in export data for inlining.

When T was an unexported type it could be forgotten.

Fixes #5470.

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

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

11 years ago[release-branch.go1.1] runtime: fix GC scanning of slices
Andrew Gerrand [Wed, 5 Jun 2013 00:20:34 +0000 (10:20 +1000)]
[release-branch.go1.1] runtime: fix GC scanning of slices

««« CL 9372044 / 1abed5873071
runtime: fix GC scanning of slices
If a slice points to an array embedded in a struct,
the whole struct can be incorrectly scanned as the slice buffer.
Fixes #5443.

R=cshapiro, iant, r, cshapiro, minux.ma
CC=bradfitz, gobot, golang-dev
https://golang.org/cl/9372044
»»»

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

11 years ago[release-branch.go1.1] cmd/gc: do not corrupt init() with initializers of _ in closures.
Andrew Gerrand [Wed, 5 Jun 2013 00:00:54 +0000 (10:00 +1000)]
[release-branch.go1.1] cmd/gc: do not corrupt init() with initializers of _ in closures.

««« CL 9952043 / c42a7c218440
cmd/gc: do not corrupt init() with initializers of _ in closures.

Fixes #5607.

R=golang-dev, daniel.morsing, r, dsymonds
CC=golang-dev
https://golang.org/cl/9952043
»»»

R=daniel.morsing, dsymonds, r, remyoudompheng
CC=golang-dev
https://golang.org/cl/9895044

11 years ago[release-branch.go1.1] runtime: introduce cnewarray() to simplify allocation of typed...
Andrew Gerrand [Tue, 4 Jun 2013 02:54:13 +0000 (12:54 +1000)]
[release-branch.go1.1] runtime: introduce cnewarray() to simplify allocation of typed arrays

««« CL 9648044 / 139919984600
runtime: introduce cnewarray() to simplify allocation of typed arrays

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

R=dsymonds, dvyukov, dave
CC=golang-dev
https://golang.org/cl/9780050

11 years ago[release-branch.go1.1] doc: add Go 1.1 to release.html
Andrew Gerrand [Mon, 3 Jun 2013 02:10:04 +0000 (12:10 +1000)]
[release-branch.go1.1] doc: add Go 1.1 to release.html

««« CL 9853051 / 103cf9db59e1
doc: add Go 1.1 to release.html

Fixes #5468.

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

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

11 years ago[release-branch.go1.1] doc: update linux tarball version for Go 1.1
Andrew Gerrand [Mon, 3 Jun 2013 01:56:41 +0000 (11:56 +1000)]
[release-branch.go1.1] doc: update linux tarball version for Go 1.1

««« CL 9819044 / 0f679c4c5ebe
doc: update linux tarball version for Go 1.1

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

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

11 years agogo1.1 go1.1
Andrew Gerrand [Mon, 13 May 2013 20:03:09 +0000 (13:03 -0700)]
go1.1

11 years ago[release-branch.go1.1] runtime/race: improve public documentation
Andrew Gerrand [Mon, 13 May 2013 16:35:18 +0000 (09:35 -0700)]
[release-branch.go1.1] runtime/race: improve public documentation

««« CL 9144050 / d29da2ced72b
runtime/race: improve public documentation
Move the documentation from race.go to doc.go, because
race.go uses +build race, so it's not normally parsed by go doc.
Rephrase the documentation for end users, provide link to race
detector manual.
Fixes #5444.

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

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

11 years ago[release-branch.go1.1] doc: add a "New packages" section to the 1.1 release notes.
Andrew Gerrand [Mon, 13 May 2013 16:24:34 +0000 (09:24 -0700)]
[release-branch.go1.1] doc: add a "New packages" section to the 1.1 release notes.

««« CL 9344044 / 880991592ded
doc: add a "New packages" section to the 1.1 release notes.

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

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

11 years agogo1.1rc3 go1.1rc3
Andrew Gerrand [Wed, 8 May 2013 23:04:56 +0000 (16:04 -0700)]
go1.1rc3

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

11 years ago[release-branch.go1.1] runtime: fix crash in select
Andrew Gerrand [Wed, 8 May 2013 23:02:59 +0000 (16:02 -0700)]
[release-branch.go1.1] runtime: fix crash in select

««« CL 9311043 / 53bc96b4c0c7
runtime: fix crash in select
runtime.park() can access freed select descriptor
due to a racing free in another thread.
See the comment for details.

Slightly modified version of dvyukov's CL 9259045.

No test yet.  Before this CL, the test described in issue 5422
would fail about every 40 times for me.  With this CL, I ran
the test 5900 times with no failures.

Fixes #5422.

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

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

11 years ago[release-branch.go1.1] spec: fix incorrect example
Andrew Gerrand [Wed, 8 May 2013 23:02:02 +0000 (16:02 -0700)]
[release-branch.go1.1] spec: fix incorrect example

««« CL 9305043 / 87762a7629b4
spec: fix incorrect example

Fixes #5430.

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

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

11 years ago[release-branch.go1.1] doc: pull front page featured articles using new blog JSON...
Andrew Gerrand [Wed, 8 May 2013 23:01:09 +0000 (16:01 -0700)]
[release-branch.go1.1] doc: pull front page featured articles using new blog JSON feed

««« CL 9288045 / 5785ebd7acfb
doc: pull front page featured articles using new blog JSON feed

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

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

11 years ago[release-branch.go1.1] cmd/cgo: pass -Wsystem-headers when looking for errors
Andrew Gerrand [Wed, 8 May 2013 23:00:15 +0000 (16:00 -0700)]
[release-branch.go1.1] cmd/cgo: pass -Wsystem-headers when looking for errors

««« CL 9120045 / e4f62df3e6c9
cmd/cgo: pass -Wsystem-headers when looking for errors

This works around a bug in GCC 4.8.0.

Fixes #5118.

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

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

11 years ago[release-branch.go1.1] net: fix dial race on plan9 and windows
Andrew Gerrand [Wed, 8 May 2013 22:58:43 +0000 (15:58 -0700)]
[release-branch.go1.1] net: fix dial race on plan9 and windows

««« CL 9159043 / f1ddc3ce3dfe
net: fix dial race on plan9 and windows

Fixes #5349.

R=golang-dev, lucio.dere, dsymonds, bradfitz, iant, adg, dave, r
CC=golang-dev
https://golang.org/cl/9159043
»»»

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

11 years ago[release-branch.go1.1] effective_go.html: be more accepting in the guidelines for...
Andrew Gerrand [Wed, 8 May 2013 22:57:44 +0000 (15:57 -0700)]
[release-branch.go1.1] effective_go.html: be more accepting in the guidelines for interface names

««« CL 9274043 / bbe324079abe
effective_go.html: be more accepting in the guidelines for interface names
Fixes #5421.

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

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

11 years agogo1.1rc2 go1.1rc2
Andrew Gerrand [Tue, 7 May 2013 00:33:44 +0000 (17:33 -0700)]
go1.1rc2

11 years agoapi: add go1.1.txt; update cmd/api to use it
Brad Fitzpatrick [Tue, 7 May 2013 00:25:09 +0000 (17:25 -0700)]
api: add go1.1.txt; update cmd/api to use it

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

11 years agoruntime: fix crash in badsignal()
Dmitriy Vyukov [Mon, 6 May 2013 23:15:03 +0000 (16:15 -0700)]
runtime: fix crash in badsignal()
The linker can generate split stack prolog when a textflag 7 function
makes an indirect function call.  If it happens, badsignal() crashes
trying to dereference g.
Fixes #5337.

R=bradfitz, dave, adg, iant, r, minux.ma
CC=adonovan, golang-dev
https://golang.org/cl/9226043

11 years agoruntime: reduce max arena size on windows/amd64 to 32 GiB
Shenghou Ma [Mon, 6 May 2013 22:53:02 +0000 (06:53 +0800)]
runtime: reduce max arena size on windows/amd64 to 32 GiB
Update #5236
Update #5402
This CL reduces gofmt's committed memory from 545864 KiB to 139568 KiB.
Note: Go 1.0.3 uses about 70MiB.

R=golang-dev, r, iant, nightlyone
CC=golang-dev
https://golang.org/cl/9245043

11 years agodatabase/sql: remove an unused field from Rows
Brad Fitzpatrick [Mon, 6 May 2013 22:16:47 +0000 (15:16 -0700)]
database/sql: remove an unused field from Rows

Found while debugging memory usage. Nobody accesses this field
anymore.

R=golang-dev, i.caught.air, adg, r
CC=golang-dev
https://golang.org/cl/9108043

11 years agodoc: add FAQ entry about language changes
Andrew Gerrand [Mon, 6 May 2013 22:02:56 +0000 (15:02 -0700)]
doc: add FAQ entry about language changes

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

11 years agosyscall: fix prototype of Fchflags (API change)
Shenghou Ma [Mon, 6 May 2013 21:20:00 +0000 (05:20 +0800)]
syscall: fix prototype of Fchflags (API change)
API change, but the old API is obviously wrong.

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

11 years agogo/doc/example: Fix bug causing false negatives for Example playability.
Jeremiah Harmsen [Mon, 6 May 2013 17:15:16 +0000 (10:15 -0700)]
go/doc/example: Fix bug causing false negatives for Example playability.

Allows Examples with KeyValue expressions to be playable in godoc.

During the traversal of the abstract syntax tree any KeyValueExpr Key.Name was incorrectly being added as an unresolved identifier.
Since this identifier could not be provided the Example was marked as unplayable.
This updates the AST traversal to skip Keys (but continue traversing the Values).

Example of problematic AST now fixed (see L99 where "UpperBound" was being added as a missing identifier):

 81  .  .  .  .  .  .  .  .  .  Values: []ast.Expr (len = 1) {
 82  .  .  .  .  .  .  .  .  .  .  0: *ast.UnaryExpr {
 83  .  .  .  .  .  .  .  .  .  .  .  OpPos: 12:19
 84  .  .  .  .  .  .  .  .  .  .  .  Op: &
 85  .  .  .  .  .  .  .  .  .  .  .  X: *ast.CompositeLit {
 86  .  .  .  .  .  .  .  .  .  .  .  .  Type: *ast.SelectorExpr {
 87  .  .  .  .  .  .  .  .  .  .  .  .  .  X: *ast.Ident {
 88  .  .  .  .  .  .  .  .  .  .  .  .  .  .  NamePos: 12:20
 89  .  .  .  .  .  .  .  .  .  .  .  .  .  .  Name: "t_proto"
 90  .  .  .  .  .  .  .  .  .  .  .  .  .  }
 91  .  .  .  .  .  .  .  .  .  .  .  .  .  Sel: *ast.Ident {
 92  .  .  .  .  .  .  .  .  .  .  .  .  .  .  NamePos: 12:41
 93  .  .  .  .  .  .  .  .  .  .  .  .  .  .  Name: "BConfig"
 94  .  .  .  .  .  .  .  .  .  .  .  .  .  }
 95  .  .  .  .  .  .  .  .  .  .  .  .  }
 96  .  .  .  .  .  .  .  .  .  .  .  .  Lbrace: 12:79
 97  .  .  .  .  .  .  .  .  .  .  .  .  Elts: []ast.Expr (len = 2) {
 98  .  .  .  .  .  .  .  .  .  .  .  .  .  0: *ast.KeyValueExpr {
 99  .  .  .  .  .  .  .  .  .  .  .  .  .  .  Key: *ast.Ident {
100  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  NamePos: 13:3
101  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  Name: "UpperBound"
102  .  .  .  .  .  .  .  .  .  .  .  .  .  .  }
103  .  .  .  .  .  .  .  .  .  .  .  .  .  .  Colon: 13:13
104  .  .  .  .  .  .  .  .  .  .  .  .  .  .  Value: *ast.CallExpr {
105  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  Fun: *ast.SelectorExpr {
106  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  X: *ast.Ident {
107  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  NamePos: 13:15
108  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  Name: "proto"
109  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  }
110  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  Sel: *ast.Ident {
111  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  NamePos: 13:21
112  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  Name: "Float32"
113  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  .  }

R=adg
CC=gobot, golang-dev, gri
https://golang.org/cl/8569045

11 years agoC: add Jeremiah Harmsen (Google CLA)
Andrew Gerrand [Mon, 6 May 2013 17:12:45 +0000 (10:12 -0700)]
C: add Jeremiah Harmsen (Google CLA)

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

11 years agoimage/png: fix error message to not return width twice
Brad Fitzpatrick [Mon, 6 May 2013 16:59:33 +0000 (09:59 -0700)]
image/png: fix error message to not return width twice

Fixes #5413

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

11 years agogo/build: document GOOS.go also has implicit GOOS build constraint
Shenghou Ma [Sat, 4 May 2013 18:23:19 +0000 (02:23 +0800)]
go/build: document GOOS.go also has implicit GOOS build constraint

R=golang-dev, i.caught.air, alexb, r
CC=golang-dev
https://golang.org/cl/9064044

11 years agotext/template: comment fix
Keith Randall [Fri, 3 May 2013 21:22:34 +0000 (14:22 -0700)]
text/template: comment fix

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

11 years agodoc: fix formatting in effective go code snippet
Andrew Gerrand [Fri, 3 May 2013 19:24:05 +0000 (15:24 -0400)]
doc: fix formatting in effective go code snippet

Fixes #5403.

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

11 years agoruntime/cgo: fix build for ARM
Shenghou Ma [Fri, 3 May 2013 09:15:43 +0000 (17:15 +0800)]
runtime/cgo: fix build for ARM

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

11 years agocmd/ld: add .note.GNU-stack section for external linking
Shenghou Ma [Fri, 3 May 2013 08:33:21 +0000 (16:33 +0800)]
cmd/ld: add .note.GNU-stack section for external linking
Fixes #5392.

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

11 years agoregexp: doc fix
Brad Fitzpatrick [Fri, 3 May 2013 01:59:39 +0000 (18:59 -0700)]
regexp: doc fix

This must have been from when "error" was a good variable
name for an "os.Error". But we use "err" these days.

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

11 years agodoc: only U+FEFF is a byte-order mark; U+FFFE is not
Russ Cox [Thu, 2 May 2013 19:01:31 +0000 (15:01 -0400)]
doc: only U+FEFF is a byte-order mark; U+FFFE is not

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

11 years agocmd/ld: fix SDYNIMPORT symbol test
Alex Brainman [Thu, 2 May 2013 03:02:00 +0000 (13:02 +1000)]
cmd/ld: fix SDYNIMPORT symbol test

As advised by iant. Fixes windows build.

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

11 years agocmd/ld: fix another unsigned value causing bugs on Plan 9
Rob Pike [Thu, 2 May 2013 00:00:21 +0000 (17:00 -0700)]
cmd/ld: fix another unsigned value causing bugs on Plan 9
"The usual conversions" bite again.

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

11 years agolibmach: fix build on Plan 9
David du Colombier [Wed, 1 May 2013 22:48:13 +0000 (15:48 -0700)]
libmach: fix build on Plan 9

Include libc.h before bio.h in 8.c, because bio.h uses
the UTFmax enum, which is declared in libc.h, since
the recent switch to 21-bit runes in Plan 9.

The 5.c and 6.c files already includes libc.h.

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

11 years agocmd/cgo: correct pragma name in comment
Ian Lance Taylor [Wed, 1 May 2013 21:31:42 +0000 (14:31 -0700)]
cmd/cgo: correct pragma name in comment

R=rsc, alexb, minux.ma, bradfitz, i.caught.air
CC=golang-dev
https://golang.org/cl/9082043

11 years agoruntime/cgo: export symbols in both internal and external link mode
Ian Lance Taylor [Wed, 1 May 2013 21:30:51 +0000 (14:30 -0700)]
runtime/cgo: export symbols in both internal and external link mode

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

11 years agocmd/ld: fix syms that are both cgo_import_static & cgo_import_dynamic
Ian Lance Taylor [Wed, 1 May 2013 21:30:19 +0000 (14:30 -0700)]
cmd/ld: fix syms that are both cgo_import_static & cgo_import_dynamic

This is needed for SWIG when linking in internal mode.  In
internal mode if a symbol was cgo_import_static we used to
forget that it was also cgo_import_dynamic.

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

11 years agodoc: link to Go 1.1 release notes
Andrew Gerrand [Wed, 1 May 2013 14:00:05 +0000 (10:00 -0400)]
doc: link to Go 1.1 release notes

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

11 years agonet: do not call syscall.Bind twice on windows
Alex Brainman [Wed, 1 May 2013 00:47:39 +0000 (17:47 -0700)]
net: do not call syscall.Bind twice on windows

Fixes #5355.

R=golang-dev, mikioh.mikioh, bradfitz, r
CC=golang-dev
https://golang.org/cl/8966046

11 years agocmd/ld: when linking externally, only generate dwarf info for ELF
Rob Pike [Tue, 30 Apr 2013 21:22:28 +0000 (14:22 -0700)]
cmd/ld: when linking externally, only generate dwarf info for ELF

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

11 years agocmd/go: undo CL 8119049
Russ Cox [Tue, 30 Apr 2013 21:04:58 +0000 (17:04 -0400)]
cmd/go: undo CL 8119049

Manual undo due to later changes in doc/go1.1.html; cmd/go/test.bash still passes.

Rationale, from CL 8119049 review log:

This makes the 'go run' command different from every other command.
For example, 'go test' does not mean 'go test *.go'.

If we were going to handle the no arguments case in 'go run', I would hope that
it would scan the current directory to find a package just like 'go build' or
'go test' would, and then it would require that package to be 'package main',
and then it would run that package. This would make it match 'go test' and 'go
build' and 'go install' and so on. It would mean that if you are working on a
command in a directory that is 'go install'able, then 'go run' will run the
binary for you. The current CL does not accomplish that when build constraints
or file name constraints are involved.

For example, if I am working on a program like:

$ ls
main.go
main_386.s
main_arm.s
main_amd64.s
$

Then 'go run' will fail here because the .s files are ignored.

If instead I am working on a program like:

$ ls
main.go
main_386.go
main_arm.go
main_amd64.go
$

then 'go run' will fail because too many files are included.

I would like to see this command implemented so that it is compatible with the
other go subcommands. Since it is too late to do that for Go 1.1, I would like
to see this CL reverted, to preserve the option to do it better later.

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

11 years agocmd/ld: emit relocs for DWARF info when doing an external link
Ian Lance Taylor [Tue, 30 Apr 2013 21:01:05 +0000 (14:01 -0700)]
cmd/ld: emit relocs for DWARF info when doing an external link

I would like opinions on whether this is a good idea for 1.1.
On the one hand it's a moderately important issue.  On the
other hand this introduces at least the possibility of
external linker errors due to the additional relocations and
it may be better to wait.

I'm fairly confident that the behaviour is unchanged when not
using an external linker.

Update #5221

This CL is tested lightly on 386 and amd64 and fixes the cases
I tested.  I have not tested it on Darwin or Windows.

R=golang-dev, dave, daniel.morsing, rsc
CC=golang-dev
https://golang.org/cl/8858047

11 years agoos/exec: disable TestExtraFilesFDShuffle
Rob Pike [Tue, 30 Apr 2013 20:17:37 +0000 (13:17 -0700)]
os/exec: disable TestExtraFilesFDShuffle
It's too hard to make portable just now.

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

11 years agosyscall: fix a bug in the shuffling of file descriptors in StartProcess on Linux.
Cosmos Nicolaou [Tue, 30 Apr 2013 18:52:23 +0000 (11:52 -0700)]
syscall: fix a bug in the shuffling of file descriptors in StartProcess on Linux.

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

11 years agosyscall: fix exec_bsd.go to accompany exec_linux.go changes
Rob Pike [Tue, 30 Apr 2013 18:52:15 +0000 (11:52 -0700)]
syscall: fix exec_bsd.go to accompany exec_linux.go changes
exec_plan9.go too.
Those are in CL 8334044

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

11 years agocmd/ld: another attempt at the relocation overflow fix
Rob Pike [Tue, 30 Apr 2013 16:49:36 +0000 (09:49 -0700)]
cmd/ld: another attempt at the relocation overflow fix

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

11 years agocmd/ld: fix check for address wrap in relocation
Rob Pike [Tue, 30 Apr 2013 16:10:10 +0000 (09:10 -0700)]
cmd/ld: fix check for address wrap in relocation
PC-relative needs a signed offset; others need unsigned.
Also fix signedness of 32-bit relocation on Windows.

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

11 years agodoc/go1.1: remove discussion of "go run" change
Andrew Gerrand [Tue, 30 Apr 2013 13:47:23 +0000 (09:47 -0400)]
doc/go1.1: remove discussion of "go run" change

Update #5164

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

11 years agocmd/ld: disable relocation range check so build can go green while we debug the issue.
Rob Pike [Tue, 30 Apr 2013 07:19:21 +0000 (00:19 -0700)]
cmd/ld: disable relocation range check so build can go green while we debug the issue.

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

11 years agocmd/gc: fix some overflows in the compiler
Rob Pike [Tue, 30 Apr 2013 05:44:40 +0000 (22:44 -0700)]
cmd/gc: fix some overflows in the compiler
Some 64-bit fields were run through 32-bit words, some counts were
not checked for overflow, and relocations must fit in 32 bits.
Tests to follow.

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

11 years agocmd/ld: fix some 64-bit issues
Rob Pike [Tue, 30 Apr 2013 05:44:20 +0000 (22:44 -0700)]
cmd/ld: fix some 64-bit issues
A few places in the linker pushed 64-bit values through 32-bit holes,
including in relocation.
Clean them up, and check for a few other overflows as well.
Tests to follow.

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

11 years agoencoding/json: document that marshaling invalid utf-8 sequence will return error
Shenghou Ma [Tue, 30 Apr 2013 03:21:48 +0000 (11:21 +0800)]
encoding/json: document that marshaling invalid utf-8 sequence will return error
Also added docs for InvalidUTF8Error.
Fixes #5360.

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

11 years agofmt: fix crash for Printf("%.", 3)
Rob Pike [Mon, 29 Apr 2013 20:52:07 +0000 (13:52 -0700)]
fmt: fix crash for Printf("%.", 3)
Fixes #5311

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

11 years agoruntime: fix stack pointer corruption in runtime.cgocallback_gofunc()
Shenghou Ma [Mon, 29 Apr 2013 20:13:32 +0000 (04:13 +0800)]
runtime: fix stack pointer corruption in runtime.cgocallback_gofunc()
runtime.setmg() calls another function (cgo_save_gm), so it must save
LR onto stack.
Re-enabled TestCthread test in misc/cgo/test.

Fixes #4863.

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

11 years agofmt: document that if String or Error panics, that value is printed
Ian Lance Taylor [Mon, 29 Apr 2013 19:01:32 +0000 (12:01 -0700)]
fmt: document that if String or Error panics, that value is printed

Fixes #5350.

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

11 years agonet/http/httptest: fix incorrectly-named ResponseRecorder example
Andrew Gerrand [Mon, 29 Apr 2013 15:34:47 +0000 (17:34 +0200)]
net/http/httptest: fix incorrectly-named ResponseRecorder example

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

11 years agomath/rand: fix typo and add better crash message
Brad Fitzpatrick [Sun, 28 Apr 2013 01:50:38 +0000 (18:50 -0700)]
math/rand: fix typo and add better crash message

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

11 years agoruntime: tune appendCrossover for arm
Dave Cheney [Sat, 27 Apr 2013 14:18:11 +0000 (00:18 +1000)]
runtime: tune appendCrossover for arm

Turns out the optimal value is 8 on cortex-A9 systems (pandaboard)

benchmark                     old ns/op    new ns/op    delta
BenchmarkAppend                     907          908   +0.11%
BenchmarkAppend1Byte                101          101   +0.00%
BenchmarkAppend4Bytes               116          116   +0.00%
BenchmarkAppend8Bytes               139          138   -0.72%
BenchmarkAppend16Bytes              185          158  -14.59%
BenchmarkAppend32Bytes              131          131   +0.00%
BenchmarkAppendStr1Byte              72           72   +0.00%
BenchmarkAppendStr4Bytes             93           93   -0.21%
BenchmarkAppendStr8Bytes            116          116   +0.00%
BenchmarkAppendStr16Bytes           161          125  -22.36%
BenchmarkAppendStr32Bytes           102          102   +0.00%
BenchmarkAppendSpecialCase          613          613   +0.00%

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

11 years agodatabase/sql/driver: try to unstutter Value docs
Brad Fitzpatrick [Fri, 26 Apr 2013 18:42:58 +0000 (11:42 -0700)]
database/sql/driver: try to unstutter Value docs

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

11 years agotime: stop 1ns timer in test
Dmitriy Vyukov [Fri, 26 Apr 2013 07:08:50 +0000 (11:08 +0400)]
time: stop 1ns timer in test

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

11 years agodatabase/sql: fix driver Conn refcounting with prepared statements
Brad Fitzpatrick [Thu, 25 Apr 2013 21:45:56 +0000 (14:45 -0700)]
database/sql: fix driver Conn refcounting with prepared statements

The refcounting of driver Conns was completedly busted and
would leak (be held open forever) with any reasonable
load. This was a significant regression from Go 1.0.

The core of this patch is removing one line:

     s.db.addDep(dc, s)

A database conn (dc) is a resource that be re-created any time
(but cached for speed) should not be held open forever with a
dependency refcount just because the Stmt (s) is alive (which
typically last for long periods of time, like forever).

The meat of the patch is new tests. In fixing the real issue,
a lot of tests then failed due to the fakedb_test.go's paranoia
about closing a fakeConn while it has open fakeStmts on it. I
could've ignored that, but that's been a problem in the past for
other bugs.

Instead, I now track per-Conn open statements and close them
when the the conn closes.  The proper way to do this would've
been making *driverStmt a finalCloser and using the dep mechanism,
but it was much more invasive. Added a TODO instead.

I'd like to give a way for drivers to opt-out of caring about
driver.Stmt closes before a driver.Conn close, but that's a TODO
for the future, and that TODO is added in this CL.

I know this is very late for Go 1.1, but database/sql is
currently nearly useless without this.

I'd like to believe all these database/sql bugs in the past
release cycle are the result of increased usage, number of
drivers, and good feedback from increasingly-capable Go
developers, and not the result of me sucking.  It's also hard
with all the real drivers being out-of-tree, so I'm having to
add more and more hooks to fakedb_test.go to simulate things
which real drivers end up doing.

Fixes #5323

R=golang-dev, snaury, gwenn.kahz, google, r
CC=golang-dev
https://golang.org/cl/8836045

11 years agocmd/gc: initialize t->width in dgcsym() if required
Jan Ziak [Thu, 25 Apr 2013 16:47:12 +0000 (18:47 +0200)]
cmd/gc: initialize t->width in dgcsym() if required

Update #5291.

R=golang-dev, daniel.morsing, iant, r
CC=golang-dev
https://golang.org/cl/8663052

11 years agoundo CL 8954044 / ad3c2ffb16d7
Jan Ziak [Thu, 25 Apr 2013 16:12:09 +0000 (18:12 +0200)]
undo CL 8954044 / ad3c2ffb16d7

It works on i386, but fails on amd64 and arm.

««« original CL description
runtime: prevent the GC from seeing the content of a frame in runfinq()

Fixes #5348.

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

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

11 years agoruntime: prevent the GC from seeing the content of a frame in runfinq()
Jan Ziak [Thu, 25 Apr 2013 11:39:09 +0000 (13:39 +0200)]
runtime: prevent the GC from seeing the content of a frame in runfinq()

Fixes #5348.

R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/8954044

11 years agonet: deflake raw IP protocol entry test on Windows
Mikio Hara [Thu, 25 Apr 2013 04:23:24 +0000 (13:23 +0900)]
net: deflake raw IP protocol entry test on Windows

Update #5344

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

11 years agocmd/vet: clean up the test
Rob Pike [Wed, 24 Apr 2013 17:40:29 +0000 (10:40 -0700)]
cmd/vet: clean up the test
- clean up the notypes version of the test so it's quiet
- change the package in the buildtag test to avoid confusing godoc

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

11 years agocmd/5g, cmd/6g, cmd/8g: more nil ptr to large struct checks
Ian Lance Taylor [Wed, 24 Apr 2013 15:13:01 +0000 (08:13 -0700)]
cmd/5g, cmd/6g, cmd/8g: more nil ptr to large struct checks

R=r, ken, khr, daniel.morsing
CC=dsymonds, golang-dev, rickyz
https://golang.org/cl/8925043

11 years agonet: add missing File method document
Mikio Hara [Tue, 23 Apr 2013 23:32:11 +0000 (08:32 +0900)]
net: add missing File method document

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

11 years agocmd/dist: fix line numbers in goc2c generated files
Anthony Martin [Tue, 23 Apr 2013 23:02:50 +0000 (16:02 -0700)]
cmd/dist: fix line numbers in goc2c generated files

We have to reset the global lineno variable before
processing each file otherwise line numbers will be
offset by the number of lines in the previous file.

The following examples are from the beginning of the
ztime_linux_amd64.c file which is generated from
time.goc in the runtime package.

Before:
    #line 2483 "/home/apm/src/go/src/pkg/runtime/time.goc"
    static Timers timers;
    static void addtimer ( Timer* ) ;
    void
    time·Sleep(int64 ns)
    {
    #line 2492 "/home/apm/src/go/src/pkg/runtime/time.goc"

After:
    #line 16 "/home/apm/src/go/src/pkg/runtime/time.goc"
    static Timers timers;
    static void addtimer ( Timer* ) ;
    void
    time·Sleep(int64 ns)
    {
    #line 25 "/home/apm/src/go/src/pkg/runtime/time.goc"

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

11 years agoall: fix typos
Shenghou Ma [Tue, 23 Apr 2013 20:46:14 +0000 (04:46 +0800)]
all: fix typos

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

11 years agodoc/code.html: remove doubled word; modify the tab to space.
Oling Cat [Tue, 23 Apr 2013 20:13:51 +0000 (13:13 -0700)]
doc/code.html: remove doubled word; modify the tab to space.

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

11 years agodoc: fix typo in race_detector.html
Jeremy Jackins [Tue, 23 Apr 2013 20:11:58 +0000 (13:11 -0700)]
doc: fix typo in race_detector.html

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

11 years agodoc/effective_go.html: fix syntax error in code example
Shenghou Ma [Tue, 23 Apr 2013 19:51:31 +0000 (03:51 +0800)]
doc/effective_go.html: fix syntax error in code example
Fixes #5333.

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