net: fix windows and plan9 build

Don't call unix-only function in test init.

R=golang-dev, alex.brainman
CC=golang-dev
https://codereview.appspot.com/7778043
unicode/utf8: fix insignificant typos in tests

Fixes issue 4972.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7649044

Committer: Brad Fitzpatrick <bradfitz@golang.org>
misc/pprof: fix address lookup regression on Linux

Just use "go tool addr2line" no matter what, since we know
it works for all OSs.

Fixes issue 4818.

R=rsc, r
CC=golang-dev
https://codereview.appspot.com/7526047

Committer: Rob Pike <r@golang.org>
encoding/xml: predefine xml name space prefix

Also change prefix generation to use more human-friendly prefixes.

Fixes issue 5040.

R=golang-dev, r, bradfitz
CC=golang-dev
https://codereview.appspot.com/7777047
net: use original raddr if getpeername fails

Fixes issue 3838.

R=dave, mikioh.mikioh, rsc
CC=golang-dev
https://codereview.appspot.com/7511043

Committer: Russ Cox <rsc@golang.org>
encoding/json: properly handle extra objects with fixed size arrays

If a fixed size array is passed in as the decode target and the JSON
to decode has extra array elements that are objects, then previously
the decoder would return a "data changing underfoot" error.

Fixes issue 3717.

R=golang-dev, adg, rsc
CC=golang-dev
https://codereview.appspot.com/7490046

Committer: Russ Cox <rsc@golang.org>
cmd/godoc: fix BUGS heading in text mode

All the headings are CAPS not Title.

Fixes issue 4843.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7792043
cmd/gc: silence valgrind error

valgrind complained that under some circumstances,

    *nr = *nc

was being called when nr and nc were the same *Node. The suggestion my Rémy was to introduce a tmp node to avoid the potential for aliasing in subnode.

R=remyoudompheng, minux.ma, rsc
CC=golang-dev
https://codereview.appspot.com/7780044
cmd/go: better documentation about profiling
Point the user to "go tool pprof" and mention some
important flags.

Fixes issue 4990.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7657045
cmd/vet: make struct tag literal test work better with no go/types

Eliminate false positives when you can tell even without
type information that the literal does not need field tags.

Far too noisy otherwise.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/7797043
cmd/go: add go1.1 build tag, add -installsuffix flag

The new build tag "go1.1" will be satisfied by any Go 1.z release >= 1.1.
In general, the build tag "go1.x" will be satisfied by any Go 1.z release >= 1.x.
What happens when we reach Go 2 is yet to be decided.

The tags "go1" or "go1.0" are missing, because +build tags did not exist
before then, and also because the Go 1.0 releases do not recognize them.

The new -installsuffix flag gives access to the build context's InstallSuffix
(formerly named InstallTag, but not part of Go 1.0), for use in isolating
builds to custom directories. For example -race implies -installsuffix race,
and an AppEngine-specific build might use -tags appengine -installsuffix appengine.

Fixes issue 4116.
Fixes issue 4443.

R=golang-dev, bradfitz, r
CC=golang-dev
https://codereview.appspot.com/7794043
encoding/xml: rewrite invalid code points to U+FFFD in Marshal, Escape

Fixes issue 4235.

R=rsc, dave, r, dr.volker.dobler
CC=golang-dev
https://codereview.appspot.com/7438051

Committer: Russ Cox <rsc@golang.org>
cmd/go: allow ~ in middle of path, just not at beginning

An earlier CL disallowed ~ anywhere in GOPATH, to avoid
problems with GOPATH='~/home' instead of GOPATH=~/home.
But ~ is only special in the shell at the beginning of each of
the paths in the list, and some paths do have ~ in the middle.
So relax the requirement slightly.

Fixes issue 4140.

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/7799045
net: prepare connect() for new network poller
The problem is that new network poller can have spurious
rediness notifications. This implementation ensures that
the socket is actually connected.

R=golang-dev, rsc, akumar
CC=golang-dev
https://codereview.appspot.com/7785043
runtime: integrated network poller for darwin
vs tip:
benchmark                           old ns/op    new ns/op    delta
BenchmarkTCP4Persistent                 67786        33175  -51.06%
BenchmarkTCP4Persistent-2               49085        31227  -36.38%
BenchmarkTCP4PersistentTimeout          69265        32565  -52.98%
BenchmarkTCP4PersistentTimeout-2        49217        32588  -33.79%

vs old scheduler:
benchmark                           old ns/op    new ns/op    delta
BenchmarkTCP4Persistent                 63517        33175  -47.77%
BenchmarkTCP4Persistent-2               54760        31227  -42.97%
BenchmarkTCP4PersistentTimeout          63234        32565  -48.50%
BenchmarkTCP4PersistentTimeout-2        56956        32588  -42.78%

R=golang-dev, bradfitz, devon.odell, mikioh.mikioh, iant, rsc
CC=golang-dev, pabuhr
https://codereview.appspot.com/7569043
runtime: fix build

R=golang-dev
CC=golang-dev
https://codereview.appspot.com/7529049
runtime: revert UseSpanType back to 1

R=golang-dev
CC=golang-dev
https://codereview.appspot.com/7812043