runtime: fix network timers related crash
Fixes issue 6103.

R=golang-dev, alex.brainman
CC=golang-dev
https://codereview.appspot.com/12686045
syscall: disable cpu profiling around fork
Fixes issue 5517.
Fixes issue 5659.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12183044
runtime: eliminate excessive notewakeup calls in timers
If the timer goroutine is wakeup by timeout,
other goroutines will still notewakeup because sleeping is still set.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/12763043
sync: faster Cond
The new version does not require any memory allocations and is 30-50% faster.
Also detect and painc if Cond is copied after first.

benchmark            old ns/op    new ns/op    delta
BenchmarkCond1             317          195  -38.49%
BenchmarkCond1-2           875          607  -30.63%
BenchmarkCond1-4          1116          548  -50.90%
BenchmarkCond1-8          1013          613  -39.49%
BenchmarkCond1-16          983          450  -54.22%
BenchmarkCond2             559          352  -37.03%
BenchmarkCond2-2          1916         1378  -28.08%
BenchmarkCond2-4          1518         1322  -12.91%
BenchmarkCond2-8          2313         1291  -44.19%
BenchmarkCond2-16         1885         1078  -42.81%
BenchmarkCond4            1070          614  -42.62%
BenchmarkCond4-2          4899         3047  -37.80%
BenchmarkCond4-4          3813         3006  -21.16%
BenchmarkCond4-8          3605         3045  -15.53%
BenchmarkCond4-16         4148         2637  -36.43%
BenchmarkCond8            2086         1264  -39.41%
BenchmarkCond8-2          9961         6736  -32.38%
BenchmarkCond8-4          8135         7689   -5.48%
BenchmarkCond8-8          9623         7517  -21.89%
BenchmarkCond8-16        11661         8093  -30.60%

R=sougou, rsc, bradfitz, r
CC=golang-dev
https://codereview.appspot.com/11573043
net: make deadline helpers join to netFD as its methods

Just for readability reasons; to prevent overlooking deadline stuff
across over platforms.

R=golang-dev, dvyukov
CC=golang-dev
https://codereview.appspot.com/8656044
sync/atomic: add Swap functions
Fixes issue 5722.

R=golang-dev, khr, cshapiro, rsc, r
CC=golang-dev
https://codereview.appspot.com/12670045
doc: update go1.2.txt

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/12851043
runtime: fix handling of network deadlines
Ensure that deadlines affect already issued IO.

R=golang-dev, mikioh.mikioh, bradfitz
CC=golang-dev
https://codereview.appspot.com/12847043
runtime/pprof: fix test

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

Committer: Russ Cox <rsc@golang.org>
test/run: process build tags like go/build

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

Committer: Russ Cox <rsc@golang.org>
runtime/pprof: test netbsd and openbsd again

Maybe these will work now.

R=golang-dev, dvyukov, bradfitz
CC=golang-dev
https://codereview.appspot.com/12787044
cmd/cgo: Add support for C function pointers

* Add a new kind of Name, "fpvar" which stands for function pointer variable
* When walking the AST, find functions used as expressions and create a new Name object for them
* Track functions which are only used in expr contexts, and avoid generating bridge code for them

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

Committer: Russ Cox <rsc@golang.org>
net: implement DNS TCP fallback query if UDP response is truncated

Fixes issue 5686.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
sync/atomic: trigger paging fault early on linux/arm
so that we don't need to traceback through __kuser_cmpxchg

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12869043
sync/atomic: add Swap to nil deref test

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12870043
io: prevent write to PipeWriter after Close

Return an ErrClosedPipe rather than allowing the write to proceed.

Fixes issue 5330.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>