net/http: fix inserting of implicit redirects in serve mux

In serve mux, if pattern contains a host name, pass only the path to
the redirect handler.

Add tests for serve mux redirections.

R=rsc
CC=bradfitz, gobot, golang-dev
http://codereview.appspot.com/6329045

Committer: Russ Cox <rsc@golang.org>
net/http: add (*ServeMux).Handler method

The Handler method makes the ServeMux dispatch logic
available to wrappers that enforce additional constraints
on requests.

R=golang-dev, bradfitz, dsymonds
CC=golang-dev
http://codereview.appspot.com/6450165
cmd/gc: mark broken type declarations as broken.

This fixes a spurious 'invalid recursive type' error, and stops the compiler from emitting errors on uses of the invalid type.

Fixes issue 3766.

R=golang-dev, dave, minux.ma, rsc
CC=golang-dev
http://codereview.appspot.com/6443100

Committer: Russ Cox <rsc@golang.org>
src: Add support for 64-bit version of Plan 9

This set of changes extends the Plan 9 support
to include the AMD64 architecture and should
work on all versions of Plan 9.

R=golang-dev, rminnich, noah.evans, rsc, minux.ma, npe
CC=akskuma, golang-dev, jfflore, noah.evans
http://codereview.appspot.com/6479052

Committer: Russ Cox <rsc@golang.org>
runtime/pprof: restore articles in type doc comments

Reverts part of CL 6460082.

If a doc comment describes a type by explaining the
meaning of one instance of the type, a leading article
is fine and makes the text less awkward.

Compare:
// A dog is a kind of animal.
// Dog is a kind of animal.

R=golang-dev, dsymonds, dvyukov, r
CC=golang-dev
http://codereview.appspot.com/6494066
test: restore nigel's bug451 as bug452.

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6497066
net/rpc/jsonrpc: handles missing "params" in jsonrpc.

A crash happens in the first request in a connection
if "params" field is missing because c.req.Params is Nil.

Fixes issue 3848.

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

Committer: Russ Cox <rsc@golang.org>
cmd/gc: fix escape analysis bug with variable capture in loops.

Fixes issue 3975.

R=rsc, lvd
CC=golang-dev, remy
http://codereview.appspot.com/6475061
runtime: add vdso support for linux/amd64. Fixes issue 1933.

R=iant, imkrasin, krasin, iant, minux.ma, rsc, nigeltao, r, fullung
CC=golang-dev
http://codereview.appspot.com/6454046

Committer: Russ Cox <rsc@golang.org>
A+C: Patrick Higgins, Shawn Smith (individual CLA)

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6492067
encoding/xml: parse comments in DOCTYPE

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

Committer: Russ Cox <rsc@golang.org>
net/http: added ParseTime function.

Parses a time header value into a time.Time according to rfc2616 sec 3.3.

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

Committer: Russ Cox <rsc@golang.org>
A+C: 0/2 on spelling email addresses correctly

TBR=r
CC=golang-dev
http://codereview.appspot.com/6497067
syscall: add PtraceSyscall(pid int, signal int)

Fixes issue 3525.

PTRACE_SYSCALL behaves like PTRACE_CONT and can deliver
a signal to the process. Ideally PtraceSingleStep should
support the signal argument, but its interface is frozen
by Go1.

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