api: update next.txt

R=golang-codereviews, minux.ma
CC=golang-codereviews
https://codereview.appspot.com/50190043
go/parser: slightly improved error message by adding hint

It's difficult to make this much better w/o much
more effort. This is a rare case and probably not
worth it.

Fixes issue 6052.

R=golang-codereviews, bradfitz, adonovan
CC=golang-codereviews
https://codereview.appspot.com/49740045
runtime: fix 32-bit malloc for pointers >= 0x80000000

The spans array is allocated in runtime·mallocinit.  On a
32-bit system the number of entries in the spans array is
MaxArena32 / PageSize, which (2U << 30) / (1 << 12) == (1 << 19).
So we are allocating an array that can hold 19 bits for an
index that can hold 20 bits.  According to the comment in the
function, this is intentional: we only allocate enough spans
(and bitmaps) for a 2G arena, because allocating more would
probably be wasteful.

But since the span index is simply the upper 20 bits of the
memory address, this scheme only works if memory addresses are
limited to the low 2G of memory.  That would be OK if we were
careful to enforce it, but we're not.  What we are careful to
enforce, in functions like runtime·MHeap_SysAlloc, is that we
always return addresses between the heap's arena_start and
arena_start + MaxArena32.

We generally get away with it because we start allocating just
after the program end, so we only run into trouble with
programs that allocate a lot of memory, enough to get past
address 0x80000000.

This changes the code that computes a span index to subtract
arena_start on 32-bit systems just as we currently do on
64-bit systems.

R=golang-codereviews, rsc
CC=golang-codereviews
https://codereview.appspot.com/49460043
net/http: use TCP keep-alives for ListenAndServe and ListenAndServeTLS

Our default behavior for the common cases shouldn't lead to
leaked TCP connections (e.g. from people closing laptops) when
their Go servers are exposed to the open Internet without a
proxy in front.

Too many users on golang-nuts have learned this the hard way.

No API change. Only ListenAndServe and ListenAndServeTLS are
updated.

R=golang-codereviews, cespare, gobot, rsc, minux.ma
CC=golang-codereviews
https://codereview.appspot.com/48300043
cmd/link: intial skeleton of linker written in Go

R=iant
CC=golang-codereviews
https://codereview.appspot.com/48870044
cmd/link: Mach-O (OS X) file formatter

See CL 48870044 for basic structure.

R=iant
CC=golang-codereviews
https://codereview.appspot.com/48910043
cmd/gc: mark OGOTO as a statement for formatters.

Nodes of goto statements were corrupted when written
to export data.

Fixes issue 7023.

R=rsc, dave, minux.ma
CC=golang-codereviews
https://codereview.appspot.com/46190043
liblink: adjust format verbs to avoid collisions

The %S and %N format verbs are used by cmd/gc to
represent Sym and Node structures, respectively.

In liblink, these two verbs are used only by the %D
format routine and never referenced externally.

This change will allow us to delete the duplicated
code for the %A, %D, %P, and %R format routines in
both the compiler and linker.

R=golang-codereviews, rsc
CC=golang-codereviews
https://codereview.appspot.com/49720043
net: add SetKeepAlivePeriod for windows

R=golang-codereviews, alex.brainman, bradfitz, mikioh.mikioh
CC=golang-codereviews
https://codereview.appspot.com/11393043

Committer: Alex Brainman <alex.brainman@gmail.com>
liblink: fix comments.  Someone was overzealous with search & replace.

R=golang-codereviews, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/49160045
fmt: make benchmarks parallel
This seems to be the best target to benchmark sync.Pool changes.

This is resend of cl/49910043 which was LGTMed by
TBR=bradfitz

R=golang-codereviews
CC=golang-codereviews
https://codereview.appspot.com/50140045
A+C: Gautham Thambidorai (individual CLA)

Generated by addca.

R=gobot
CC=golang-codereviews
https://codereview.appspot.com/50500043
database/sql: avoiding fmt.Sprintf while scanning, avoid allocs with RawBytes

A user reported heavy contention on fmt's printer cache. Avoid
fmt.Sprint. We have to do reflection anyway, and there was
already an asString function to use strconv, so use it.

This CL also eliminates a redundant allocation + copy when
scanning into *[]byte (avoiding the intermediate string)
and avoids an extra alloc when assigning to a caller's RawBytes
(trying to reuse the caller's memory).

Fixes Issue 7086

R=golang-codereviews, nightlyone
CC=golang-codereviews
https://codereview.appspot.com/50240044
database/sql: fix test on 32-bit

R=golang-codereviews
TBR=golang-dev
CC=golang-codereviews
https://codereview.appspot.com/49920047
runtime, syscall: update for openbsd system ABI break

Update Go so that it continues to work past the OpenBSD system ABI
break, with 64-bit time_t:

  http://www.openbsd.org/faq/current.html#20130813

Note: this makes OpenBSD 5.5 (currently 5.4-current) the minimum
supported release for Go.

Fixes issue 7049.

R=golang-codereviews, mikioh.mikioh
CC=golang-codereviews
https://codereview.appspot.com/13368046
api: update except.txt and next.txt to reflect openbsd system ABI break

Update issue 7049

R=golang-codereviews, minux.ma, mikioh.mikioh
CC=golang-codereviews
https://codereview.appspot.com/49470052
net: add plan9 to TestDialTimeout
     === RUN TestDialTimeout
     --- PASS: TestDialTimeout (0.21 seconds)

R=golang-codereviews, bradfitz, 0intro
CC=golang-codereviews, rsc
https://codereview.appspot.com/49710050

Committer: David du Colombier <0intro@gmail.com>
net: ignore some errors in windows Accept

Fixes issue 6987

R=golang-codereviews, dvyukov
CC=golang-codereviews
https://codereview.appspot.com/49490043
runtime/pprof: enable profiling test on openbsd

Profiling of multithreaded applications works correctly on OpenBSD
5.4-current, so enable the profiling test.

R=golang-codereviews, minux.ma
CC=golang-codereviews
https://codereview.appspot.com/50940043
syscall: remove getsockname workaround for openbsd

Remove the getsockname workaround for unix domain sockets on OpenBSD.
This was fixed in OpenBSD 5.2 and we now have a minimum requirement
for OpenBSD 5.4-current.

R=golang-codereviews, minux.ma
CC=golang-codereviews
https://codereview.appspot.com/50960043