]> Cypherpunks repositories - gostls13.git/log
gostls13.git
14 years ago5l/6l/8l: use enums for header type and symbolic strings for -H option values
Alex Brainman [Wed, 23 Feb 2011 03:30:40 +0000 (14:30 +1100)]
5l/6l/8l: use enums for header type and symbolic strings for -H option values

Thanks to rsc for the suggestion.

R=r
CC=golang-dev
https://golang.org/cl/4174060

14 years agoexp/eval, go/printer: fix build
Robert Griesemer [Wed, 23 Feb 2011 02:17:03 +0000 (18:17 -0800)]
exp/eval, go/printer: fix build

There are some minor irregularities in the printer
output (some paren's are present that should be
removed), but these are unrelated issues.
Will review in a 2nd step.

R=rsc
CC=golang-dev
https://golang.org/cl/4188068

14 years agoarm: fix build
Russ Cox [Wed, 23 Feb 2011 02:10:02 +0000 (21:10 -0500)]
arm: fix build

Changes on laptop were not sync'ed to machine
where I ran hg submit.

R=r
CC=golang-dev
https://golang.org/cl/4195048

14 years agogo/ast, parser: condition in if statement is mandatory
Robert Griesemer [Wed, 23 Feb 2011 01:25:10 +0000 (17:25 -0800)]
go/ast, parser: condition in if statement is mandatory

As a result, parsing a "control clause" is now sufficiently
different for if, switch, and for statements that the code
is not factored out anymore. The code is a bit longer but
clearer in each individual case.

Reflect the changes in AST.

R=r, r2
CC=golang-dev
https://golang.org/cl/4173075

14 years agogo spec: make condition mandatory in if statements
Robert Griesemer [Tue, 22 Feb 2011 23:31:57 +0000 (15:31 -0800)]
go spec: make condition mandatory in if statements

Plus a few minor HTML fixes.

Fixes #1535.

R=r, rsc, ken2, iant, r2
CC=golang-dev
https://golang.org/cl/4185065

14 years agogc: require if condition
Russ Cox [Tue, 22 Feb 2011 23:23:29 +0000 (18:23 -0500)]
gc: require if condition

R=ken2, r2
CC=golang-dev
https://golang.org/cl/4195045

14 years agotest: do not depend on implicit if condition
Russ Cox [Tue, 22 Feb 2011 23:23:14 +0000 (18:23 -0500)]
test: do not depend on implicit if condition

Deleted test/ken/robif.go because test/if.go is
the same program modulo formatting.

R=golang-dev, gri, r2
CC=golang-dev
https://golang.org/cl/4186068

14 years agold: detect stack overflow due to NOSPLIT
Russ Cox [Tue, 22 Feb 2011 22:40:40 +0000 (17:40 -0500)]
ld: detect stack overflow due to NOSPLIT

Fix problems found.

On amd64, various library routines had bigger
stack frames than expected, because large function
calls had been added.

runtime.assertI2T: nosplit stack overflow
        120 assumed on entry to runtime.assertI2T
        8 after runtime.assertI2T uses 112
        0 on entry to runtime.newTypeAssertionError
        -8 on entry to runtime.morestack01

runtime.assertE2E: nosplit stack overflow
        120 assumed on entry to runtime.assertE2E
        16 after runtime.assertE2E uses 104
        8 on entry to runtime.panic
        0 on entry to runtime.morestack16
        -8 after runtime.morestack16 uses 8

runtime.assertE2T: nosplit stack overflow
        120 assumed on entry to runtime.assertE2T
        16 after runtime.assertE2T uses 104
        8 on entry to runtime.panic
        0 on entry to runtime.morestack16
        -8 after runtime.morestack16 uses 8

runtime.newselect: nosplit stack overflow
        120 assumed on entry to runtime.newselect
        56 after runtime.newselect uses 64
        48 on entry to runtime.printf
        8 after runtime.printf uses 40
        0 on entry to vprintf
        -8 on entry to runtime.morestack16

runtime.selectdefault: nosplit stack overflow
        120 assumed on entry to runtime.selectdefault
        56 after runtime.selectdefault uses 64
        48 on entry to runtime.printf
        8 after runtime.printf uses 40
        0 on entry to vprintf
        -8 on entry to runtime.morestack16

runtime.selectgo: nosplit stack overflow
        120 assumed on entry to runtime.selectgo
        0 after runtime.selectgo uses 120
        -8 on entry to runtime.gosched

On arm, 5c was tagging functions NOSPLIT that should
not have been, like the recursive function printpanics:

printpanics: nosplit stack overflow
        124 assumed on entry to printpanics
        112 after printpanics uses 12
        108 on entry to printpanics
        96 after printpanics uses 12
        92 on entry to printpanics
        80 after printpanics uses 12
        76 on entry to printpanics
        64 after printpanics uses 12
        60 on entry to printpanics
        48 after printpanics uses 12
        44 on entry to printpanics
        32 after printpanics uses 12
        28 on entry to printpanics
        16 after printpanics uses 12
        12 on entry to printpanics
        0 after printpanics uses 12
        -4 on entry to printpanics

R=r, r2
CC=golang-dev
https://golang.org/cl/4188061

14 years agomisc/dashboard/builder: talk to hg with utf-8 encoding always.
Andrew Gerrand [Tue, 22 Feb 2011 20:47:53 +0000 (07:47 +1100)]
misc/dashboard/builder: talk to hg with utf-8 encoding always.

Fixes #1465.

R=rsc
CC=golang-dev
https://golang.org/cl/4172063

14 years ago.hgignore: add *.cgo*.{c,go}
Gustavo Niemeyer [Tue, 22 Feb 2011 20:42:10 +0000 (15:42 -0500)]
.hgignore: add *.cgo*.{c,go}

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4168059

14 years agogob: compute information about a user's type once.
Rob Pike [Tue, 22 Feb 2011 20:31:57 +0000 (12:31 -0800)]
gob: compute information about a user's type once.
Other than maybe cleaning the code up a bit, this has
little practical effect for now, but lays the foundation
for remembering the method set of a type, which can
be expensive.

R=rsc
CC=golang-dev
https://golang.org/cl/4193041

14 years agogo spec: fix local link
Robert Griesemer [Tue, 22 Feb 2011 17:34:13 +0000 (09:34 -0800)]
go spec: fix local link

Fixes #1543.

R=rsc, r2
CC=golang-dev
https://golang.org/cl/4169068

14 years agoreflect: add a secret method to ArrayOrSliceType.
Rob Pike [Tue, 22 Feb 2011 17:21:50 +0000 (09:21 -0800)]
reflect: add a secret method to ArrayOrSliceType.
It was observed that the interface was generic enough
that several other types implemented it too.

Fixes #1530.

R=rsc
CC=golang-dev
https://golang.org/cl/4169063

14 years agohttp: add pointer from Handle[Func] to ServeMux docs
Andrew Gerrand [Tue, 22 Feb 2011 00:16:25 +0000 (11:16 +1100)]
http: add pointer from Handle[Func] to ServeMux docs

R=r
CC=golang-dev
https://golang.org/cl/4169065

14 years agohttp: cleaned up HEAD request method.
Padraig Kitterick [Mon, 21 Feb 2011 23:40:37 +0000 (10:40 +1100)]
http: cleaned up HEAD request method.

Removed a redefinition of the request URL which is never used and
redundant checking of the return value from send().

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4184061

14 years agoA+C: Padraig Kitterick
Andrew Gerrand [Mon, 21 Feb 2011 23:40:22 +0000 (10:40 +1100)]
A+C: Padraig Kitterick

R=dsymonds
CC=golang-dev
https://golang.org/cl/4186065

14 years agotesting: Fix typo on Logf doc comment.
David Symonds [Mon, 21 Feb 2011 23:12:18 +0000 (10:12 +1100)]
testing: Fix typo on Logf doc comment.

R=rsc, r2
CC=golang-dev
https://golang.org/cl/4167064

14 years agoimage/png: support for more formats
Mikael Tillenius [Mon, 21 Feb 2011 23:04:32 +0000 (10:04 +1100)]
image/png: support for more formats

Added support for reading images with grayscale + alpha and
for images with depth 1, 2 or 4.

R=nigeltao
CC=golang-dev
https://golang.org/cl/4174053

14 years agoA+C: Mikael Tillenius (individual CLA)
Nigel Tao [Mon, 21 Feb 2011 04:04:13 +0000 (15:04 +1100)]
A+C: Mikael Tillenius (individual CLA)

R=dsymonds
CC=golang-dev
https://golang.org/cl/4179063

14 years agoruntime-gdb.py: gdb pretty printer for go strings properly handles length.
Luuk van Dijk [Sun, 20 Feb 2011 17:53:23 +0000 (18:53 +0100)]
runtime-gdb.py: gdb pretty printer for go strings properly handles length.

R=rsc, r2
CC=golang-dev
https://golang.org/cl/4183060

14 years agospec: delete incorrect obsolete mention of selector working on
Rob Pike [Sat, 19 Feb 2011 23:04:56 +0000 (15:04 -0800)]
spec: delete incorrect obsolete mention of selector working on
pointer to interface type.

R=golang-dev, niemeyer, gri
CC=golang-dev
https://golang.org/cl/4173067

14 years agocrypto/openpgp/packet: comment typo fix.
Adam Langley [Sat, 19 Feb 2011 15:41:57 +0000 (10:41 -0500)]
crypto/openpgp/packet: comment typo fix.

R=rsc
CC=golang-dev
https://golang.org/cl/4178065

14 years agobuild: reduce the use of subshells in recursive make
Dave Cheney [Fri, 18 Feb 2011 23:49:46 +0000 (10:49 +1100)]
build: reduce the use of subshells in recursive make

Using make -C $* rather than (cd $* ; make) results in a small,
but measurable improvement in build times where compilation is
not the major component. eg.

before - ~/go/src/pkg$ time make
        real 0m1.176s
        user 0m0.639s
        sys 0m0.399s
after - ~/go/src/pkg$ time make
        real 0m0.916s
        user 0m0.571s
        sys 0m0.243s

There are other places in the distribution src/make.common for example
that could also benefit from this change.

R=adg
CC=golang-dev, rsc
https://golang.org/cl/4174055

14 years agomisc/dashboard: tweak build fail notification email
Andrew Gerrand [Fri, 18 Feb 2011 20:37:24 +0000 (07:37 +1100)]
misc/dashboard: tweak build fail notification email

R=rsc
CC=golang-dev
https://golang.org/cl/4170063

14 years agonet: fix multicast tests
Dave Cheney [Fri, 18 Feb 2011 18:48:13 +0000 (13:48 -0500)]
net: fix multicast tests

R=rsc, mikioh, rsc1, dho
CC=golang-dev
https://golang.org/cl/4174056

14 years agocrypto/openpgp/packet: fix testing print (missing arg)
Rob Pike [Fri, 18 Feb 2011 18:47:38 +0000 (10:47 -0800)]
crypto/openpgp/packet: fix testing print (missing arg)

R=agl
CC=golang-dev
https://golang.org/cl/4173062

14 years agogodoc: serve robots.txt raw
Andrew Gerrand [Fri, 18 Feb 2011 18:46:20 +0000 (05:46 +1100)]
godoc: serve robots.txt raw

R=gri, niemeyer, rsc, r2, r
CC=golang-dev
https://golang.org/cl/4188063

14 years ago.hgignore: add doc/codelab/wiki/*.bin
Gustavo Niemeyer [Fri, 18 Feb 2011 18:44:53 +0000 (05:44 +1100)]
.hgignore: add doc/codelab/wiki/*.bin

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4173063

14 years agoruntime: handle non-standard call sequences in arm traceback
Russ Cox [Fri, 18 Feb 2011 18:30:29 +0000 (13:30 -0500)]
runtime: handle non-standard call sequences in arm traceback

R=r
CC=golang-dev
https://golang.org/cl/4191048

14 years agofix build
Russ Cox [Fri, 18 Feb 2011 17:37:16 +0000 (12:37 -0500)]
fix build

pieces of an upcoming CL leaked into CL 4168056

TBR=r
CC=golang-dev
https://golang.org/cl/4180057

14 years agoruntime: record $GOROOT_FINAL for runtime.GOROOT
Russ Cox [Fri, 18 Feb 2011 16:35:43 +0000 (11:35 -0500)]
runtime: record $GOROOT_FINAL for runtime.GOROOT

Update #1527.

R=adg, oerdnj
CC=golang-dev
https://golang.org/cl/4171060

14 years agold: drop rpath
Russ Cox [Fri, 18 Feb 2011 16:35:36 +0000 (11:35 -0500)]
ld: drop rpath

Was required by old cgo but we don't
generate stub .so files anymore.

Update #1527.

R=iant
CC=golang-dev
https://golang.org/cl/4168056

14 years agocrypto/rsa: left-pad OAEP results when needed.
Adam Langley [Fri, 18 Feb 2011 16:31:10 +0000 (11:31 -0500)]
crypto/rsa: left-pad OAEP results when needed.

PKCS#1 v2.1 section 7.1.1 says that the result of an OAEP encryption
is "an octet string of length $k$". Since we didn't left-pad the
result it was previously possible for the result to be smaller when
the most-significant byte was zero.

Fixes #1519.

R=rsc
CC=golang-dev
https://golang.org/cl/4175059

14 years agogo/scanner: update comment
Robert Griesemer [Fri, 18 Feb 2011 01:22:16 +0000 (17:22 -0800)]
go/scanner: update comment

R=r, r2
CC=golang-dev
https://golang.org/cl/4184053

14 years agotesting: rename cmdline flags to avoid conflicts
Gustavo Niemeyer [Fri, 18 Feb 2011 00:17:33 +0000 (16:17 -0800)]
testing: rename cmdline flags to avoid conflicts

Flags defined in the testing package may conflict
with real flags defined in the main package, or in
any other imported package.

This change makes them less likely to be used for
other purposes.

R=r, rsc, r2
CC=golang-dev
https://golang.org/cl/4167055

14 years ago6l: pe fixes
Wei Guangjing [Thu, 17 Feb 2011 23:58:47 +0000 (10:58 +1100)]
6l: pe fixes

R=rsc, brainman
CC=golang-dev
https://golang.org/cl/4182061

14 years agohtml: small documentation fix.
Nigel Tao [Thu, 17 Feb 2011 23:35:49 +0000 (10:35 +1100)]
html: small documentation fix.

R=rsc
CC=golang-dev
https://golang.org/cl/4169058

14 years agohttp: send full URL in proxy requests
Russ Cox [Thu, 17 Feb 2011 22:14:50 +0000 (17:14 -0500)]
http: send full URL in proxy requests

Fixes #53.  (again)

R=agl1
CC=golang-dev
https://golang.org/cl/4167054

14 years agojson: only use alphanumeric tags
Russ Cox [Thu, 17 Feb 2011 22:14:19 +0000 (17:14 -0500)]
json: only use alphanumeric tags

Almost the same definition as Go identifier names.
(Leading digits are allowed.)

Fixes #1520.

R=r, r2
CC=golang-dev
https://golang.org/cl/4173061

14 years agogc: interface error message fixes
Russ Cox [Thu, 17 Feb 2011 21:33:26 +0000 (16:33 -0500)]
gc: interface error message fixes

Fixes #1526.

R=ken2
CC=golang-dev
https://golang.org/cl/4190051

14 years agonet: remove comment fragments
Russ Cox [Thu, 17 Feb 2011 21:32:50 +0000 (16:32 -0500)]
net: remove comment fragments

I have no idea how I meant to complete that sentence.

R=r, r2
CC=golang-dev
https://golang.org/cl/4191046

14 years agoruntime: descriptive panics for use of nil map
Russ Cox [Thu, 17 Feb 2011 21:08:52 +0000 (16:08 -0500)]
runtime: descriptive panics for use of nil map

R=r, r2
CC=golang-dev
https://golang.org/cl/4173060

14 years agocrypto/rand: Added read buffer to speed up requests for small amounts of bytes.
Albert Strasheim [Thu, 17 Feb 2011 20:14:41 +0000 (15:14 -0500)]
crypto/rand: Added read buffer to speed up requests for small amounts of bytes.

R=agl1, rsc
CC=golang-dev
https://golang.org/cl/4170056

14 years agomisc/dashboard: notify golang-dev on build failure
Andrew Gerrand [Thu, 17 Feb 2011 16:34:22 +0000 (03:34 +1100)]
misc/dashboard: notify golang-dev on build failure

Fixes #1229.

R=rsc
CC=golang-dev
https://golang.org/cl/4178048

14 years agoEffective Go: stress that comments are uninterpreted text
Rob Pike [Thu, 17 Feb 2011 06:35:31 +0000 (22:35 -0800)]
Effective Go: stress that comments are uninterpreted text
that should look in godoc.

R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/4192041

14 years agoarm runtime: attempt to fix build by adding casp (same as cas)
Rob Pike [Thu, 17 Feb 2011 06:01:57 +0000 (22:01 -0800)]
arm runtime: attempt to fix build by adding casp (same as cas)
untested.

Fixes #1523.

R=rsc
CC=golang-dev
https://golang.org/cl/4171057

14 years agodoc/devel/release: discuss StartProcess in release notes
Andrew Gerrand [Thu, 17 Feb 2011 02:20:50 +0000 (21:20 -0500)]
doc/devel/release: discuss StartProcess in release notes

R=rsc
CC=golang-dev
https://golang.org/cl/4172051

14 years agosyscall: fix windows SetFileAttributes
Alex Brainman [Thu, 17 Feb 2011 01:09:12 +0000 (12:09 +1100)]
syscall: fix windows SetFileAttributes

R=golang-dev, rsc, hector
CC=golang-dev, mattn
https://golang.org/cl/4180052

14 years agonet: fix windows build
Alex Brainman [Thu, 17 Feb 2011 01:00:02 +0000 (12:00 +1100)]
net: fix windows build

R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/4184051

14 years agohtml: tokenize HTML comments.
Nigel Tao [Wed, 16 Feb 2011 23:45:30 +0000 (10:45 +1100)]
html: tokenize HTML comments.

I'm not sure if it's 100% correct wrt the HTML5 specification,
but the test suite has plenty of HTML comment test cases, and
we'll shake out any tokenization bugs as the parser improves its
coverage.

R=gri
CC=golang-dev
https://golang.org/cl/4186055

14 years agogc: make string const comparison unsigned
Jeff R. Allen [Wed, 16 Feb 2011 22:57:15 +0000 (17:57 -0500)]
gc: make string const comparison unsigned

Make compile-time string const comparison match semantics
of runtime.cmpstring.

Fixes #1515.

R=rsc
CC=golang-dev, rog
https://golang.org/cl/4172049

14 years agonet: add IPv4 multicast to UDPConn
Dave Cheney [Wed, 16 Feb 2011 20:07:13 +0000 (15:07 -0500)]
net: add IPv4 multicast to UDPConn

notes:
Darwin is very particular about joining a multicast group if the
listneing socket is not created in "udp4" mode, the other supported
OS's are more flexible.

A simple example sets up a socket to listen on the mdns/bonjour
group 224.0.0.251:5353

// ensure the sock is udp4, and the IP is a 4 byte IPv4
socket, err := net.ListenUDP("udp4", &net.UDPAddr {
        IP: net.IPv4zero,
        // currently darwin will not allow you to bind to
        // a port if it is already bound to another process
        Port: 5353,
})
if err != nil {
        log.Exitf("listen %s", err)
}
defer socket.Close()
err = socket.JoinGroup(net.IPv4(224, 0, 0, 251))
if err != nil {
        log.Exitf("join group %s", err)
}

R=adg, rsc
CC=golang-dev
https://golang.org/cl/4066044

14 years agonet: more accurate IPv4-in-IPv6 API test
Mikio Hara [Wed, 16 Feb 2011 20:05:48 +0000 (15:05 -0500)]
net: more accurate IPv4-in-IPv6 API test

R=rsc
CC=golang-dev
https://golang.org/cl/4172045

14 years agonet: reject invalid net:proto network names
Olivier Antoine [Wed, 16 Feb 2011 20:03:47 +0000 (15:03 -0500)]
net: reject invalid net:proto network names

R=rsc
CC=golang-dev
https://golang.org/cl/4129042

14 years agoA+C: Olivier Antoine (individual CLA)
Russ Cox [Wed, 16 Feb 2011 20:02:08 +0000 (15:02 -0500)]
A+C: Olivier Antoine (individual CLA)

Also sort name lists.

R=r, r2
CC=golang-dev
https://golang.org/cl/4191044

14 years agosync: add Cond
Gustavo Niemeyer [Wed, 16 Feb 2011 19:11:07 +0000 (14:11 -0500)]
sync: add Cond

R=rsc, rog, r
CC=golang-dev
https://golang.org/cl/3775048

14 years agoos: remove ENODATA (fixes freebsd build)
Russ Cox [Wed, 16 Feb 2011 19:10:52 +0000 (14:10 -0500)]
os: remove ENODATA (fixes freebsd build)

R=r, r2
CC=golang-dev
https://golang.org/cl/4175053

14 years agohttp: add proxy support
Yasuhiro Matsumoto [Wed, 16 Feb 2011 19:06:50 +0000 (14:06 -0500)]
http: add proxy support
Fixes #53.

R=agl1, jacek.masiulaniec, adg, rsc, agl
CC=golang-dev
https://golang.org/cl/3794041

14 years agoreflect: add a couple of sentences explaining how Methods operate.
Rob Pike [Wed, 16 Feb 2011 19:01:21 +0000 (11:01 -0800)]
reflect: add a couple of sentences explaining how Methods operate.

R=rsc, gri, rsc1, bsiegert
CC=golang-dev
https://golang.org/cl/4183053

14 years agotest/bench: update timings for new GC
Rob Pike [Wed, 16 Feb 2011 18:46:29 +0000 (10:46 -0800)]
test/bench: update timings for new GC
Some significant improvements; e.g. pidigits goes from 8.33 to 6.37

Also add gccgo for regex-dna.

R=rsc
CC=golang-dev
https://golang.org/cl/4160056

14 years agoruntime: fix memory allocator for GOMAXPROCS > 1
Russ Cox [Wed, 16 Feb 2011 18:21:20 +0000 (13:21 -0500)]
runtime: fix memory allocator for GOMAXPROCS > 1

Bitmaps were not being updated safely.
Depends on 4188053.

Fixes #1504.
May fix issue 1479.

R=r, r2
CC=golang-dev
https://golang.org/cl/4184048

14 years agoruntime: minor cleanup
Russ Cox [Wed, 16 Feb 2011 18:21:13 +0000 (13:21 -0500)]
runtime: minor cleanup

implement runtime.casp on amd64.
keep simultaneous panic messages separate.

R=r
CC=golang-dev
https://golang.org/cl/4188053

14 years agoos: add ENODATA and ENOTCONN
Albert Strasheim [Wed, 16 Feb 2011 18:19:31 +0000 (13:19 -0500)]
os: add ENODATA and ENOTCONN
syscall: add MCL_* flags for mlockall

R=rsc
CC=golang-dev
https://golang.org/cl/4177044

14 years agonetchan: allow use of arbitrary connections.
Roger Peppe [Wed, 16 Feb 2011 16:14:41 +0000 (08:14 -0800)]
netchan: allow use of arbitrary connections.

R=r, r2, rsc
CC=golang-dev
https://golang.org/cl/4119055

14 years agosyscall: implement chmod() for win32.
Yasuhiro Matsumoto [Wed, 16 Feb 2011 05:24:59 +0000 (16:24 +1100)]
syscall: implement chmod() for win32.

R=golang-dev, rsc, brainman
CC=golang-dev
https://golang.org/cl/4175049

14 years ago8l,6l: allow for more os threads to be created on Windows
Alex Brainman [Wed, 16 Feb 2011 05:08:42 +0000 (16:08 +1100)]
8l,6l: allow for more os threads to be created on Windows

Program listed http://code.google.com/p/go/issues/detail?id=1495
(with nRequester set to 10000) will crash with

runtime: failed to create new OS thread (have 4526 already; errno=8)

instead of

runtime: failed to create new OS thread (have 618 already; errno=8).

R=golang-dev, rsc, vcc
CC=golang-dev
https://golang.org/cl/4172046

14 years agosyscall: fix inverse checking of result code on windows.
Yasuhiro Matsumoto [Wed, 16 Feb 2011 05:07:04 +0000 (16:07 +1100)]
syscall: fix inverse checking of result code on windows.

R=golang-dev, brainman, rsc
CC=golang-dev
https://golang.org/cl/4179049

14 years agocompress: move zlib/testdata to testdata so it can be shared by all
Nigel Tao [Wed, 16 Feb 2011 00:41:29 +0000 (11:41 +1100)]
compress: move zlib/testdata to testdata so it can be shared by all
compression algorithms.

R=rsc, r2, nigeltao_gnome
CC=golang-dev
https://golang.org/cl/4188054

14 years agodoc: fix release notes anchor tag
Andrew Gerrand [Tue, 15 Feb 2011 22:41:34 +0000 (09:41 +1100)]
doc: fix release notes anchor tag

R=r, r2
CC=golang-dev
https://golang.org/cl/4178055

14 years agocrypto/tls: make protocol negotiation failure fatal
Adam Langley [Tue, 15 Feb 2011 21:38:45 +0000 (16:38 -0500)]
crypto/tls: make protocol negotiation failure fatal

R=r, r2
CC=golang-dev
https://golang.org/cl/4178054

14 years agogo spec: minor clarification on channel types
Robert Griesemer [Tue, 15 Feb 2011 19:33:12 +0000 (11:33 -0800)]
go spec: minor clarification on channel types

No language change.

R=r, rsc, iant, ken2, r2
CC=golang-dev
https://golang.org/cl/4168050

14 years agotag release.2011-02-15
Andrew Gerrand [Tue, 15 Feb 2011 16:02:55 +0000 (03:02 +1100)]
tag release.2011-02-15

R=rsc
CC=golang-dev
https://golang.org/cl/4184046

14 years agorelease.2011-02-15 weekly.2011-02-15
Andrew Gerrand [Tue, 15 Feb 2011 15:58:08 +0000 (02:58 +1100)]
release.2011-02-15

R=rsc
CC=golang-dev
https://golang.org/cl/4191041

14 years agoencoding/line: fix line returned after EOF
Adam Langley [Tue, 15 Feb 2011 14:52:20 +0000 (09:52 -0500)]
encoding/line: fix line returned after EOF

Fixes #1509.

R=r
CC=golang-dev
https://golang.org/cl/4167045

14 years agogodoc: don't hide package lookup error if there's no command with the same name
Robert Griesemer [Tue, 15 Feb 2011 01:41:47 +0000 (17:41 -0800)]
godoc: don't hide package lookup error if there's no command with the same name

Fixes #1514.

R=r, r2
CC=golang-dev
https://golang.org/cl/4173050

14 years agorpc: properly discard values.
Roger Peppe [Mon, 14 Feb 2011 22:51:08 +0000 (14:51 -0800)]
rpc: properly discard values.

R=r, rsc, r2
CC=golang-dev
https://golang.org/cl/4171050

14 years agoruntime: detect failed thread creation on Windows
Alex Brainman [Mon, 14 Feb 2011 22:42:25 +0000 (09:42 +1100)]
runtime: detect failed thread creation on Windows

Fixes #1495.

R=rsc
CC=golang-dev
https://golang.org/cl/4182047

14 years agomakehtml: use append
Rob Pike [Mon, 14 Feb 2011 19:47:19 +0000 (11:47 -0800)]
makehtml: use append
The program is old and missed its opportunity.

R=gri, adg
CC=golang-dev
https://golang.org/cl/4178050

14 years agotutorial: rework the introduction to give "Effective Go"
Rob Pike [Mon, 14 Feb 2011 19:25:00 +0000 (11:25 -0800)]
tutorial: rework the introduction to give "Effective Go"
prominence and downplay the course notes.

R=golang-dev, gri, rsc
CC=golang-dev
https://golang.org/cl/4190041

14 years agoarchive/zip: handle files with data descriptors
Andrew Gerrand [Mon, 14 Feb 2011 18:42:16 +0000 (05:42 +1100)]
archive/zip: handle files with data descriptors

Fixes #1471.

R=rsc
CC=golang-dev
https://golang.org/cl/4183048

14 years agogob: decode into nil, this time for sure.
Rob Pike [Mon, 14 Feb 2011 18:17:30 +0000 (10:17 -0800)]
gob: decode into nil, this time for sure.

Yesterday's change was too simple-minded and failed if an
interface value was being discarded.  We need to parse the
data stream and remember any type information that arrives.

Also fix a minor bug when ignoring an interface: toss only what
we know about, not everything.

R=rsc
CC=golang-dev
https://golang.org/cl/4179045

14 years agowindows: runtime: implemented console ctrl handler (SIGINT).
Hector Chu [Mon, 14 Feb 2011 17:15:13 +0000 (12:15 -0500)]
windows: runtime: implemented console ctrl handler (SIGINT).

R=rsc, brainman, iant2
CC=golang-dev
https://golang.org/cl/4129049

14 years agobuild: run test/ directory first
Russ Cox [Mon, 14 Feb 2011 14:27:02 +0000 (09:27 -0500)]
build: run test/ directory first

R=adg, r
CC=golang-dev
https://golang.org/cl/4183047

14 years agogo/printer: line comments must always end in a newline
Robert Griesemer [Mon, 14 Feb 2011 03:27:02 +0000 (19:27 -0800)]
go/printer: line comments must always end in a newline

Fixes #1503.

R=rsc
CC=golang-dev
https://golang.org/cl/4170045

14 years agogob: allow Decode(nil) and have it just discard the next value.
Rob Pike [Sun, 13 Feb 2011 02:03:54 +0000 (18:03 -0800)]
gob: allow Decode(nil) and have it just discard the next value.
Fixes #1489.

R=rsc
CC=golang-dev
https://golang.org/cl/4187046

14 years agocode.html: update to reflect that package names need not be unique
Rob Pike [Sun, 13 Feb 2011 02:03:16 +0000 (18:03 -0800)]
code.html: update to reflect that package names need not be unique

Fixes #1507.

R=golang-dev, ehog.hedge, rsc
CC=golang-dev
https://golang.org/cl/4160049

14 years ago5ld: part of 64bit eor - forgot to check in.
Ken Thompson [Sat, 12 Feb 2011 04:13:57 +0000 (20:13 -0800)]
5ld: part of 64bit eor - forgot to check in.

R=r, rsc
CC=golang-dev
https://golang.org/cl/4176046

14 years agogofmt: exclude testcase with incorrect syntax
Robert Griesemer [Sat, 12 Feb 2011 00:24:35 +0000 (16:24 -0800)]
gofmt: exclude testcase with incorrect syntax

R=r, r2
CC=golang-dev
https://golang.org/cl/4160047

14 years agostrconv/ftoa: avoid a double shift. (shifts by variables are expensive.)
Rob Pike [Sat, 12 Feb 2011 00:06:04 +0000 (16:06 -0800)]
strconv/ftoa: avoid a double shift. (shifts by variables are expensive.)

R=rsc, gri, r2
CC=golang-dev
https://golang.org/cl/4169048

14 years agotesting: include elapsed time in output
Russ Cox [Fri, 11 Feb 2011 23:00:58 +0000 (18:00 -0500)]
testing: include elapsed time in output

R=r
CC=golang-dev
https://golang.org/cl/4180045

14 years agogc: correct receiver in method missing error
Lorenzo Stoakes [Fri, 11 Feb 2011 22:47:58 +0000 (17:47 -0500)]
gc: correct receiver in method missing error

Fixes #1324.

R=rsc1, r, rsc
CC=golang-dev
https://golang.org/cl/3435042

14 years agosync: check Unlock of unlocked Mutex
Russ Cox [Fri, 11 Feb 2011 22:47:17 +0000 (17:47 -0500)]
sync: check Unlock of unlocked Mutex

R=r, adg
CC=golang-dev
https://golang.org/cl/4180044

14 years ago5ld: stoped generating 64-bit eor
Ken Thompson [Fri, 11 Feb 2011 21:22:35 +0000 (13:22 -0800)]
5ld: stoped generating 64-bit eor

R=rsc
CC=golang-dev
https://golang.org/cl/4182049

14 years agosyscall: remove obsolete socket IO control
Mikio Hara [Fri, 11 Feb 2011 21:20:31 +0000 (16:20 -0500)]
syscall: remove obsolete socket IO control

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4183046

14 years agohttp: add pipelining to ClientConn, ServerConn
Petar Maymounkov [Fri, 11 Feb 2011 20:05:47 +0000 (15:05 -0500)]
http: add pipelining to ClientConn, ServerConn

R=rsc, bradfitzwork
CC=golang-dev
https://golang.org/cl/4082044

14 years agosyscall: add sockaddr_dl, sysctl with routing message support for darwin, freebsd
Mikio Hara [Fri, 11 Feb 2011 19:34:00 +0000 (14:34 -0500)]
syscall: add sockaddr_dl, sysctl with routing message support for darwin, freebsd

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/4171043

14 years agoruntime: check that SysReserve returns aligned memory
Russ Cox [Fri, 11 Feb 2011 19:32:34 +0000 (14:32 -0500)]
runtime: check that SysReserve returns aligned memory

R=iant, iant2
CC=golang-dev
https://golang.org/cl/4180043

14 years ago8l, runtime: place G and M pointers relative to _tos on Plan 9, instead of hardcoded...
Yuval Pavel Zholkover [Fri, 11 Feb 2011 18:39:05 +0000 (13:39 -0500)]
8l, runtime: place G and M pointers relative to _tos on Plan 9, instead of hardcoded values for USTKTOP.

This should allow executing both on native Plan 9 and inside 9vx.

R=rsc
CC=golang-dev
https://golang.org/cl/3993044

14 years agobytes: fix bugs in buffer.ReadBytes
Evan Shaw [Fri, 11 Feb 2011 17:39:18 +0000 (12:39 -0500)]
bytes: fix bugs in buffer.ReadBytes

Fixes #1498.

R=golang-dev, mattn, r, rsc
CC=golang-dev
https://golang.org/cl/4140041

14 years agocrypto/openpgp: minor updates to subpackages
Adam Langley [Fri, 11 Feb 2011 13:34:19 +0000 (08:34 -0500)]
crypto/openpgp: minor updates to subpackages

Now that packet/ is checked in, we can add its Makefile. Also, a couple
of updates to error/ and s2k/ for bugfixes and to use the new crypto
package.

R=bradfitzgo
CC=golang-dev
https://golang.org/cl/4179043