]>
Cypherpunks repositories - gostls13.git/log
Ian Lance Taylor [Fri, 18 Mar 2011 18:50:19 +0000 (11:50 -0700)]
net: Use preallocated buffer for epoll.
Reduces rpc test "mallocs per rpc round trip" by 4.
Gains ~8% on a localhost client/server RPC test.
R=rsc
CC=golang-dev
https://golang.org/cl/
4284056
Yasuhiro Matsumoto [Fri, 18 Mar 2011 16:28:23 +0000 (09:28 -0700)]
godoc: No need to use filepath.IsAbs()
R=golang-dev, brainman, gri
CC=golang-dev
https://golang.org/cl/
4277062
Yasuhiro Matsumoto [Fri, 18 Mar 2011 05:27:30 +0000 (22:27 -0700)]
godoc: fix path problem for windows.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/
4299044
Ken Thompson [Thu, 17 Mar 2011 23:47:00 +0000 (16:47 -0700)]
sinit.c: recursion in sinit
fixes #1617
R=rsc
CC=golang-dev
https://golang.org/cl/
4277059
Alex Brainman [Thu, 17 Mar 2011 23:19:19 +0000 (10:19 +1100)]
filepath: do not run TestEvalSymlinks on Windows
R=golang-dev, rsc1
CC=adg, golang-dev
https://golang.org/cl/
4274069
Robert Griesemer [Thu, 17 Mar 2011 22:32:29 +0000 (15:32 -0700)]
go/parser: fix memory leak by making a copy of token literals
The scanner returns slices into the original source
for token values. If those slices are making it into
the AST and from there into other long-living data
structures (e.g. godoc search), references to the
original source are kept around involuntarily.
For the current godoc and source tree, this change reduces
memory consumption after indexing and before GC by ~92MB
or almost 30%, and by ~10MB after GC (or about 6%).
R=rsc
CC=golang-dev
https://golang.org/cl/
4273072
Rob Pike [Thu, 17 Mar 2011 22:29:52 +0000 (15:29 -0700)]
flag: fix example in doc comment.
Fixes #1615.
R=dsymonds
CC=golang-dev
https://golang.org/cl/
4277058
Ian Lance Taylor [Thu, 17 Mar 2011 20:42:40 +0000 (13:42 -0700)]
net: Don't force epoll/kqueue to wake up in order to add new events.
In conjunction with the non-blocking system call CL, this
gives about an 8% performance improvement on a client/server
test running on my local machine.
R=rsc, iant2
CC=golang-dev
https://golang.org/cl/
4272057
Alex Brainman [Thu, 17 Mar 2011 18:49:56 +0000 (11:49 -0700)]
go/scanner: to interpret line comments with Windows filenames
Fixes #1614.
R=gri
CC=golang-dev
https://golang.org/cl/
4290054
Caine Tighe [Thu, 17 Mar 2011 17:57:36 +0000 (13:57 -0400)]
os: remove fstat TODO
R=rsc
CC=golang-dev
https://golang.org/cl/
3559041
Rob Pike [Thu, 17 Mar 2011 17:47:42 +0000 (10:47 -0700)]
gob: eliminate two more allocations in decode.
- just an oversight; we were reallocating a buffer.
- use unsafe to avoid allocating storage for a string twice.
R=rsc
CC=golang-dev
https://golang.org/cl/
4290056
Russ Cox [Thu, 17 Mar 2011 17:46:05 +0000 (13:46 -0400)]
time: isolate syscall reference in sys.go
R=dsymonds
CC=golang-dev
https://golang.org/cl/
4291052
Evan Shaw [Thu, 17 Mar 2011 05:45:05 +0000 (01:45 -0400)]
.hgignore: Ignore all goinstalled packages
R=golang-dev, niemeyer, rsc1, rog, rsc
CC=golang-dev
https://golang.org/cl/
4285047
Andrew Gerrand [Thu, 17 Mar 2011 05:37:34 +0000 (16:37 +1100)]
doc: mention godoc in "implements" FAQ
R=r
CC=golang-dev
https://golang.org/cl/
4248066
Andrew Gerrand [Thu, 17 Mar 2011 05:36:37 +0000 (16:36 +1100)]
path/filepath: add EvalSymlinks function
R=rsc, niemeyer, r2, rog, iant2, r
CC=golang-dev
https://golang.org/cl/
4235060
Andrew Gerrand [Thu, 17 Mar 2011 05:33:10 +0000 (16:33 +1100)]
doc: explain release and weekly tags in install.html
R=r
CC=golang-dev
https://golang.org/cl/
4272058
Ian Lance Taylor [Thu, 17 Mar 2011 02:03:01 +0000 (19:03 -0700)]
syscall: Permit non-blocking syscalls.
Permit system calls to be designated as non-blocking, meaning
that we simply call them without involving the scheduler.
This change by itself is mostly performance neutral. In
combination with a following change to the net package there
is a performance advantage.
R=rsc, dfc, r2, iant2, rsc1
CC=golang-dev
https://golang.org/cl/
4278055
Russ Cox [Thu, 17 Mar 2011 01:05:40 +0000 (21:05 -0400)]
gc: fix crash when using -u
R=ken2
CC=golang-dev
https://golang.org/cl/
4278056
Rob Pike [Thu, 17 Mar 2011 01:03:13 +0000 (18:03 -0700)]
gob: remove a few more allocations.
- use enc.err and dec.err instead of return values in deferred error catcher
- replace io.WriteString with buffer.WriteString
now at:
mallocs per encode of type Bench: 7
mallocs per decode of type Bench: 8
R=rsc
CC=golang-dev
https://golang.org/cl/
4277057
Yasuhiro Matsumoto [Wed, 16 Mar 2011 23:41:23 +0000 (10:41 +1100)]
path: work for windows.
R=brainman, rsc, rsc1
CC=golang-dev
https://golang.org/cl/
4249064
Andrew Gerrand [Wed, 16 Mar 2011 22:59:18 +0000 (09:59 +1100)]
gofix: httpserver - rewrite rw.SetHeader to rw.Header.Set
R=rsc
CC=golang-dev
https://golang.org/cl/
4271048
Andrew Gerrand [Wed, 16 Mar 2011 22:11:08 +0000 (09:11 +1100)]
codereview: permit CLs of the form weekly.DATE
gobuilder: recognize CLs of the form weekly.DATE
R=rsc, r
CC=golang-dev
https://golang.org/cl/
4282052
Brad Fitzpatrick [Wed, 16 Mar 2011 21:32:35 +0000 (14:32 -0700)]
http: add NewProxyClientConn
This just returns a ClientConn suitable for writing
proxy requests. To be used in Transport.
R=rsc, petar-m
CC=golang-dev
https://golang.org/cl/
4290052
Robert Griesemer [Wed, 16 Mar 2011 21:25:59 +0000 (14:25 -0700)]
go/ast: merge CaseClause and TypeCaseClause
(per rsc's suggestion)
R=rsc
CC=golang-dev
https://golang.org/cl/
4276057
Alex Brainman [Wed, 16 Mar 2011 17:38:03 +0000 (10:38 -0700)]
go/scanner: use filepath
R=gri
CC=golang-dev
https://golang.org/cl/
4280048
Rob Pike [Wed, 16 Mar 2011 17:32:21 +0000 (10:32 -0700)]
testing: compile regexp only once
The -test.run and -test.bench flags were compilng the regexp for ever test
function, which was mucking up memory profiles. Add a simple wrapper
to save the compiled state so that the regexp is compiled only once for
each flag.
R=rsc
CC=golang-dev
https://golang.org/cl/
4274063
Rob Pike [Wed, 16 Mar 2011 17:12:25 +0000 (10:12 -0700)]
testing: fix build
Dependency on bufio crept in during last CL; this breaks the cycle.
Also add a missing '-' to the documentation.
R=rsc
CC=golang-dev
https://golang.org/cl/
4274061
Rob Pike [Wed, 16 Mar 2011 16:53:58 +0000 (09:53 -0700)]
testing: add -test.memprofile and -test.memprofilerate flags.
These allow a test to generate memory profiles automatically.
R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/
4273064
Adam Langley [Wed, 16 Mar 2011 14:50:06 +0000 (10:50 -0400)]
crypto/openpgp: add DSA signature support.
R=bradfitzgo, nsz
CC=golang-dev
https://golang.org/cl/
4280041
Adam Langley [Wed, 16 Mar 2011 14:42:41 +0000 (10:42 -0400)]
crypto/ecdsa: truncate hash values.
There is some disagreement about how to deal with hash values larger
than the curve order size. We choose to follow OpenSSL's lead here.
R=bradfitzgo, r
CC=golang-dev
https://golang.org/cl/
4273059
Andrew Gerrand [Wed, 16 Mar 2011 05:36:18 +0000 (16:36 +1100)]
doc: fix line wrapping for release.html
R=r
CC=golang-dev
https://golang.org/cl/
4281052
Andrew Gerrand [Wed, 16 Mar 2011 05:26:46 +0000 (16:26 +1100)]
tag weekly.2011-03-15
R=r
CC=golang-dev
https://golang.org/cl/
4289048
Andrew Gerrand [Wed, 16 Mar 2011 05:24:08 +0000 (16:24 +1100)]
weekly.2011-03-15
R=r
CC=golang-dev
https://golang.org/cl/
4272052
Rob Pike [Wed, 16 Mar 2011 04:30:07 +0000 (21:30 -0700)]
gob: keep free lists of encoder and decoder states.
Avoids 3 mallocs in a round trip encoding/decoding a struct.
R=rsc, rsc1
CC=golang-dev
https://golang.org/cl/
4278052
Alex Brainman [Wed, 16 Mar 2011 04:20:46 +0000 (15:20 +1100)]
gofix: fix godoc doc
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
4290049
Russ Cox [Wed, 16 Mar 2011 02:58:09 +0000 (13:58 +1100)]
gofix: fix procattr registration, tests
R=adg
CC=golang-dev
https://golang.org/cl/
4275054
Russ Cox [Wed, 16 Mar 2011 02:33:57 +0000 (22:33 -0400)]
gofix: procattr
R=adg
CC=golang-dev
https://golang.org/cl/
4274059
Robert Griesemer [Wed, 16 Mar 2011 00:45:16 +0000 (17:45 -0700)]
go/printer: output tuning for gofix
If braces don't have position information for a composite
literal, don't assume alignment of key:value pairs under
the (wrong) assumption that there may be multiple lines.
R=rsc
CC=golang-dev
https://golang.org/cl/
4297043
Rob Pike [Wed, 16 Mar 2011 00:14:02 +0000 (17:14 -0700)]
gob: move benchmarks to a new timing_test.go file.
Add malloc counts for encode and decode.
R=rsc
CC=golang-dev
https://golang.org/cl/
4290048
Russ Cox [Tue, 15 Mar 2011 23:39:50 +0000 (19:39 -0400)]
debug/proc: fix build
R=r
CC=golang-dev
https://golang.org/cl/
4273060
Rob Pike [Tue, 15 Mar 2011 21:20:30 +0000 (14:20 -0700)]
rpc: add the ability to write out a memory profile during testing.
R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/
4290047
Rob Pike [Tue, 15 Mar 2011 20:09:11 +0000 (13:09 -0700)]
rpc: add benchmarks
On my mac:
mallocs per rpc round trip: 144
rpc.BenchmarkEndToEnd 10000 228244 ns/op
Room for improvement.
R=rsc
CC=golang-dev
https://golang.org/cl/
4274058
Evan Shaw [Tue, 15 Mar 2011 18:42:18 +0000 (14:42 -0400)]
lib9, libmach: Change GOOS references to GOHOSTOS
This makes it possible to build Windows binaries on non-Windows OSes.
R=golang-dev, rsc1, rsc
CC=golang-dev
https://golang.org/cl/
4271046
Roger Peppe [Tue, 15 Mar 2011 18:41:19 +0000 (14:41 -0400)]
os, syscall: add ProcAttr type. Change StartProcess etc. to use it.
The Windows code is untested.
R=rsc, gri, brainman, rsc1
CC=golang-dev
https://golang.org/cl/
4253052
Russ Cox [Tue, 15 Mar 2011 18:15:41 +0000 (14:15 -0400)]
gofix: new command for updating code to new release
R=bradfitzgo, dsymonds, r, gri, adg
CC=golang-dev
https://golang.org/cl/
4282044
Russ Cox [Tue, 15 Mar 2011 18:05:37 +0000 (14:05 -0400)]
gc: diagnose unused labels
R=ken2
CC=golang-dev
https://golang.org/cl/
4287047
Russ Cox [Tue, 15 Mar 2011 18:05:07 +0000 (14:05 -0400)]
remove unused labels
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/
4274052
Russ Cox [Tue, 15 Mar 2011 18:04:47 +0000 (14:04 -0400)]
gofmt: simpler walkDir
Swapping the goroutines lets them reuse the
communication completion on v instead of
needing a second channel (done).
R=gri
CC=golang-dev
https://golang.org/cl/
4287045
Russ Cox [Tue, 15 Mar 2011 17:51:24 +0000 (13:51 -0400)]
spec: disallow unused labels
Also change labelled examples to use gofmt formatting.
R=gri, r, jnml
CC=golang-dev
https://golang.org/cl/
4287046
Brad Fitzpatrick [Tue, 15 Mar 2011 17:13:25 +0000 (10:13 -0700)]
httptest: default the Recorder status code to 200 on a Write
This matches the real ResponseWriter behavior.
R=rsc
CC=golang-dev
https://golang.org/cl/
4291048
Brad Fitzpatrick [Tue, 15 Mar 2011 17:06:17 +0000 (10:06 -0700)]
openpgp: add PublicKey KeyId string accessors
R=agl, agl1
CC=golang-dev
https://golang.org/cl/
4297041
Rob Pike [Tue, 15 Mar 2011 17:02:44 +0000 (10:02 -0700)]
rpc: add buffering to the encode path.
This reduces the number of writes by 2 (1 client, 1 server) on each round trip.
A simple test shows 24% higher throughput.
R=rsc
CC=golang-dev
https://golang.org/cl/
4279057
Dave Cheney [Mon, 14 Mar 2011 21:12:37 +0000 (14:12 -0700)]
libmach: correct string comparison to revive 6cov on darwin
R=golang-dev, r, dsymonds, rsc1
CC=golang-dev
https://golang.org/cl/
4277046
Russ Cox [Mon, 14 Mar 2011 19:43:58 +0000 (15:43 -0400)]
5l: fix build
R=ken2
CC=golang-dev
https://golang.org/cl/
4279053
Russ Cox [Mon, 14 Mar 2011 17:22:34 +0000 (13:22 -0400)]
gc: include all dependencies in export metadata
This change records more metadata about what
influenced the creation of the object file.
Specifically, if a package imports, say, "fmt" but does not
need to describe any fmt types in its own export data,
that package's object file did not mention the dependency
on "fmt" before. Now it does.
Listing the import is purely informational.
It has no effect on which files are opened or consulted
when importing a package.
Import lines are marked indirect when they are needed
to explain the API but were not imported directly.
For example http imports crypto/tls and exports
a struct with a field of type tls.ConnectionState,
which contains an x509.Certificate. Since http does
not import x509 but needs to explain the x509.Certificate
type in its export data, the import of x509 is marked
as indirect. These import lines were always present;
marking them with the indirect comment makes clear
which were imported directly and which are incidental.
R=ken2
CC=golang-dev
https://golang.org/cl/
4295048
Robert Hencke [Mon, 14 Mar 2011 16:33:44 +0000 (12:33 -0400)]
build: remove duplicate dependency in Make.cmd
R=golang-dev, dfc, rsc1, rsc
CC=golang-dev
https://golang.org/cl/
4274048
Dave Cheney [Sun, 13 Mar 2011 03:35:41 +0000 (19:35 -0800)]
crypto/tls: fix compile error
Fixes #1555.
R=rsc, bradfitzgo
CC=golang-dev
https://golang.org/cl/
4284047
Brad Fitzpatrick [Sun, 13 Mar 2011 00:05:07 +0000 (16:05 -0800)]
ioutil: add NopCloser
R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/
4278044
Brad Fitzpatrick [Sat, 12 Mar 2011 17:58:53 +0000 (09:58 -0800)]
http: use Header.Del not empty Set(k, "")
Also don't serialize empty headers.
R=dsymonds, rsc
CC=golang-dev
https://golang.org/cl/
4275045
Rob Pike [Sat, 12 Mar 2011 02:18:59 +0000 (18:18 -0800)]
runtime/proc.c: which to that
R=iant, dho
CC=golang-dev
https://golang.org/cl/
4286044
Ian Lance Taylor [Sat, 12 Mar 2011 02:14:45 +0000 (18:14 -0800)]
runtime: reduce lock contention via wakeup on scheduler unlock.
R=rsc
CC=golang-dev
https://golang.org/cl/
4275043
Ian Lance Taylor [Sat, 12 Mar 2011 02:01:28 +0000 (18:01 -0800)]
net: don't loop to drain wakeup pipe.
The loop always makes an extra system call. It only makes a
difference if more than 100 goroutines started waiting for
something to happen on a network file descriptor since the
last time the pipe was drained, which is unlikely since we
will be woken up the first time a goroutine starts waiting.
If we don't drain the pipe this time, we'll be woken up again
right away and can drain again.
R=rsc
CC=golang-dev
https://golang.org/cl/
4275042
Rob Pike [Sat, 12 Mar 2011 00:24:09 +0000 (16:24 -0800)]
gob: use bufio on the decode to avoid a system call on each read.
Add a benchmark.
BenchmarkEndToEndPipe gives 14.3microseconds/op before,
13.1microseconds/op after, or about 76e3 round trips per second
through the kernel.
With a bytes buffer, and therefore no system calls for I/O, the
numbers go to 7.3microseconds/op, or about 137e3 round trips
per second.
R=rsc
CC=golang-dev
https://golang.org/cl/
4279045
Robert Griesemer [Sat, 12 Mar 2011 00:15:33 +0000 (16:15 -0800)]
gotype: clean handling of stdin, added tests
- removed uses of global variables
- minor cleanups
R=r
CC=golang-dev
https://golang.org/cl/
4277044
Robert Griesemer [Fri, 11 Mar 2011 22:46:36 +0000 (14:46 -0800)]
go/typechecker: fix build
R=rsc
CC=golang-dev
https://golang.org/cl/
4278043
Robert Griesemer [Fri, 11 Mar 2011 22:33:31 +0000 (14:33 -0800)]
go/parser: first constant in a constant declaration must have a value
R=r, rsc1
CC=golang-dev
https://golang.org/cl/
4291042
Russ Cox [Fri, 11 Mar 2011 20:09:32 +0000 (15:09 -0500)]
build: run gotest in misc/cgo/test
R=golang-dev, iant, r
CC=golang-dev
https://golang.org/cl/
4239079
Russ Cox [Fri, 11 Mar 2011 20:09:21 +0000 (15:09 -0500)]
runtime: split non-debugging malloc interface out of debug.go into mem.go
R=r, dsymonds
CC=golang-dev
https://golang.org/cl/
4273045
Russ Cox [Fri, 11 Mar 2011 19:47:44 +0000 (14:47 -0500)]
go code: replace closed(c) with x, ok := <-c
R=golang-dev, rog, bradfitzwork, r
CC=golang-dev
https://golang.org/cl/
4243072
Russ Cox [Fri, 11 Mar 2011 19:47:26 +0000 (14:47 -0500)]
gc, runtime: replace closed(c) with x, ok := <-c
R=ken2, ken3
CC=golang-dev
https://golang.org/cl/
4259064
Russ Cox [Fri, 11 Mar 2011 19:47:02 +0000 (14:47 -0500)]
spec: remove closed from language, replaced by x, ok = <-c
R=gri, r, r2
CC=golang-dev
https://golang.org/cl/
4249065
Brad Fitzpatrick [Fri, 11 Mar 2011 19:32:33 +0000 (11:32 -0800)]
http: rename interface Transport to RoundTripper
Transport.Do -> RoundTripper.RoundTrip
This makes way for a subsequent CL to export the
currently private RoundTripper implementation
as struct Transport.
R=rsc, r
CC=golang-dev
https://golang.org/cl/
4286043
Robert Griesemer [Fri, 11 Mar 2011 18:27:25 +0000 (10:27 -0800)]
gotype: commandline tool to typecheck go programs
First version. Handles scope analysis only at the
moment.
R=rsc, r, eds
CC=golang-dev
https://golang.org/cl/
4259065
Brad Fitzpatrick [Fri, 11 Mar 2011 17:54:31 +0000 (09:54 -0800)]
http: fix transport crash when request URL is nil
Fixes #1602
R=rsc, petar-m
CC=golang-dev
https://golang.org/cl/
4284043
Russ Cox [Fri, 11 Mar 2011 15:08:49 +0000 (10:08 -0500)]
gopack: omit time stamps
This makes it possible to build a package twice
and get the same bytes both times.
R=r, dsymonds, r2
CC=golang-dev
https://golang.org/cl/
4248077
Andrew Gerrand [Fri, 11 Mar 2011 07:04:18 +0000 (18:04 +1100)]
.hgtags: s/release/weekly/
.hgtags, release.html: tag current weekly as release.r56
R=r, rsc
CC=golang-dev
https://golang.org/cl/
4281041
Robert Griesemer [Fri, 11 Mar 2011 00:41:54 +0000 (16:41 -0800)]
io/ioutil: clean-up of ReadAll and ReadFile
Make ReadAll use the same mechanism as ReadFile.
R=r
CC=golang-dev
https://golang.org/cl/
4279041
Robert Griesemer [Fri, 11 Mar 2011 00:00:39 +0000 (16:00 -0800)]
go/ast: fix printing of maps
Print a newline after each map entry;
similar to the style used for slices
and structs.
R=r, r2
CC=golang-dev
https://golang.org/cl/
4274042
Robert Griesemer [Thu, 10 Mar 2011 20:54:33 +0000 (12:54 -0800)]
go/ast: ast.Print needs a file set to print position values nicely
Also removed a TODO (AST nodes have been restructured a while ago).
R=r
CC=golang-dev
https://golang.org/cl/
4245077
Robert Griesemer [Thu, 10 Mar 2011 20:54:18 +0000 (12:54 -0800)]
gofmt: remove -trace and -ast flags
Functionality was only present for
debuggging and now is available in
gocheck where is makes more sense.
R=rsc
CC=golang-dev
https://golang.org/cl/
4239078
Rob Pike [Thu, 10 Mar 2011 20:42:31 +0000 (12:42 -0800)]
flag: visit the flags in sorted order, for better messages.
Fixes #1601.
R=rsc
CC=golang-dev
https://golang.org/cl/
4249070
Brad Fitzpatrick [Thu, 10 Mar 2011 18:19:11 +0000 (10:19 -0800)]
http: run tests even with DISABLE_NET_TESTS=1
All tests are now localhost only.
R=rsc
CC=golang-dev
https://golang.org/cl/
4271042
Brad Fitzpatrick [Thu, 10 Mar 2011 16:46:57 +0000 (08:46 -0800)]
http: don't hit external network in client_test.go
More reliable.
R=rsc
CC=golang-dev
https://golang.org/cl/
4249068
Brad Fitzpatrick [Thu, 10 Mar 2011 16:17:22 +0000 (08:17 -0800)]
http: move RemoteAddr & UsingTLS from ResponseWriter to Request
ResponseWriter.RemoteAddr() string -> Request.RemoteAddr string
ResponseWriter.UsingTLS() bool -> Request.TLS *tls.ConnectionState
R=rsc, bradfitzwork
CC=gburd, golang-dev
https://golang.org/cl/
4248075
Adam Langley [Thu, 10 Mar 2011 15:36:04 +0000 (10:36 -0500)]
crypto/openpgp: s/serialise/serialize/
(No code changes, Americanization only.)
R=rsc, bradfitzwork
CC=golang-dev
https://golang.org/cl/
4250075
Brad Fitzpatrick [Thu, 10 Mar 2011 15:22:53 +0000 (07:22 -0800)]
tls: move PeerCertificates to ConnectionState
R=agl, agl1
CC=golang-dev, rsc
https://golang.org/cl/
4248078
Adam Langley [Thu, 10 Mar 2011 15:14:31 +0000 (10:14 -0500)]
crypto/openpgp: bug fixes and fix misnamed function.
R=rsc, bradfitzwork
CC=golang-dev
https://golang.org/cl/
4244066
Adam Langley [Thu, 10 Mar 2011 15:04:06 +0000 (10:04 -0500)]
crypto/elliptic: add the N value of each curve.
R=rsc
CC=golang-dev
https://golang.org/cl/
4240104
Adam Langley [Thu, 10 Mar 2011 14:42:34 +0000 (09:42 -0500)]
crypto/ecdsa: add package.
R=rsc, cw
CC=golang-dev
https://golang.org/cl/
4253073
Rob Pike [Thu, 10 Mar 2011 01:30:27 +0000 (17:30 -0800)]
gob: turn two panics into errors because they can be triggered
by bogus data, or are in any case recoverable.
Fixes #1598.
R=rsc
CC=golang-dev
https://golang.org/cl/
4240101
Rob Pike [Thu, 10 Mar 2011 00:53:32 +0000 (16:53 -0800)]
fmt: heaven forfend we export EOF = -1
R=adg
CC=golang-dev
https://golang.org/cl/
4248076
Rob Pike [Thu, 10 Mar 2011 00:47:40 +0000 (16:47 -0800)]
Effective Go: some small cleanups.
Add discussion of getters.
Add example using a map as a set.
R=golang-dev, gri, adg, iant
CC=golang-dev
https://golang.org/cl/
4240100
Ian Lance Taylor [Wed, 9 Mar 2011 21:15:46 +0000 (13:15 -0800)]
syslog: split Unix domain support from network support.
This is to make it easier to support Solaris syslog. On
Solaris syslog messages are sent via STREAMS using putmsg to
/dev/conslog. The putmsg call uses a a control buffer of type
log_cdtl and a data buffer which is the message, and it is in
general a big mess. This CL just splits out the Unix domain
support so that Solaris can use a different mechanism. I do
not propose to implement the Solaris support today. This
split will make it possible for gccgo to just call the libc
function for now.
R=r, rsc
CC=golang-dev
https://golang.org/cl/
4261061
Brad Fitzpatrick [Wed, 9 Mar 2011 18:24:50 +0000 (10:24 -0800)]
http: add Flusher type; remove Flush from ResponseWriter
The Flush functionality wasn't removed, but now you have
to test if your ResponseWriter is also a Flusher:
func ServeHTTP(rw http.ResponseWriter, req *http.Request) {
if f, ok := rw.(http.Flusher); ok {
f.Flush()
}
}
R=rsc, bradfitzwork
CC=gburd, golang-dev
https://golang.org/cl/
4239077
Rob Pike [Wed, 9 Mar 2011 18:02:17 +0000 (10:02 -0800)]
rpc: delete unused field from InvalidRequest struct.
Was a mysterious holdover from an attempt to fix a problem
long-resolved, I think.
R=rsc, r2
CC=golang-dev
https://golang.org/cl/
4243066
Roger Peppe [Wed, 9 Mar 2011 18:01:47 +0000 (10:01 -0800)]
fmt: make ScanState.Token more general.
When writing custom scanners, I found that
Token itself was rarely useful, as I did not always
want to stop at white space. This change makes
it possible to stop at any class of characters
while reusing the buffer within State.
(also fix a bug in Token)
R=r, r2
CC=golang-dev
https://golang.org/cl/
4243055
Brad Fitzpatrick [Wed, 9 Mar 2011 17:41:01 +0000 (09:41 -0800)]
http: change ResponseWriter.SetHeader(k,v) to Header() accessor
Caller code needs to change:
rw.SetHeader("Content-Type", "text/plain")
to:
rw.Header().Set("Content-Type", "text/plain")
This now permits returning multiple headers
with the same name using Add:
rw.Header().Add("Set-Cookie", "..")
rw.Header().Add("Set-Cookie", "..")
This patch also fixes serialization of headers, removing newline characters.
Fixes #488
Fixes #914
R=rsc
CC=gburd, golang-dev
https://golang.org/cl/
4239076
Lorenzo Stoakes [Wed, 9 Mar 2011 16:35:18 +0000 (08:35 -0800)]
gc: fix comments in go.h
Trivial fix to '// n' comments against etype enum in go.h, as these have
got out of sync.
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/
4240097
Russ Cox [Wed, 9 Mar 2011 16:18:29 +0000 (11:18 -0500)]
ld: preserve symbol sizes during data layout
Fixes the broken linux/amd64 build.
The symbol table, itself a symbol, was having
its size rounded up to the nearest word boundary.
If the rounding add >7 zero bytes then it confused
the debug/gosym symbol table parser. So you've
got a 1/8 chance to hit the bug on an amd64 system.
Just started in the recent change because I fixed
the rounding to round to word boundary instead
of to 4-byte boundary.
R=r
CC=golang-dev
https://golang.org/cl/
4241056
David Anderson [Wed, 9 Mar 2011 13:58:47 +0000 (05:58 -0800)]
syscall: implement Mount and Unmount for linux.
Note that, while the final argument of mount(2) is a void*, in
practice all filesystem implementations treat it as a string
of comma-separated mount options.
R=bradfitzgo, bradfitzwork
CC=golang-dev
https://golang.org/cl/
4247070