Alex Brainman
913c8d7397
syscall: StartProcess fixes for windows
...
- StartProcess will work with relative (to attr.Dir, not
current directory) executable filenames
- StartProcess will only work if executable filename points
to the real file, it will not search for executable in the
$PATH list and others (see CreateProcess manual for details)
- StartProcess argv strings can contain any characters
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4306041
2011-03-24 11:20:28 +11:00
Andrew Gerrand
eccf31b744
doc: update contrib.html to be more enticing
...
doc: refer to golang-dev instead of -nuts in contribute.html
R=r, rsc
CC=golang-dev
https://golang.org/cl/4309043
2011-03-24 11:06:02 +11:00
Russ Cox
543acc97f9
testing: add -test.cpuprofile flag
...
R=r
CC=golang-dev
https://golang.org/cl/4272066
2011-03-23 18:17:14 -04:00
Luuk van Dijk
14b9032f84
5l/6l/8l: undo spadj cleanup at ARET for following instructions in the same stackframe.
...
5l was already correct, clarified comment and added diags for unmaintained code.
R=rsc
CC=golang-dev
https://golang.org/cl/4277070
2011-03-23 23:11:29 +01:00
Brad Fitzpatrick
9d3b39986c
http: don't chunk 304 responses
...
rsc's earlier fix, plus tests.
R=rsc
CC=golang-dev
https://golang.org/cl/4285062
2011-03-23 14:29:26 -07:00
Brad Fitzpatrick
054a0c338f
gotest: fix gofmt issue in generated _testmain.go
...
R=rsc, r
CC=golang-dev
https://golang.org/cl/4287074
2011-03-23 14:23:05 -07:00
Albert Strasheim
c6810e76ed
syscall: GetsockoptInt.
...
R=rsc, iant
CC=golang-dev
https://golang.org/cl/4271060
2011-03-23 14:33:48 -04:00
Russ Cox
f2483c74f6
gofmt: add profiling flag
...
R=gri
CC=golang-dev
https://golang.org/cl/4295062
2011-03-23 14:28:38 -04:00
Russ Cox
b47ec598b7
runtime/pprof: cpu profiling support
...
R=r, bradfitzgo, r2
CC=golang-dev
https://golang.org/cl/4313041
2011-03-23 13:54:31 -04:00
Brad Fitzpatrick
059c07cab0
http: export Transport, add keep-alive support
...
This patch adds a connection cache and keep-alive
support to Transport, which is used by the
HTTP client.
It's also structured such that it's easy to add
HTTP pipelining in the future.
R=rsc, petar-m, bradfitzwork, r
CC=golang-dev
https://golang.org/cl/4272045
2011-03-23 10:38:18 -07:00
Russ Cox
538f63453d
CONTRIBUTORS: John DeNero, Sameer Ajmani (Google CLA)
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4274079
2011-03-23 13:33:45 -04:00
Russ Cox
c19b373c8a
runtime: cpu profiling support
...
R=r
CC=golang-dev
https://golang.org/cl/4306043
2011-03-23 11:43:37 -04:00
Russ Cox
f9fc1ddf75
runtime: fix print - no %v in C
...
R=r
CC=golang-dev
https://golang.org/cl/4280061
2011-03-23 11:34:03 -04:00
Russ Cox
fba0606220
godefs: handle volatile
...
R=iant
CC=golang-dev
https://golang.org/cl/4291063
2011-03-23 11:33:53 -04:00
Russ Cox
8dee872963
runtime: os-specific types and code for setitimer
...
R=r
CC=golang-dev
https://golang.org/cl/4273097
2011-03-23 11:31:42 -04:00
Russ Cox
ccdbb8a6c2
runtime: more stack split fixes
...
Found by stkcheck after 6l, 8l bug fixes Luuk is about to submit.
R=lvd
CC=golang-dev
https://golang.org/cl/4306047
2011-03-23 11:28:24 -04:00
Anthony Starks
aa798d26c4
misc/bbedit: remove closed keyword
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4284058
2011-03-23 16:29:40 +11:00
David Symonds
aad62bf409
misc/vim: remove 'closed' as a builtin function.
...
R=adg, r
CC=golang-dev
https://golang.org/cl/4285059
2011-03-23 14:26:28 +11:00
Andrew Gerrand
39ffd546bd
sync: fix example code
...
Fixes #1631 .
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4303046
2011-03-23 14:24:30 +11:00
Ken Thompson
a73817716a
chan: allocate a new chan with one
...
malloc rather than nelements + 1.
R=rob
CC=golang-dev
https://golang.org/cl/4291064
2011-03-22 18:41:17 -07:00
Andrew Gerrand
005fe41125
godoc: add -template flag to specify custom templates
...
R=gri, niemeyer, rsc1
CC=golang-dev
https://golang.org/cl/4291059
2011-03-23 09:44:23 +11:00
Robert Griesemer
76061f7240
go/printer: Revert API change of CL 4274075.
...
Revert changes to printer.Config. Pass in the
nodeSizes map trough an internal helper function.
R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/4309042
2011-03-22 14:14:26 -07:00
Ian Lance Taylor
bc0469da33
Make.pkg: Always define _CGO_CFLAGS and friends.
...
Submitting TBR to fix Darwin build.
TBR=rsc
CC=golang-dev
https://golang.org/cl/4273096
2011-03-22 13:30:16 -07:00
Ian Lance Taylor
f91b37b962
Make.pkg: add support for SWIG, and add two SWIG examples
...
The SWIG examples are not yet built or tested by default.
R=r, rsc, iant2
CC=golang-dev
https://golang.org/cl/4287056
2011-03-22 13:05:51 -07:00
Rob Pike
f492bd7012
gob: fix up ugly formatting introduced by buggy (now fixed) gofmt.
...
R=rsc
CC=golang-dev
https://golang.org/cl/4281065
2011-03-22 11:52:41 -07:00
Rob Pike
544cf75904
gob: use pointers in bootstrapType so interfaces behave properly
...
and don't lead to a nil reflect.Type.
Fixes #1626 .
R=rsc
CC=golang-dev
https://golang.org/cl/4289062
2011-03-22 11:43:00 -07:00
Robert Griesemer
6684d5503a
go/printer, gofmt: simplify struct formatting and respect line breaks
...
Also: gofmt src misc
Fixes #1627 .
R=rsc
CC=golang-dev
https://golang.org/cl/4303042
2011-03-22 11:05:26 -07:00
Robert Hencke
169e6d40e3
test: enable tests using v, ok := <-ch syntax
...
R=rsc, r
CC=golang-dev
https://golang.org/cl/4290059
2011-03-22 10:32:43 -07:00
Russ Cox
1da382c871
gopprof: fix bug: do not rotate 180 degrees for large scrolls
...
R=r
CC=golang-dev
https://golang.org/cl/4273088
2011-03-22 02:04:59 -04:00
Andrew Gerrand
d4b19bdbed
ld: return > 0 exit code on unsafe import
...
R=rsc
CC=golang-dev
https://golang.org/cl/4273092
2011-03-22 15:00:21 +11:00
Robert Griesemer
4a33d440b8
go/printer, gofmt: avoid exponential layout algorithm
...
Use memoization to avoid repeated recomputation of nested
node sizes. Speeds up testdata/slow.input by several orders
of magnitude.
- added respective test case
- added timeout to test code
- deleted some unrelated unused code
Fixes #1628 .
R=rsc, r
CC=golang-dev
https://golang.org/cl/4274075
2011-03-21 17:15:59 -07:00
Brad Fitzpatrick
708013064f
cgi: extra failure debugging in host_test
...
Trying to track down why this fails on some
people's machines.
R=rsc, adg, dsymonds
CC=golang-dev
https://golang.org/cl/4304041
2011-03-21 14:43:38 -07:00
Rob Pike
45aeca4727
time: give a helpful message when we can't set the time zone for testing.
...
Fixes #1625 .
R=bradfitzgo, bradfitzwork, r2
CC=golang-dev
https://golang.org/cl/4295060
2011-03-21 13:48:31 -07:00
Rob Pike
319a8c45ac
syscall: rename from .sh to .pl, because these files are in Perl.
...
Also delete references to nacl.
R=rsc, r2
CC=golang-dev
https://golang.org/cl/4275060
2011-03-21 13:02:10 -07:00
Gustavo Niemeyer
2187f43e63
exec: document dir option for Run
...
R=golang-dev, bradfitzwork, rsc1, peterGo
CC=golang-dev
https://golang.org/cl/4271056
2011-03-21 11:25:00 -03:00
Gustavo Niemeyer
b889a9f941
build: reenable clean.bash without gomake
...
This change had already been made in revision 7371, but
was then undone with changes in revision 7606.
R=golang-dev, rsc1
CC=golang-dev
https://golang.org/cl/4239064
2011-03-21 00:27:50 -03:00
Andrew Gerrand
f91e677e12
goinstall: add -clean flag to docs
...
Fixes #1629 .
R=rsc
CC=golang-dev
https://golang.org/cl/4291057
2011-03-21 14:18:12 +11:00
Gustavo Niemeyer
126911dcd2
rpc: increase server_test timeout
...
These timeouts are breaking tests in very slow
systems every once in a while. I've noticed
problems when compiling the Ubuntu packages for
arm, specifically.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/4291058
2011-03-21 00:07:22 -03:00
Andrew Gerrand
338185dabb
path/filepath: fix TestEvalSymlinks when run under symlinked GOROOT
...
Fixes #1622 .
R=rsc, bradfitzgo
CC=golang-dev
https://golang.org/cl/4287063
2011-03-21 11:24:48 +11:00
Fazlul Shahriar
19aecba1d5
flag: document Nflag function
...
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/4279065
2011-03-20 11:45:43 -07:00
Russ Cox
893e02ab59
gopprof: update list of memory allocation functions
...
R=r, r2
CC=golang-dev
https://golang.org/cl/4275057
2011-03-18 20:55:21 -04:00
Russ Cox
eedfc445a3
build: diagnose Ubuntu's buggy copy of gold
...
R=iant, dsymonds
CC=golang-dev
https://golang.org/cl/4300041
2011-03-18 18:23:00 -04:00
Ian Lance Taylor
000d60ac6f
net: Use preallocated buffer for kqueue/kevent.
...
R=rsc
CC=golang-dev
https://golang.org/cl/4293056
2011-03-18 12:48:12 -07:00
Robert Griesemer
3be0921e73
cgo: fix index-out-of-bounds bug
...
R=rsc
CC=golang-dev
https://golang.org/cl/4284057
2011-03-18 12:38:38 -07:00
Rob Pike
3a6c0990a4
rpc: keep free lists of Request and Response structures.
...
Also in the common case avoid unnecessary buffering in
the channel.
Removes 13 allocations per round trip. Now at 86, down from
144 a week ago.
R=rsc, bradfitzgo, r2, rsc1
CC=golang-dev
https://golang.org/cl/4277060
2011-03-18 11:54:36 -07:00
Ian Lance Taylor
add8c8db60
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
2011-03-18 11:50:19 -07:00
Yasuhiro Matsumoto
8c4a2ae6f8
godoc: No need to use filepath.IsAbs()
...
R=golang-dev, brainman, gri
CC=golang-dev
https://golang.org/cl/4277062
2011-03-18 09:28:23 -07:00
Yasuhiro Matsumoto
b22e29d9bf
godoc: fix path problem for windows.
...
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/4299044
2011-03-17 22:27:30 -07:00
Ken Thompson
61c83b6407
sinit.c: recursion in sinit
...
fixes #1617
R=rsc
CC=golang-dev
https://golang.org/cl/4277059
2011-03-17 16:47:00 -07:00
Alex Brainman
bf91e827ac
filepath: do not run TestEvalSymlinks on Windows
...
R=golang-dev, rsc1
CC=adg, golang-dev
https://golang.org/cl/4274069
2011-03-18 10:19:19 +11:00