net: document OpError

Fixes issue 4797

R=adg, rsc
CC=golang-dev
https://codereview.appspot.com/7300099
os: cache Getwd result as hint for next time

Avoids the dot-dot-based algorithm on repeated calls
when the directory hasn't changed.

R=golang-dev, iant, bradfitz
CC=golang-dev
https://codereview.appspot.com/7340043
test/run: use correct $PWD to make os.Getwd less expensive

The commands being run are 'go tool this' and 'go tool that',
and the go command will call Getwd during its init.

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/7336045
cmd/go: set $PWD when running commands

This makes os.Getwd inside those commands much faster.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/7324055
syscall: don't make //sys lines be doc comments

Cleans up godoc and makes it consistent. (some had it, some
didn't)

This still keeps the information there, though, for people
looking at the source directly.

R=golang-dev, minux.ma, rsc
CC=golang-dev
https://codereview.appspot.com/7324056
C: add Michael Matloob (Google CLA)

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7343043
go/parser: stop ParseFile after ten errors.

There wil be a panic if more than ten errors are encountered. ParseFile
will recover and return the ErrorList.

Fixes issue 3943.

R=golang-dev, gri
CC=golang-dev
https://codereview.appspot.com/7307085

Committer: Robert Griesemer <gri@golang.org>
go/types: avoid os.Getwd if not necessary

Getwd can be very expensive.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/7312100
encoding/json: roll back Unmarshal optimization + test

The second attempt at the Unmarshal optimization allowed
panics to get out of the json package. Add test for that bug
and remove the optimization.

Let's stop trying to optimize Unmarshal.

Fixes issue 4784.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7300108
cmd/8g: fix sse2 compare code gen

Fixes issue 4785.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7300109
cmd/gc: replace x*8 by x<<3 etc

Fixes issue 4199.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7322081
encoding/json: document and test use of unicode.ReplacementChar

Fixes issue 4783.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7314099
cmd/go: fix vet

The IgnoredGoFiles are already listed in allgofiles,
so they were being run twice. Worse, the ones in
IgnoredGoFiles are not fully qualified paths, so they
weren't being found when executed outside the
package directory.

Fixes issue 4764.

R=golang-dev, minux.ma, franciscossouza
CC=golang-dev
https://codereview.appspot.com/7308049
runtime: add more tests for LockOSThread()
Just test some additional paths through the scheduler.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7331044
cmd/gc: remove node printing in redeclare errors

I suspect this is some debugging which got through the submission process.

Fixes issue 4789.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7310079
C: add Cosmos Nicolaou (Google CLA)

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7314103
go/parser: cleanups following CL 7307085

- use the new AllErrors flag where appropriate
- unless AllErrors is set, eliminate spurious
  errors before they are added to the errors list
  (it turns out that reporting spurious errors always
  leads to too many uninformative errors after all)

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7323065
src/cmd/gc: fix some typos in the escape analysis comments

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7342044
misc/dashboard/builder: record build result on dashboard

This is part one of two changes intended to make it easier to debug builder failures.

runOutput allows us to control the io.Writer passed to a subcommand. The intention is to add additional debugging information before and after the build which will then be capture and sent to the dashboard.

In this proposal, the only additional information is the build status. See http://build.golang.org/log/e7b5bf435b4de1913fc61781b3295fb3f03aeb6e

R=adg
CC=golang-dev
https://codereview.appspot.com/7303090
log/syslog: fix channel race in test.

R=golang-dev, minux.ma, iant, bradfitz, dave
CC=golang-dev
https://codereview.appspot.com/7314057

Committer: Dave Cheney <dave@cheney.net>