exp/locale/collate: Add maketables tool and generated tables.
Also set maxContractLen automatically.
Note that the table size is much bigger than it needs to be.
Optimization is best done, though, when the language specific
tables are added.

R=r
CC=golang-dev
http://codereview.appspot.com/6167044
syscall: repair netbsd z* files

Manually repair/update z* files for netbsd - this allows Go to
compile again on 386.

R=golang-dev, rsc, minux.ma
CC=golang-dev
http://codereview.appspot.com/6194064
runtime: fix netbsd sigaction struct

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6198063
runtime: fix syscalls for netbsd

Use correct syscall numbers and arguments for NetBSD.
Provide a trampoline for signal returns (using signal API 3).

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6209048
runtime: fix complex division benchmarks
we can't add the division result to n during iteration, because it might
turn n into NaN or Inf.

R=golang-dev, rsc, iant, iant
CC=golang-dev
http://codereview.appspot.com/6197045
runtime: add parallel for algorithm
This is factored out part of:
http://codereview.appspot.com/5279048/
(parallel GC)

R=bsiegert, mpimenov, rsc, minux.ma, r
CC=golang-dev
http://codereview.appspot.com/5986054
runtime: revert MaxGcproc from 16 to 4
The change accidentally come in with this revision:
https://code.google.com/p/go/source/detail?spec=svn345cbca96c5550f2e89bc727703301933802923c&r=14c38c23c819a17021b1808cf4a34ef3a1a17db5

R=golang-dev
CC=golang-dev
http://codereview.appspot.com/6195073
A+C: Jan Ziak (individual CLA)

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6120047
misc/dashboard/codereview: set In-Reply-To header to properly thread mail.

R=adg
CC=golang-dev
http://codereview.appspot.com/6208051
sync: use atomic.Store in Once.Do
No perf/semantic changes, merely improves code health.
There were several questions as to why Once.Do uses
atomic.CompareAndSwap to do a store.

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6208057
A+C: add Michael Gehring (individual CLA)

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6188076
crypto/tls: fix decoding of certLen in certificateMsg.unmarshal

certLen was decoded incorrectly if length > 2^16-1.

R=golang-dev, agl
CC=golang-dev
http://codereview.appspot.com/6197077

Committer: Adam Langley <agl@golang.org>
syscall: regenerate z* files for netbsd

Fix mkerrors.sh so that it works on NetBSD.

Remove directory mode bits from types - this already appears in errors.

Regenerate the z* files now that cgo is working.

R=golang-dev, m4dh4tt3r, r
CC=golang-dev
http://codereview.appspot.com/6201077

Committer: Rob Pike <r@golang.org>
regexp/syntax: replace internal error on unexpected ) w/ ErrUnexpectedParen

Unbalanced extra right parenthesis produced an internal error instead of
a more descriptive one.

Fixes issue 3406.

R=r, rsc
CC=golang-dev
http://codereview.appspot.com/6201063

Committer: Rob Pike <r@golang.org>
misc/dashboard/codereview: add sameer.

R=r
CC=golang-dev
http://codereview.appspot.com/6203076
mime/multipart: fix handling of empty parts without CRLF before next part

Empty parts can be either of the form:

a) "--separator\r\n", header (w/ trailing 2xCRLF), \r\n "--separator"...
or
b) "--separator\r\n", header (w/ trailing 2xCRLF), "--separator"...

We never handled case b).  In fact the RFC seems kinda vague about
it, but browsers seem to do a), and App Engine's synthetic POST
bodies after blob uploads is of form b).

So handle them both, and add a bunch of tests.

(I can't promise these are the last fixes to multipart, especially
considering its history, but I'm growing increasingly confident at
least, and I've never submitted a multipart CL with known bugs
outstanding, including this time.)

R=golang-dev, adg
CC=golang-dev
http://codereview.appspot.com/6212046
runtime: fix TLS handling for netbsd

Set the TLS base using the _lwp_setprivate() syscall, instead of via
sysarch(). NetBSD tracks the pointer passed to _lwp_setprivate() and
restores this value when restoring mcontext. If sysarch() is used
directly, restoring an mcontext trashes the FS/GS value, resulting
in a segfault when we next try to access the TLS.

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6206062
os/syscall: correct netbsd types/names

Fix types/names so that these functions work with the generated
syscall/z* files.

R=golang-dev, m4dh4tt3r
CC=golang-dev
http://codereview.appspot.com/6201078
runtime: refactor helpgc functionality in preparation for parallel GC
Parallel GC needs to know in advance how many helper threads will be there.
Hopefully it's the last patch before I can tackle parallel sweep phase.
The benchmarks are unaffected.

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6200064
runtime: fix counting of free objects

R=golang-dev, rsc
CC=golang-dev
http://codereview.appspot.com/6206056

Committer: Russ Cox <rsc@golang.org>