cmd/godoc: move note argument to godoc.go

Fixes the App Engine version of godoc. The other fix is to duplicate
this code inside appinit.go. I think initHandlers is the right place
to put the strings.Split call, as the notesToShow var is used by
docServer, which is what initHandlers sets up.

R=dsymonds
CC=golang-dev
https://codereview.appspot.com/7434044
image/png: always set up palette during DecodeConfig

The old code would decode the palette only for 8-bit
images during a DecodeConfig.
This CL keeps the behavior for 8-bit images and sets
up the decoded palette also for 1, 2 and 4-bit images.

Fixes issue 4279.

R=golang-dev, nigeltao
CC=golang-dev
https://codereview.appspot.com/7421048

Committer: Nigel Tao <nigeltao@golang.org>
container/heap: fix int overflow bug

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

Committer: Russ Cox <rsc@golang.org>
misc/dashboard/builder: make -fail mode faster

Don't check out the repository if we're just going to fail everything.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7453048
runtime: add link to design doc for new scheduler

R=golang-dev, remyoudompheng, bradfitz
CC=golang-dev
https://codereview.appspot.com/7419049
cmd/gc: unbreak exporting of composite literals.

Fixes issue 4932.

R=golang-dev, dave, rsc
CC=golang-dev
https://codereview.appspot.com/7437043
test/bench/garbage: fix parser benchmark

R=golang-dev, dvyukov
CC=golang-dev
https://codereview.appspot.com/7435053
cmd/gc: simplify and fix defaultlit.

Fixes issue 4882.
Fixes issue 4936.
Fixes issue 4937.

R=golang-dev, dave, daniel.morsing, rsc
CC=golang-dev
https://codereview.appspot.com/7432044
runtime: add garbage collector statistics

If the constant CollectStats is non-zero and GOGCTRACE=1
the garbage collector will print basic statistics about executed
GC instructions.

R=golang-dev, dvyukov
CC=golang-dev, rsc
https://codereview.appspot.com/7413049
cmd/gc: disallow selectors to the blank identifier

Fixes issue 4941.

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7415051
net/http/cgi: maybe improve darwin test reliability

Use a 17 MB payload instead of a 1 MB payload, since
OS X can apparently buffer up to 16 MB in its pipes.

Fixes issue 4958 maybe

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7453049
cmd/cgo: use explicit flag to emit dynamic linker path

Using -import_runtime_cgo would have worked great except
that it doesn't get passed to the second invocation of cgo,
and that's the one that writes the relevant file.

Fixes ARM build on systems with a different dynamic linker
than the one 5l assumes (like Gentoo).

R=golang-dev, minux.ma
CC=golang-dev
https://codereview.appspot.com/7432048
net: make some tests less flaky

Fixes issue 4969

R=golang-dev, minux.ma
CC=golang-dev
https://codereview.appspot.com/7456049
test/bench/go1: use raw string instead of string addition
to reduce compile time memory/stack usage.
Update issue 4970
$ go test -c ../test/bench/go1
before:
0.36user 0.07system 0:00.44elapsed 100%CPU
(0avgtext+0avgdata 540720maxresident)k
0inputs+19840outputs (0major+56451minor)pagefaults 0swaps
after:
0.33user 0.05system 0:00.39elapsed 100%CPU
(0avgtext+0avgdata 289936maxresident)k
0inputs+19864outputs (0major+29615minor)pagefaults 0swaps

And stack usage is reduced to below 1MiB.

R=golang-dev, r, dave
CC=golang-dev
https://codereview.appspot.com/7436050