runtime: poor man's heap type info checker
It's not trivial to make a comprehensive check
due to inferior pointers, reflect, gob, etc.
But this is essentially what I've used to debug
the GC issues.
Update issue 5193.

R=golang-dev, iant, 0xe2.0x9a.0x9b, r
CC=golang-dev
https://codereview.appspot.com/8455043
sync, sync/atomic: do not corrupt race detector after a nil dereference.

The race detector uses a global lock to analyze atomic
operations. A panic in the middle of the code leaves the
lock acquired.

Similarly, the sync package may leave the race detectro
inconsistent when methods are called on nil pointers.

R=golang-dev, r, minux.ma, dvyukov, rsc, adg
CC=golang-dev
https://codereview.appspot.com/7981043
cmd/cgo: record CGO_LDFLAGS env var in _cgo_flags

cgo stores cgo LDFLAGS in _cgo_flags and _cgo_defun.c.
The _cgo_defun.c records the flags via
"#pragma cgo_ldflag <flag>", which external linking
relies upon for passing libraries (and search paths)
to the host linker.

The go command will allow LDFLAGS for cgo to be passed
through the environment (CGO_LDFLAGS); cgo ignores
this environment variable, and so its value doesn't
make it into the above mentioned files. This CL changes
cgo to record CGO_LDFLAGS also.

Fixes issue 5205.

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

Committer: Shenghou Ma <minux.ma@gmail.com>
net: add test for runtime.PollDesc leak

See 8318044

R=bradfitz
CC=golang-dev
https://codereview.appspot.com/8547043
runtime: fix integer overflow in hashmap
The test is problematic, because it requires 8GB+ of RAM.
Fixes issue 5239.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/8550043
misc/dashboard/builder: add -race builder support

If the build key contains -race, the builder will invoke to the race.{bat,bash} build command. This allows {darwin,linux,windows}-amd64 builders to do race and non race builds in sequence.

R=adg, dvyukov, fullung
CC=golang-dev
https://codereview.appspot.com/8266046
run.bat: make windows runtime test timeout same as other os

R=golang-dev, dave
CC=golang-dev
https://codereview.appspot.com/8551043
A+C: Nicholas Presta (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/8556044
net: fix possible runtime.PollDesc leak when connect or listen fails

Makes it possible to return the spent runtime.PollDesc to
runtime.pollcache descriptor pool when netFD.connect or
syscall.Listen fails.

Fixes issue 5219.

R=dvyukov, dave, bradfitz, adg
CC=golang-dev
https://codereview.appspot.com/8318044
Merge branch 'master' into gitfix