misc/notepadplus: add interface to function list and use clang color in comments

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
net: Fix inaccurate docs for AcceptTCP and AcceptUnix.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>
crypto/rand: make Read use io.ReadFull

Fixes Issue 6084

R=golang-dev, rsc, dave
CC=golang-dev
https://codereview.appspot.com/13523044
reflect: unexport BUCKETSIZE, MAXKEYSIZE, MAXVALSIZE

But keep their case for ease of searching.

They were added recently. We don't want them part of go1.2's API.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13569044
cmd/api: include constant values

Update Issue 5935

R=golang-dev, rsc, iant, dave
CC=golang-dev
https://codereview.appspot.com/13261050
api: update go1.1, except and next.txt with constant values

O_SYNC changes only on linux-arm (and linux-arm-cgo), but
changes to match O_SYNC on linux-{386,amd64} and what Linux
upstream now uses.  See discussion and links on
https://codereview.appspot.com/13261050/

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/13575045
runtime: handle timer overflow in tsleep

Make sure we never pass a timer into timerproc with
a negative duration since it will cause other timers
to never expire.

Fixes issue 5321.

R=golang-dev, minux.ma, remyoudompheng, mikioh.mikioh, r, bradfitz, rsc, dvyukov
CC=golang-dev
https://codereview.appspot.com/9035047

Committer: Russ Cox <rsc@golang.org>
cmd/gc: remove "send used as value" hint

This message was helpful for pre-Go 1 users updating to Go 1.
That time is past. Now the message is confusing because it
depends on knowing what pre-Go 1 looked like.

Update issue 4697.

R=golang-dev, bradfitz
CC=golang-dev
https://codereview.appspot.com/13335051
codereview: update use of promptchoice for Mercurial 2.7

Fixes issue 6186.

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

Committer: Russ Cox <rsc@golang.org>
misc/emacs: use built-in buffer-base-buffer instead of own variable

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

Committer: Alan Donovan <adonovan@google.com>
test: fix build (update for new error message)

R=golang-dev
CC=golang-dev
https://codereview.appspot.com/13521044
cmd/gofmt: sort more, remove some duplicate imports

* Sort imports by import path, then import name, then comment. Currently, gofmt sorts only by import path.
* If two imports have the same import path and import name, and one of them has no comment, remove the import with no comment. (See the discussion at issue 4414.)

Based on @rsc's https://codereview.appspot.com/7231070/

Fixes issue 4414.

R=gri, rsc
CC=golang-dev
https://codereview.appspot.com/12837044

Committer: Russ Cox <rsc@golang.org>
cmd/5g, cmd/6g, cmd/8g: simplify for loop in bitmap generation

Lucio De Re reports that the more complex
loop miscompiles on Plan 9.

R=ken2
CC=golang-dev
https://codereview.appspot.com/13602043
sort: fix Example_sortMultiKeys

Old example referenced global var from multiSorter.Sort and ignored it's argument.
Changed one of example calls to actually pass slice to sort.

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

Committer: Russ Cox <rsc@golang.org>
archive/tar: fix a case where USTAR-split is not working correctly.

For some long filenames the USTAR-split code does not work
correctly. It is wrongly assumed that the path would not be too long,
but it is.

The user visible result was that a filename was split, but it still
caused an error.

The cause was a wrongly calculated nlen. In addition I noticed that
at this place it is also seems necessary to check if the prefix will
fit in the 155 chars available for the prefix.

R=dsymonds, rsc
CC=golang-dev
https://codereview.appspot.com/13300046

Committer: Russ Cox <rsc@golang.org>
cmd/gc: add missing typecheck for walk-generated constants.

Fixes issue 6131.

R=golang-dev, daniel.morsing, rsc
CC=golang-dev
https://codereview.appspot.com/12800045

Committer: Russ Cox <rsc@golang.org>
cmd/go: rename go.exe if cannot delete it during clean

Fixes issue 6179

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

Committer: Russ Cox <rsc@golang.org>
runtime: account for all sys memory in MemStats
Currently lots of sys allocations are not accounted in any of XxxSys,
including GC bitmap, spans table, GC roots blocks, GC finalizer blocks,
iface table, netpoll descriptors and more. Up to ~20% can unaccounted.
This change introduces 2 new stats: GCSys and OtherSys for GC metadata
and all other misc allocations, respectively.
Also ensures that all XxxSys indeed sum up to Sys. All sys memory allocation
functions require the stat for accounting, so that it's impossible to miss something.
Also fix updating of mcache_sys/inuse, they were not updated after deallocation.

test/bench/garbage/parser before:
Sys		670064344
HeapSys		610271232
StackSys	65536
MSpanSys	14204928
MCacheSys	16384
BuckHashSys	1439992

after:
Sys		670064344
HeapSys		610271232
StackSys	65536
MSpanSys	14188544
MCacheSys	16384
BuckHashSys	3194304
GCSys		39198688
OtherSys	3129656

Fixes issue 5799.

R=rsc, dave, alex.brainman
CC=golang-dev
https://codereview.appspot.com/12946043

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

Generated by addca.

R=gobot
CC=golang-dev
https://codereview.appspot.com/13234049
compress/flate: prevent panic when reinitializing huffmanDecoder with bad input

The huffmanDecoder struct appears to be intented for reuse by calling init a
second time with a second sequence of code lengths. Unfortunately, it can
currently panic if the second sequence of code lengths has a minimum value
greater than 10 due to failure to reinitialize the links table.

This change prevents the panic by resetting the huffmanDecoder struct back to
the struct's zero value at the beginning of the init method if the
huffmanDecoder is being reused (determined by checking if min has been set to a
non-zero value).

Fixes issue 6255.

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

Committer: Brad Fitzpatrick <bradfitz@golang.org>