]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
12 years agoweekly.2012-02-22 weekly.2012-02-22
Andrew Gerrand [Thu, 23 Feb 2012 05:40:13 +0000 (16:40 +1100)]
weekly.2012-02-22

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

12 years agonet/http: some more cookie tests
Brad Fitzpatrick [Thu, 23 Feb 2012 04:51:53 +0000 (15:51 +1100)]
net/http: some more cookie tests

Including a commented-out test we might
tackle later, after seeing what browsers do.

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

12 years agoencoding/xml: add example and docs for anon fields
Gustavo Niemeyer [Thu, 23 Feb 2012 03:35:50 +0000 (01:35 -0200)]
encoding/xml: add example and docs for anon fields

Anonymous pointer fields is not yet supported.
The problem is documented in issue 3108.

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

12 years agonet: add a bit clarified multicast listener tests
Mikio Hara [Thu, 23 Feb 2012 03:16:43 +0000 (12:16 +0900)]
net: add a bit clarified multicast listener tests

Also adds -external flag to allow use of external networks on tests.

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

12 years agopprof: add Profile type
Russ Cox [Thu, 23 Feb 2012 02:46:12 +0000 (21:46 -0500)]
pprof: add Profile type

Makes it possible for client code to maintain its own profiles,
and also reduces the API surface by giving us a type that
models built-in profiles.

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

12 years agoruntime: goroutine profile, stack dumps
Russ Cox [Thu, 23 Feb 2012 02:45:01 +0000 (21:45 -0500)]
runtime: goroutine profile, stack dumps

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

12 years agoencoding/xml: move Unmarshal example to function
Gustavo Niemeyer [Thu, 23 Feb 2012 01:37:57 +0000 (23:37 -0200)]
encoding/xml: move Unmarshal example to function

This also fixes MarshalIndent's example after the
recent formatting convention changes.

Fixes #2831.

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

12 years agotime: run full TestTicker test even during short tests
Alex Brainman [Thu, 23 Feb 2012 01:07:59 +0000 (12:07 +1100)]
time: run full TestTicker test even during short tests

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

12 years ago5a: fix same arm bug
Russ Cox [Wed, 22 Feb 2012 22:36:25 +0000 (17:36 -0500)]
5a: fix same arm bug

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

12 years ago5c, 5g, 5l: fix arm bug
Russ Cox [Wed, 22 Feb 2012 21:29:14 +0000 (16:29 -0500)]
5c, 5g, 5l: fix arm bug

Using reg as the flag word was unfortunate, since the
default value is not 0 but NREG (==16), which happens
to be the bit NOPTR now.  Clear it.

If I say this will fix the build, it won't.

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

12 years agocmd/dist: fix install cmd/5g on non-arm system
Russ Cox [Wed, 22 Feb 2012 21:29:05 +0000 (16:29 -0500)]
cmd/dist: fix install cmd/5g on non-arm system

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

12 years agonet: make raw IP tests robust
Mikio Hara [Wed, 22 Feb 2012 21:27:05 +0000 (06:27 +0900)]
net: make raw IP tests robust

Make it rely on underlying socket's address family.

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

12 years agonet: make parseProcNetIGMP more robust
Mikio Hara [Wed, 22 Feb 2012 21:26:31 +0000 (06:26 +0900)]
net: make parseProcNetIGMP more robust

Suggested by Paul Borman.

Fixes #2826.

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

12 years agoos: make the system info a value not a pointer on unix
Rob Pike [Wed, 22 Feb 2012 20:51:49 +0000 (07:51 +1100)]
os: make the system info a value not a pointer on unix
fix a couple of other minor related details.

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

12 years agobuilder: reuse existing workspace if possible
Shenghou Ma [Wed, 22 Feb 2012 20:39:53 +0000 (15:39 -0500)]
builder: reuse existing workspace if possible

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

12 years agonet: delete debugging print
Russ Cox [Wed, 22 Feb 2012 20:35:41 +0000 (15:35 -0500)]
net: delete debugging print

Fixes #3030.

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

12 years agobuilder: update for os.Wait changes.
Brad Fitzpatrick [Wed, 22 Feb 2012 19:48:41 +0000 (11:48 -0800)]
builder: update for os.Wait changes.

This compiles again.

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

12 years agogo/printer, gofmt: improved comma placement
Robert Griesemer [Wed, 22 Feb 2012 19:27:45 +0000 (11:27 -0800)]
go/printer, gofmt: improved comma placement

Not a Go 1 issue, but appeared to be fairly easy to fix.

- Note that a few existing test cases look slightly worse but
  those cases were not representative for real code. All real
  code looks better now.

- Manual move of the comment in go/scanner/example_test.go
  before applying gofmt.

- gofmt -w $GOROOT/src $GOROOT/misc

Fixes #3062.

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

12 years agogodoc: proper index range checking when extracting example code
Robert Griesemer [Wed, 22 Feb 2012 19:25:21 +0000 (11:25 -0800)]
godoc: proper index range checking when extracting example code

Fixes #3092.

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

12 years agocgo: fix definition of opaque types
Gustavo Niemeyer [Wed, 22 Feb 2012 19:10:25 +0000 (17:10 -0200)]
cgo: fix definition of opaque types

Fixes #3082.

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

12 years agogo/doc: move firstSentence into go/doc
Robert Griesemer [Wed, 22 Feb 2012 18:49:37 +0000 (10:49 -0800)]
go/doc: move firstSentence into go/doc

- renamed firstSentence -> Synopsis
- also deal with common abbreviations

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

12 years agonet: replace error variable name oserr with err
Mikio Hara [Wed, 22 Feb 2012 10:08:19 +0000 (19:08 +0900)]
net: replace error variable name oserr with err

This CL replaces the last two in source tree.

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

12 years agogodoc: fix potential index out-of-bounds error
Robert Griesemer [Wed, 22 Feb 2012 06:50:00 +0000 (22:50 -0800)]
godoc: fix potential index out-of-bounds error

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

12 years agold: get symbol table letters right
Russ Cox [Wed, 22 Feb 2012 06:30:04 +0000 (01:30 -0500)]
ld: get symbol table letters right

Have to assign them before we create the symbol table.
ARM debugging.

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

12 years agogc: new, less strict bool rules
Russ Cox [Wed, 22 Feb 2012 05:29:37 +0000 (00:29 -0500)]
gc: new, less strict bool rules

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

12 years agogc: never crash during a debugging print
Russ Cox [Wed, 22 Feb 2012 05:29:23 +0000 (00:29 -0500)]
gc: never crash during a debugging print

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

12 years agospec: refine the wording about variables in type switches
Rob Pike [Wed, 22 Feb 2012 05:25:55 +0000 (16:25 +1100)]
spec: refine the wording about variables in type switches

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

12 years agocmd/go: add tool -n flag
Russ Cox [Wed, 22 Feb 2012 05:06:50 +0000 (00:06 -0500)]
cmd/go: add tool -n flag

As in gdb $(go tool -n 6g).

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

12 years agocmd/fix: remove os.Wait gofix.
David Symonds [Wed, 22 Feb 2012 04:46:31 +0000 (15:46 +1100)]
cmd/fix: remove os.Wait gofix.

The os.Wait function has been removed entirely, so there's no point in fixing code that called it.

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

12 years agoruntime: fix FreeBSD signal handling around thread creation
Devon H. O'Dell [Wed, 22 Feb 2012 04:44:09 +0000 (15:44 +1100)]
runtime: fix FreeBSD signal handling around thread creation
Ignore signals while we are spawning a new thread. Previously, a
signal arriving just before runtime.minit setting up the signal
handler triggers a "double fault" in signal trampolining.
Fixes #3017.

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

12 years agomisc/dist/windows: fix broken icon, other misc
Joe Poirier [Wed, 22 Feb 2012 04:15:03 +0000 (22:15 -0600)]
misc/dist/windows: fix broken icon, other misc

fix, and shrink, the gopher icon, txt extensions
for license and readme files, minor format changes
in the wxs file

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

12 years agold: only set SNOPTRBSS during load
Russ Cox [Wed, 22 Feb 2012 04:04:38 +0000 (23:04 -0500)]
ld: only set SNOPTRBSS during load

dodata will convert to SNOPTRDATA if appropriate.
Should fix arm build (hope springs eternal).

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

12 years agodoc: move styles to style.css
Andrew Gerrand [Wed, 22 Feb 2012 04:02:31 +0000 (15:02 +1100)]
doc: move styles to style.css

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

12 years agogc: return of ideal bool
Russ Cox [Wed, 22 Feb 2012 03:54:07 +0000 (22:54 -0500)]
gc: return of ideal bool

This is a manual undo of CL 5674098.
It does not implement the even less strict spec
that we just agreed on, but it gets us back where
we were at the last weekly.

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

12 years agold: add NOPTRBSS for large, pointer-free uninitialized data
Russ Cox [Wed, 22 Feb 2012 03:08:42 +0000 (22:08 -0500)]
ld: add NOPTRBSS for large, pointer-free uninitialized data
cc: add #pragma textflag to set it
runtime: mark mheap to go into noptr-bss.
        remove special case in garbage collector

Remove the ARM from.flag field created by CL 5687044.
The DUPOK flag was already in p->reg, so keep using that.

Otherwise test/nilptr.go creates a very large binary.
Should fix the arm build.
Diagnosed by minux.ma; replacement for CL 5690044.

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

12 years agospec: make all comparison results untyped bool
Russ Cox [Wed, 22 Feb 2012 03:04:30 +0000 (22:04 -0500)]
spec: make all comparison results untyped bool

Or, depending on your point of view, make the
comparisons satisfy any surrounding boolean type.

Also, fix a few foo_bar -> fooBar in code fragments.

Fixes #2561.

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

12 years agogodoc: fix absolute->relative mapping
Robert Griesemer [Wed, 22 Feb 2012 02:12:37 +0000 (18:12 -0800)]
godoc: fix absolute->relative mapping

Fixes #3096.

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

12 years agoruntime: use SYSCALL instead of INT 0x80 in FreeBSD's runtime.osyield on amd64
Devon H. O'Dell [Wed, 22 Feb 2012 02:04:25 +0000 (11:04 +0900)]
runtime: use SYSCALL instead of INT 0x80 in FreeBSD's runtime.osyield on amd64

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

12 years agogodoc: adjust line height in pre blocks
Andrew Gerrand [Wed, 22 Feb 2012 01:45:01 +0000 (12:45 +1100)]
godoc: adjust line height in pre blocks

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

12 years agonet/http: update test to use time.Duration better
Brad Fitzpatrick [Wed, 22 Feb 2012 00:22:09 +0000 (11:22 +1100)]
net/http: update test to use time.Duration better

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

12 years agonet/textproto: accept bad MIME headers as browsers do
Brad Fitzpatrick [Wed, 22 Feb 2012 00:13:59 +0000 (11:13 +1100)]
net/textproto: accept bad MIME headers as browsers do

Accept certain non-compliant response headers
(in particular, when spaces preceed the colon).
All major browser and curl seem to support this,
and at least one webserver seems to send these.

*shrug*

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5690059

12 years agotest: use testlib in a few more cases.
Rémy Oudompheng [Tue, 21 Feb 2012 23:19:59 +0000 (00:19 +0100)]
test: use testlib in a few more cases.

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

12 years agogodoc: fix playground url
Andrew Gerrand [Tue, 21 Feb 2012 23:09:34 +0000 (10:09 +1100)]
godoc: fix playground url

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5685070

12 years agotext/tabwriter: fix documentation by adding an example.
Robert Griesemer [Tue, 21 Feb 2012 22:48:17 +0000 (14:48 -0800)]
text/tabwriter: fix documentation by adding an example.

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

12 years agomisc/goplay: remove redundant chdir
Andrew Gerrand [Tue, 21 Feb 2012 22:37:38 +0000 (09:37 +1100)]
misc/goplay: remove redundant chdir

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

12 years agogodoc: support flat directory view again
Andrew Gerrand [Tue, 21 Feb 2012 22:25:56 +0000 (09:25 +1100)]
godoc: support flat directory view again

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

12 years agodoc: support redirect-on-share
Andrew Gerrand [Tue, 21 Feb 2012 22:16:54 +0000 (09:16 +1100)]
doc: support redirect-on-share

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

12 years agocmd/dist: fix pprof permissions
Bobby Powers [Tue, 21 Feb 2012 21:49:30 +0000 (16:49 -0500)]
cmd/dist: fix pprof permissions

When installing pprof into the tools directory, it needs to
have execute permissions on unix-like systems.

Fixes issues 3077.

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

12 years agonet/smtp: use EHLO then HELO
Russ Cox [Tue, 21 Feb 2012 21:39:02 +0000 (16:39 -0500)]
net/smtp: use EHLO then HELO

Before we were using "ESMTP" in the banner as a clue,
but that is not required by the RFC and breaks mailing
to smtp.yandex.ru.

Fixes #3045.

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

12 years agoruntime: avoid malloc during malloc
Russ Cox [Tue, 21 Feb 2012 21:36:15 +0000 (16:36 -0500)]
runtime: avoid malloc during malloc

A fault during malloc might lead to the program's
first call to findfunc, which would in turn call malloc.
Don't do that.

Fixes #1777.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5689047

12 years agocodereview: add submit message support for newer clone URL and subrepos
Shenghou Ma [Tue, 21 Feb 2012 21:10:48 +0000 (16:10 -0500)]
codereview: add submit message support for newer clone URL and subrepos

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

12 years agocmd/go: pass 2, remove reference to incomplete -file flag
Mike Rosset [Tue, 21 Feb 2012 20:42:03 +0000 (15:42 -0500)]
cmd/go: pass 2, remove reference to incomplete -file flag

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

12 years agocmd/go: 'go help test' remove documentation for incomplete -file flag
Mike Rosset [Tue, 21 Feb 2012 18:23:33 +0000 (13:23 -0500)]
cmd/go: 'go help test' remove documentation for incomplete -file flag

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

12 years agocmd/*: add -d option to bison.
Adam Langley [Tue, 21 Feb 2012 15:50:58 +0000 (10:50 -0500)]
cmd/*: add -d option to bison.

Without -d, bison doesn't generate y.tab.h.

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

12 years agoexp/norm: Added Iter type for iterating on segment boundaries. This type is mainly...
Marcel van Lohuizen [Tue, 21 Feb 2012 12:13:21 +0000 (13:13 +0100)]
exp/norm: Added Iter type for iterating on segment boundaries.  This type is mainly to be used
by other low-level libraries, like collate.  Extra care has been given to optimize the performance
of normalizing to NFD, as this is what will be used by the collator.  The overhead of checking
whether a string is normalized vs simply decomposing a string is neglible.  Assuming that most
strings are in the FCD form, this iterator can be used to decompose strings and normalize with
minimal overhead.

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

12 years agotest: fix bug423.go to actually fail with older releases.
Rémy Oudompheng [Tue, 21 Feb 2012 06:50:10 +0000 (07:50 +0100)]
test: fix bug423.go to actually fail with older releases.

The supposedly overflowing variable was registerized.

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

12 years agocmd/api: record return type of functions for variable typecheck.
Rémy Oudompheng [Tue, 21 Feb 2012 06:37:25 +0000 (07:37 +0100)]
cmd/api: record return type of functions for variable typecheck.

Also cleanup the resolveName method.

Fixes failure on go/build declaration:
        var ToolDir = filepath.Join(...)

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

12 years agodashboard: rename buttons to satisfy pedantic souls
Andrew Gerrand [Tue, 21 Feb 2012 06:13:14 +0000 (17:13 +1100)]
dashboard: rename buttons to satisfy pedantic souls

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

12 years agonet: extend the workaround to DialTCP to try to get arm building again.
Rob Pike [Tue, 21 Feb 2012 05:48:05 +0000 (16:48 +1100)]
net: extend the workaround to DialTCP to try to get arm building again.
Awfulness by the bucket that we hope
Fixes #3057.

R=golang-dev, mikioh.mikioh, dsymonds, r, rsc
CC=golang-dev
https://golang.org/cl/5687060

12 years agotest: fix broken test
Rob Pike [Tue, 21 Feb 2012 05:47:42 +0000 (16:47 +1100)]
test: fix broken test
TBR=bradfitz

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

12 years agocmd/gc: don't believe that variables mentioned 256 times are unused.
Rémy Oudompheng [Tue, 21 Feb 2012 05:38:01 +0000 (16:38 +1100)]
cmd/gc: don't believe that variables mentioned 256 times are unused.

Such variables would be put at 0(SP), leading to serious
corruptions at zero initialization.
Fixes #3084.

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

12 years agonet: more selfConnect debugging: panic if ra == nil in internetSocket
Rob Pike [Tue, 21 Feb 2012 04:49:08 +0000 (15:49 +1100)]
net: more selfConnect debugging: panic if ra == nil in internetSocket
TBR=dsymonds

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

12 years agonet: panic if sockaddrToTCP returns nil incorrectly
Rob Pike [Tue, 21 Feb 2012 04:21:34 +0000 (15:21 +1100)]
net: panic if sockaddrToTCP returns nil incorrectly
Part of diagnosing the selfConnect bug
TBR=dsymonds

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

12 years agonet: add diagnostic to try to catch selfConnect bug earlier
Rob Pike [Tue, 21 Feb 2012 03:53:07 +0000 (14:53 +1100)]
net: add diagnostic to try to catch selfConnect bug earlier
TBR=dsymonds

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

12 years agotest: rewrite test/run shell script + errchk (perl) in Go
Brad Fitzpatrick [Tue, 21 Feb 2012 03:28:49 +0000 (14:28 +1100)]
test: rewrite test/run shell script + errchk (perl) in Go

This doesn't run all ~750 of the tests, but most.

Progress on issue 2833

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

12 years agodoc: fix links in installation instructions
Andrew Gerrand [Tue, 21 Feb 2012 03:12:07 +0000 (14:12 +1100)]
doc: fix links in installation instructions

Fixes #3051.

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

12 years agoos: replace non-portable Waitmsg with portable ProcessState
Rob Pike [Tue, 21 Feb 2012 03:10:34 +0000 (14:10 +1100)]
os: replace non-portable Waitmsg with portable ProcessState
Use methods for key questions.
Provide access to non-portable pieces through portable methods.
Windows and Plan 9 updated.

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

12 years agoruntime: remove an obsolete file
Mikio Hara [Tue, 21 Feb 2012 03:07:38 +0000 (12:07 +0900)]
runtime: remove an obsolete file

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

12 years agodoc: link to self-hosted articles from docs.html
Andrew Gerrand [Tue, 21 Feb 2012 02:59:51 +0000 (13:59 +1100)]
doc: link to self-hosted articles from docs.html

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

12 years agomisc/goplay: remain in work directory, build in temp directory
Andrew Gerrand [Tue, 21 Feb 2012 00:24:29 +0000 (11:24 +1100)]
misc/goplay: remain in work directory, build in temp directory

Fixes #2935.

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

12 years agonet: more docs on deadlines
Brad Fitzpatrick [Tue, 21 Feb 2012 00:11:18 +0000 (11:11 +1100)]
net: more docs on deadlines

Fixes #2777

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

12 years agonet/http: add optional Server.TLSConfig field
Brad Fitzpatrick [Mon, 20 Feb 2012 23:24:15 +0000 (10:24 +1100)]
net/http: add optional Server.TLSConfig field

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

12 years agoruntime: implement runtime.osyield on FreeBSD 386, amd64
Devon H. O'Dell [Mon, 20 Feb 2012 22:32:20 +0000 (07:32 +0900)]
runtime: implement runtime.osyield on FreeBSD 386, amd64

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

12 years agonet: move hosts testdata to testdata folder
Mikio Hara [Mon, 20 Feb 2012 22:11:44 +0000 (07:11 +0900)]
net: move hosts testdata to testdata folder

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

12 years agodoc/go1: delete obsolete reference to FileStat
Rob Pike [Mon, 20 Feb 2012 21:03:03 +0000 (08:03 +1100)]
doc/go1: delete obsolete reference to FileStat
Fixes #3013.

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

12 years ago5g, 6g, 8g: flush modified globals aggressively
Russ Cox [Mon, 20 Feb 2012 18:41:44 +0000 (13:41 -0500)]
5g, 6g, 8g: flush modified globals aggressively

The alternative is to record enough information that the
trap handler know which registers contain cached globals
and can flush the registers back to their original locations.
That's significantly more work.

This only affects globals that have been written to.
Code that reads from a global should continue to registerize
as well as before.

Fixes #1304.

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

12 years agobuild: remove old version*.go files from hgignore
Brad Fitzpatrick [Mon, 20 Feb 2012 10:49:58 +0000 (02:49 -0800)]
build: remove old version*.go files from hgignore

This broke a build on a Linux box I hadn't updated
in awhile. The hgignore files were preventing hg status
from showing and hg purge from cleaning up junk.

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

12 years agocmd/6c: add line feed after an error message
Dmitriy Vyukov [Mon, 20 Feb 2012 09:57:14 +0000 (13:57 +0400)]
cmd/6c: add line feed after an error message

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

12 years agomisc/dist/windows: app engine gopher replaced with standard bw version
Joe Poirier [Mon, 20 Feb 2012 07:00:00 +0000 (01:00 -0600)]
misc/dist/windows: app engine gopher replaced with standard bw version

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

12 years agomisc/dist/windows: ongoing dev
Joe Poirier [Mon, 20 Feb 2012 06:29:57 +0000 (00:29 -0600)]
misc/dist/windows: ongoing dev

Embedded Go images in the installer dialog and
banner boxes, Go tree cloning uses version info
from the Go tool (readme updated), the installer
allows up/down-grading and reparing of the version
that's installed, added two registry values.

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

12 years agoos: drop the Wait function and the options to Process.Wait
Rob Pike [Mon, 20 Feb 2012 04:36:08 +0000 (15:36 +1100)]
os: drop the Wait function and the options to Process.Wait
They are portability problems and the options are almost always zero in practice anyway.

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

12 years agomisc/dist/windows: ongoing dev
Joe Poirier [Mon, 20 Feb 2012 04:21:41 +0000 (22:21 -0600)]
misc/dist/windows: ongoing dev

Added the (properly formatted) license file back,
the installer adds go\bin to the system PATH now,
the output package names are in line with the linux
and darwin versions, dist.bat extracts GOARCH in a
sane way, readme cleanup.

Tested on Windows 7 only. It would be helpful if
someone else could give it a try. See the readme
for details.

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

12 years agodatabase/sql/driver: API cleanups
Brad Fitzpatrick [Mon, 20 Feb 2012 03:25:28 +0000 (14:25 +1100)]
database/sql/driver: API cleanups

-- add driver.Value type and documentation,
   convert from interface{} to Value where
   appropriate.
-- don't say "subset" anywhere,
-- SubsetValuer -> Valuer
-- SubsetValue -> Value
-- IsParameterSubsetType -> IsValue
-- IsScanSubsetType -> IsScanValue

Fixes #2842

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

12 years agohtml/template: don't indirect past a Stringer
Rob Pike [Mon, 20 Feb 2012 03:23:45 +0000 (14:23 +1100)]
html/template: don't indirect past a Stringer

While we're here, get rid of the old names for the escaping functions.

Fixes #3073.

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

12 years agostrconv: run garbage collection before counting allocations in test
Russ Cox [Mon, 20 Feb 2012 03:13:04 +0000 (22:13 -0500)]
strconv: run garbage collection before counting allocations in test

My theory is that the call to f() allocates, which triggers
a garbage collection, which itself may do some allocation,
which is being counted.  Running a garbage collection
before starting the test should avoid this problem.

Fixes #2894 (I hope).

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

12 years agogo/doc: update golden file to fix build
Rob Pike [Mon, 20 Feb 2012 03:06:38 +0000 (14:06 +1100)]
go/doc: update golden file to fix build

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

12 years agoall: rewrite references to old tool names
Rob Pike [Mon, 20 Feb 2012 02:42:37 +0000 (13:42 +1100)]
all: rewrite references to old tool names

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

12 years agoFAQ: many small fixes and adjustments
Rob Pike [Mon, 20 Feb 2012 01:42:50 +0000 (12:42 +1100)]
FAQ: many small fixes and adjustments

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

12 years agogodoc: fix tag mismatch validation errors
Scott Lawrence [Mon, 20 Feb 2012 01:32:43 +0000 (12:32 +1100)]
godoc: fix tag mismatch validation errors

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

12 years agoos,time: fix Plan 9 build
Fazlul Shahriar [Mon, 20 Feb 2012 01:31:24 +0000 (12:31 +1100)]
os,time: fix Plan 9 build

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

12 years agobuild: implement clean.bat
Alex Brainman [Mon, 20 Feb 2012 01:17:27 +0000 (12:17 +1100)]
build: implement clean.bat

Fixes #2893.

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

12 years agohtml/template: minor tweak to docs to improve HTML typography.
David Symonds [Mon, 20 Feb 2012 00:43:34 +0000 (11:43 +1100)]
html/template: minor tweak to docs to improve HTML typography.

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

12 years ago5a, 5c, 5g, 5l: fix build for Linux/ARM.
Shenghou Ma [Sun, 19 Feb 2012 23:11:16 +0000 (18:11 -0500)]
5a, 5c, 5g, 5l: fix build for Linux/ARM.
ARM doesn't have the concept of scale, so I renamed the field
Addr.scale to Addr.flag to better reflect its true meaning.

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

12 years agodoc/go1: update for runtime, unsafe API changes
Russ Cox [Sun, 19 Feb 2012 23:04:38 +0000 (18:04 -0500)]
doc/go1: update for runtime, unsafe API changes

Fixes #2890.

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

12 years agosyscall: force Windows to always use US English error messages
Shenghou Ma [Sun, 19 Feb 2012 22:51:25 +0000 (09:51 +1100)]
syscall: force Windows to always use US English error messages
Fixes #1834.

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

12 years agodoc: update contrib.html
Bobby Powers [Sun, 19 Feb 2012 21:33:28 +0000 (08:33 +1100)]
doc: update contrib.html

Fix all the local links, as contrib.html is served as
/project/

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

12 years agocmd/fix: add runtime renamings
Russ Cox [Sun, 19 Feb 2012 21:10:45 +0000 (16:10 -0500)]
cmd/fix: add runtime renamings

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

12 years agodoc/install.html: fix link
Rob Pike [Sun, 19 Feb 2012 21:08:30 +0000 (08:08 +1100)]
doc/install.html: fix link
Fixes #3072.

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

12 years agotest/initsyscall.go: delete
Rob Pike [Sun, 19 Feb 2012 20:44:41 +0000 (07:44 +1100)]
test/initsyscall.go: delete
It's testing an old property of the language and is no longer relevant.

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

12 years agotest/initcomma.go: restore what it's supposed to be testing
Rob Pike [Sun, 19 Feb 2012 20:44:24 +0000 (07:44 +1100)]
test/initcomma.go: restore what it's supposed to be testing
which is trailing commas in literals. They were gofmted away at some point.

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