test/fixedbugs/bug295.go: fix test in anticipation of future gc fix

See also issue 6428.

R=r, rsc
CC=golang-dev
https://codereview.appspot.com/13794043
runtime: avoid allocation of internal panic values

If a fault happens in malloc, inevitably the next thing that happens
is a deadlock trying to allocate the panic value that says the fault
happened. Stop doing that, two ways.

First, reject panic in malloc just as we reject panic in garbage collection.

Second, runtime.panicstring was using an error implementation
backed by a Go string, so the interface held an allocated *string.
Since the actual errors are C strings, define a new error
implementation backed by a C char*, which needs no indirection
and therefore no allocation.

This second fix will avoid allocation for errors like nil panic derefs
or division by zero, so it is worth doing even though the first fix
should take care of faults during malloc.

Update issue 6419

R=golang-dev, dvyukov, dave
CC=golang-dev
https://codereview.appspot.com/13774043
cmd/gc: print expression in 'duplicate case in switch' error

The line number alone does not help when the line is
case '~', '*', '(', ')', '[', ']', '{', '}', '?', ':', ';', ',', '*', '%', '^', '!', '=', '<', '>', '+', '-', '&', '|':

R=ken2
CC=golang-dev
https://codereview.appspot.com/13431046
cmd/gc: fix imported and not used error for import .

Fixes issues 6420.

R=ken2
CC=golang-dev
https://codereview.appspot.com/13703044
test/run: print command line for running an individual test

Fixes issue 5087.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13812043
cmd/yacc: report correct line for 'default action causes potential type clash'

R=golang-dev, iant
CC=golang-dev
https://codereview.appspot.com/13588044
test/chan: avoid wrap-around in memstats comparison

The select2.go test assumed that the memory allocated between
its two samplings of runtime.ReadMemStats is strictly
increasing.  To avoid failing the tests when this is not true,
a greater-than check is introduced before computing the
difference in allocated memory.

R=golang-dev, r, cshapiro
CC=golang-dev
https://codereview.appspot.com/13701046
doc/go1.2.html: pre-emption; cgo and C++

These were bullet points that I had neglected to flesh out.

R=golang-dev, dvyukov
CC=golang-dev
https://codereview.appspot.com/13816043
doc/go1.2.html: Go 1.2, not Go1.2

R=r
CC=golang-dev
https://codereview.appspot.com/13735044

Committer: Rob Pike <r@golang.org>
cmd/api: always do API check if hg is available

Fixes Issue 6124

R=golang-dev, minux.ma
CC=golang-dev
https://codereview.appspot.com/13500046
runtime/pprof: run TestGoroutineSwitch for longer

Short test now takes about 0.5 second here.

Fixes issue 6417.

The failure was also seen on our builders.

R=golang-dev, minux.ma, r
CC=golang-dev
https://codereview.appspot.com/13321048
runtime/race: update runtime to r191161.
Fixes issue 6305.

R=golang-dev, dave, alex.brainman, r
CC=golang-dev
https://codereview.appspot.com/13359046
A+C: Nathan John Youngman (individual CLA)

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/13819045
misc/notepadplus: fix some number syntax highlight issue

notepadplus can only support some normal golang's hex and imaginary numbers.
it can't detect some special number, eg. 1./1.e/1.i/1+0.1i (omit "0" in ".0").

R=golang-dev, gvdschoot
CC=ajstarks, golang-dev
https://codereview.appspot.com/13401047

Committer: Andrew Gerrand <adg@golang.org>
net/http: send correct time in Date header.

Date header indicated that it contained GMT time,
however it actually sent local time. Fixed by
converting time to UTC.

Also fixes incorrect comment in appendTime().

Regression since CL 9432046.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
doc/go1.2.html: fix 3-index slice example
A number was wrong; adjust as suggested to make things clearer.
Fixes issue 6452

R=golang-dev, minux.ma
CC=golang-dev
https://codereview.appspot.com/13422046
doc: mention os/exec StdinPipe change in Go 1.2 doc

Fixes issue 6439.

R=r, minux.ma
CC=golang-dev
https://codereview.appspot.com/13478045
doc/go1.2: document that godoc and vet will always be installed to their old locations (not $GOPATH/bin).

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13830043
fmt: one bad index shouldn't spoil them all

In an indexed verb such as %[3]d, if the index is out of range, don't
skip processing the rest of the verbs. The bug was that the bad
index set a bit for the whole format instead of just the verb.

Ok for 1.2 because this is a bug in a 1.2 feature.

Fixes issue 6434

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/13632058
go/build: add go1.2 build tag

Fixes issue 6449.

R=golang-dev, adg
CC=golang-dev
https://codereview.appspot.com/13829044

Committer: Andrew Gerrand <adg@golang.org>