image/jpeg: ignore an incorrect but harmless trailing restart marker.

Fixes issue 4084.

R=r
CC=golang-dev
http://codereview.appspot.com/6526043
cmd/gc: fix double evaluation in interface comparison

During interface compare, the operands will be evaluated twice. The operands might include function calls for conversion, so make them cheap before comparing them.

R=rsc
CC=golang-dev
http://codereview.appspot.com/6498133
doc/effective_go: Closed some tags; removed extra spaces.

R=golang-dev, adg
CC=golang-dev
http://codereview.appspot.com/6488122

Committer: Andrew Gerrand <adg@golang.org>
undo CL 6395055 / 2518eee18c4f

Broke TCP selfConnect

««« original CL description
net: avoid nil pointer dereference when RemoteAddr.String method chain is called

Fixes issue 3721.

R=dave, rsc
CC=golang-dev
http://codereview.appspot.com/6395055
»»»

R=rsc
CC=golang-dev
http://codereview.appspot.com/6533043
runtime: refactor goroutine blocking
The change is a preparation for the new scheduler.
It introduces runtime.park() function,
that will atomically unlock the mutex and park the goroutine.
It will allow to remove the racy readyonstop flag
that is difficult to implement w/o the global scheduler mutex.

R=rsc, remyoudompheng, dave
CC=golang-dev
http://codereview.appspot.com/6501077
A+C: Add Anthony Eufemio (Individual CLA)

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6524045
builtin: Changed documentation for rune type.
Fixes issue 4093.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
reflect: add Select

R=r, iant, rogpeppe, bradfitz
CC=golang-dev
http://codereview.appspot.com/6498078
encoding/json: do not read beyond array literal

Fixes issue 3942.

R=golang-dev, mike.rosset, r
CC=golang-dev
http://codereview.appspot.com/6524043
reflect: use []unsafe.Pointer instead of []*int

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

Committer: Russ Cox <rsc@golang.org>
spec: clarify expression statements

Function and method calls are valid expression statements,
but calling certain built-in functions is not permitted.
Enumerate the built-ins.

Also: unsafe.Offsetof permits parenthesized selectors as
arguments.

This is simply documenting existing compiler behavior
(both gc and gccgo agree).

R=r, rsc, iant, ken
CC=golang-dev
http://codereview.appspot.com/6498138
runtime: hide the semaphore table from garbage collector

R=rsc, dvyukov, dave
CC=golang-dev
http://codereview.appspot.com/6528043

Committer: Russ Cox <rsc@golang.org>
bytes, strings: add Fields benchmarks

The performance changes will be a few different CLs.
Start with benchmarks as a baseline.

R=golang-dev, r
CC=golang-dev
http://codereview.appspot.com/6537043
race: cmd/cgo changes
This is a part of a bigger change that adds data race detection feature:
http://codereview.appspot.com/6456044
This change breaks circular dependency between runtime/race and syscall packages.

R=rsc
CC=golang-dev
http://codereview.appspot.com/6498079
race: build system changes
This is the first part of a bigger change that adds data race detection feature:
http://codereview.appspot.com/6456044
Adds -race flag to go command.
API change:
+pkg go/build, type Context struct, InstallTag string

R=rsc
CC=golang-dev
http://codereview.appspot.com/6488075
cmd/api: allow extension of interfaces with unexported methods

Fixes issue 4061.

R=golang-dev, bradfitz
CC=golang-dev
http://codereview.appspot.com/6525047
race: linker changes
This is the second part of a bigger change that adds data race detection feature:
http://codereview.appspot.com/6456044
This change makes the linker emit dependency on runtime/race package when supplied with -b flag.

R=rsc, minux.ma
CC=golang-dev
http://codereview.appspot.com/6488074
go/doc: synthesize "package main" for examples

R=gri
CC=golang-dev
http://codereview.appspot.com/6525046
vet: add range variable misuse detection

R=fullung, r, remyoudompheng, minux.ma, gri, rsc
CC=golang-dev
http://codereview.appspot.com/6494075
cmd/api: fix signatures like func(x, y, z int)

Fixes writing of function parameter, result lists which
consist of multiple named or unnamed items with same type.

Fixes issue 4011.

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