runtime: fix traceback in cgo programs
Fixes issue 6061.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12609043
build: change how cmd/api is run in run.bash and run.bat

In prep for Robert's forthcoming cmd/api rewrite which
depends on the go.tools subrepo, we'll need to be more
careful about how and when we run cmd/api.

Rather than implement this policy in both run.bash and
run.bat, this change moves the policy and mechanism into
cmd/api/run.go, which will then evolve.

The plan is in a TODO in run.go.

R=golang-dev, gri
CC=golang-dev
https://codereview.appspot.com/12482044
runtime: Record jmpdefer's argument size.
Fixes bug 6055.

R=golang-dev, bradfitz, dvyukov, khr
CC=golang-dev
https://codereview.appspot.com/12536045
flag: export commandLine, the previously internal default FlagSet
s/commandLine/CommandLine/g

Fixes issue 4209.

R=golang-dev, dsymonds, bradfitz
CC=golang-dev
https://codereview.appspot.com/12587043
doc/go1.2.txt: flag now exports CommandLine

R=golang-dev, dsymonds
CC=golang-dev
https://codereview.appspot.com/12642043
container/list: fix typo in comment
Fixes issue 6058.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12643043
regexp/syntax: make it clearer that \b and \B are ASCII-defined
Fixes issue 5896.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12645043
net: use SetFileCompletionNotificationModes on windows if available
This allows to skip GetQueuedCompletionStatus if an IO operation completes synchronously.
benchmark                    old ns/op    new ns/op    delta
BenchmarkTCP4Persistent          27669        25863   -6.53%
BenchmarkTCP4Persistent-2        18173        15908  -12.46%
BenchmarkTCP4Persistent-4        10390         9766   -6.01%

R=golang-dev, mikioh.mikioh, alex.brainman
CC=golang-dev
https://codereview.appspot.com/12409044
runtime: use GetQueuedCompletionStatusEx on windows if available
GetQueuedCompletionStatusEx allows to dequeue a batch of completion
notifications, which is more efficient than dequeueing one by one.

benchmark                           old ns/op    new ns/op    delta
BenchmarkClientServerParallel4         100605        90945   -9.60%
BenchmarkClientServerParallel4-2        90225        74504  -17.42%

R=golang-dev, alex.brainman
CC=golang-dev
https://codereview.appspot.com/12436044
doc/go1.2.txt: document previously committed features

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
net/mail: AddressList fails to parse addresses with a dot

Fixes issue 4938.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
A+C: Dmitriy Shelenin (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/12671043
A+C: add googlemail aliases for deemok

R=golang-dev
CC=golang-dev
https://codereview.appspot.com/12634044
encoding/xml: allow attributes stored in pointers to be marshaled.

Fixes issue 5334.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
os: make Readdir work as documented

Readdir's result should never contain a nil.

Fixes issue 5960.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
cmd/gc: move large stack variables to heap

Individual variables bigger than 10 MB are now
moved to the heap, as if they had escaped on
their own.

This avoids ridiculous stacks for programs that
do things like
        x := [1<<30]byte{}
        ... use x ...

If 10 MB is too small, we can raise the limit.

Fixes issue 6077.

R=ken2
CC=golang-dev
https://codereview.appspot.com/12650045
runtime: print scavenger details when forced with debug.FreeOSMemory
Fixes issue 5900.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/12669043
misc/notepadplus: fix functionList regex issue

The receiver name is optional. when Method's receiver name messing,
the functionList regex can't match the Method,
e.g. `func (*T) ProtoMessage() {}`.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
cmd/api: update run.go to fetch from go.tools when needed

R=gri
CC=golang-dev
https://codereview.appspot.com/12639043
os: fix windows and plan9 builds

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