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
misc/emacs: Add tab completion for godoc command, completing from known installed packages

R=golang-dev, adonovan, bradfitz, cw, patrick.allen.higgins, sameer, ugorji
CC=golang-dev
https://codereview.appspot.com/7373051

Committer: Alan Donovan <adonovan@google.com>
spec: cyclic imports are illegal

Fixes issue 4976.

R=r
CC=golang-dev
https://codereview.appspot.com/7421050
spec: terminating statements for functions

The only functional change is the new section
on terminating statements.

There is a minor syntax rewrite (not change)
of function declarations to make it easier to
refer to the notion of a function from all places
where it is used (function decls, method decls,
and function literals).

Includes some minor fixes/additions of missing links.

Based closely on Russ' proposal.

Fixes issue 65.

R=rsc, r, iant, ken, bradfitz
CC=golang-dev
https://codereview.appspot.com/7415050
cmd/gc: implement new return requirements

Fixes issue 65.

R=ken2
CC=golang-dev
https://codereview.appspot.com/7441049
go/types: "missing return" check

Implementation closely based on Russ' CL 7440047.

Future work: The error messages could be better
(e.g., instead of "missing return" it might say
"missing return (no default in switch)", etc.).

R=adonovan, rsc
CC=golang-dev
https://codereview.appspot.com/7437049
vet: clean up taglit error print when typechecking fails.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/7416050
text/template/parse: remove self-assignment.

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/7431054
runtime: restrict stack root scan to locals and arguments

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