math/big: fix comment

The variable is named b not bit.

R=golang-dev, agl
CC=golang-dev
https://codereview.appspot.com/7699043
A+C: Jonathan Rudenberg (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/7700043
net/http: add additional status codes defined in RFC 6585

428 Precondition Required
429 Too Many Requests
431 Request Header Fields Too Large
511 Network Authentication Required

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
spec: result type of a comparison is always untyped bool

For details see the cited issue.

Fixes issue 4793.

R=rsc, r, iant, ken
CC=golang-dev
https://codereview.appspot.com/7524044
spec: typed indices must be of integer type

The same rules apply for make arguments.

R=r, rsc, iant, ken
CC=golang-dev
https://codereview.appspot.com/7656043
sync/atomic: make unaligned 64-bit atomics crash on 386

R=golang-dev, bradfitz, dvyukov
CC=golang-dev
https://codereview.appspot.com/7702043
lib/time: update link in README; draft now an RFC

R=golang-dev, minux.ma, bradfitz
CC=golang-dev
https://codereview.appspot.com/7704043
net: allow concurrent UNIX socket tests if TMPDIR is unique.

Only clever enough to allow concurrent stress testing.

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

Committer: Russ Cox <rsc@golang.org>
net/http/httputil: remove hop-by-hop headers in ReverseProxy

Fixes issue 2735

R=golang-dev, rsc
CC=golang-dev
https://codereview.appspot.com/7470048
api: update next.txt

Ton of FreeBSD syscall constants.

R=golang-dev, minux.ma
CC=golang-dev
https://codereview.appspot.com/7476046
net/http: add a test verifying header case preservation

Fixes issue 5022

R=golang-dev, minux.ma
CC=golang-dev
https://codereview.appspot.com/7712043
os/signal: deflake test
Fixes issue 4987.

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/7713043
A+C: Rodrigo Moraes de Oliveira (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/7526045
net/url: better path resolution

This includes a simplified resolvePath function and tests for all normal and abnormal path resolution examples described in RFC 3986, sections 5.4.1 and 5.4.2 [1]. Some of those examples failed before (see http://play.golang.org/p/F0ApSaXniv).

Also, parsing a reference "//foo" now works as expected. It was treated as an absolute path with very weird results (see http://play.golang.org/p/089b-_xoNe).

During path resolution, all dot segments are removed as described by the RFC.

A few existing tests had to be changed because they expected the wrong output.

Fixes issue 4700.

Fixes issue 4706.

[1] http://tools.ietf.org/html/rfc3986#section-5.4.1

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

Committer: Russ Cox <rsc@golang.org>
debug/macho: add doc comment for FormatError

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/7624044
net/http/httputil: fix string in test failure message

R=golang-dev, daniel.morsing
CC=golang-dev
https://codereview.appspot.com/7722043
cmd/gc: enable inlining in generated method wrappers.

Method calls on interfaces with large stored values
will call the pointer receiver method which may be
a wrapper over a method with value receiver.

This is particularly inefficient for very small bodies.
Inlining the wrapped method body saves a potentially expensive
function call.

benchmark                old ns/op    new ns/op    delta
BenchmarkSortString1K       802295       641387  -20.06%
BenchmarkSortInt1K          359914       238234  -33.81%
BenchmarkSortInt64K       35764226     22803078  -36.24%

Fixes issue 4707.

R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://codereview.appspot.com/7214044
lib9, cmd/dist, cmd/ld: Plan 9: fix build

lib9: fix runcmd, removeall, and tempdir functions

cmd/dist: Include run_plan9.c and tempdir_plan9.c
        from lib9 for build, and in general consider
        file names containing "plan9" for building.

cmd/ld: provide function args for the new functions
        from lib9.

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

Committer: Russ Cox <rsc@golang.org>
A+C: Chris Howey (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/7544044
go/types: update operand types early

For expressions where the result type is independent
of the argument types (comparisons, conversions, rhs
of shifts), set the final expression types for those
subtrees early.

This fixes several bugs where incorrect lhs shift
operands where used (say in a comparison), but were
not reported.

Together with the changes listed below this CL fixes
many type-checker bugs.

Also:
- better documented updateExprType
- added larger comment to expr.go explaining
  the basic expression checking algorithm
- use latest definition for indices and make
  arguments; use the same code to check both
- use the same mechanism for cycle detection
  in constant expressions as for variables
  (new field Constant.visited)
- more tests for complex and make builtins
- many more and systematic tests for shifts;
  moved them into separate testfile
- in the testing code, don't compare the
  expected error pattern against itself
  (the actual message was always ignored...)
- fix affected error patterns in the test files
- various cleanups along the way

R=adonovan
CC=golang-dev
https://codereview.appspot.com/7432051