Russ Cox
410927d1ad
gc: elide dead code
...
R=ken2
CC=golang-dev
https://golang.org/cl/2365044
2010-10-07 04:42:26 -04:00
Russ Cox
42c26b734c
gc: fix error for 1 <- "foo"
...
was
x.go:4: invalid operation: 1 <- "foo" (send to receive-only type int)
now
x.go:4: invalid operation: 1 <- "foo" (send to non-chan type int)
R=ken2
CC=golang-dev
https://golang.org/cl/2330042
2010-10-07 03:33:42 -04:00
Graham Miller
62355959c6
runtime: faster strequal, memequal
...
Fixes #1161 .
R=rsc, cwvh
CC=golang-dev
https://golang.org/cl/2317044
2010-10-07 03:13:24 -04:00
Russ Cox
4ed132826f
A+C: Graham Miller (individual CLA)
...
R=gmiller, adg
CC=golang-dev
https://golang.org/cl/2362043
2010-10-07 03:07:35 -04:00
Russ Cox
49bff2da22
codereview: disallow submit of *.[chys] files indented with spaces
...
R=r
CC=golang-dev
https://golang.org/cl/2383041
2010-10-06 18:10:23 -04:00
Rob Pike
4138fdd850
playground.html: filesystem is not a word.
...
R=adg, rsc
CC=golang-dev
https://golang.org/cl/2370043
2010-10-06 23:56:13 +02:00
Russ Cox
a0a7768b21
net: comment pedantry
...
Fixes #1167 .
R=r, r2
CC=golang-dev
https://golang.org/cl/2290044
2010-10-06 11:54:53 -04:00
Russ Cox
8599a83727
runtime: correct iteration of large map values
...
The hash_next_and_deref was a dreg from a
previous large value scheme.
Fixes #1163 .
R=r, r2
CC=golang-dev
https://golang.org/cl/2369043
2010-10-06 11:54:41 -04:00
Russ Cox
335a318c27
build: disable archive/zip for nacl (fix build)
...
TBR=adg
CC=golang-dev
https://golang.org/cl/2290045
2010-10-06 11:25:40 -04:00
Russ Cox
01385b400d
gc: ... bug
...
Fixes #1165 .
R=ken2
CC=golang-dev
https://golang.org/cl/2339042
2010-10-06 11:12:30 -04:00
Russ Cox
30dd191171
gc: O(1) string comparison when lengths differ
...
R=ken2
CC=golang-dev
https://golang.org/cl/2331045
2010-10-06 09:53:12 -04:00
Russ Cox
30edda690f
ld: share asmlc
...
R=ken2
CC=golang-dev
https://golang.org/cl/2373043
2010-10-06 09:52:54 -04:00
Stephen Ma
8d130f5d2d
http: return the correct error if a header line is too long.
...
R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2372042
2010-10-06 22:04:18 +11:00
Mikio Hara
4e3c58cd62
net: fix comment
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2358041
2010-10-06 21:47:25 +11:00
Albert Strasheim
8b905489ab
syscall: add ucred structure for SCM_CREDENTIALS over UNIX sockets.
...
Working on issue 1101.
R=golang-dev, rsc, adg
CC=golang-dev
https://golang.org/cl/2338042
2010-10-06 21:32:31 +11:00
Andrew Gerrand
c276ce98c2
A+C: Albert Strasheim
...
R=golang-dev, r2
CC=golang-dev
https://golang.org/cl/2336042
2010-10-06 21:30:34 +11:00
Stephen Ma
5043f0a1ad
bufio: minor documentation fix.
...
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/2301045
2010-10-06 19:39:30 +11:00
Luuk van Dijk
454f03ff0b
6g: set kind to KindUnsafePointer where appropriate in reflect structures.
...
R=rsc, ken2, r
CC=golang-dev
https://golang.org/cl/2355043
2010-10-05 21:17:16 +02:00
Alex Brainman
4d4b74c7b3
websocket: enable tests on windows
...
Fixes #1110 .
R=golang-dev, adg
CC=Joe Poirier, golang-dev
https://golang.org/cl/2367041
2010-10-05 11:02:15 +11:00
Rob Pike
f73f9ad4ad
fmt: allow %d on []byte
...
Fixes #1159 .
R=rsc, adg
CC=golang-dev
https://golang.org/cl/2305043
2010-10-04 11:57:48 +02:00
Alex Brainman
17fe2479bf
os: make tests work on windows
...
Fixes #1105 .
R=golang-dev, r
CC=Joe Poirier, golang-dev
https://golang.org/cl/2343043
2010-10-04 17:31:49 +11:00
Alex Brainman
1756b31bb9
add _testmain.go to .hgignore
...
R=rsc, r2
CC=golang-dev
https://golang.org/cl/2332042
2010-10-04 14:56:44 +11:00
Russ Cox
a3c682267f
gc: various bugs
...
Fixes #1016 .
Fixes #1152 .
Fixes #1153 .
R=ken2
CC=golang-dev
https://golang.org/cl/2344042
2010-10-03 11:50:44 -04:00
Russ Cox
f481afae53
Make.pkg: remove .so before installing new one
...
On Linux, overwriting an mmap'ed file causes
all the MAP_PRIVATE pages to get refreshed
with the new content, even ones that have been
modified by the process that did the mmap.
One specific instance of this is that after the
dynamic linker has relocated a page from a .so,
overwriting the .so will un-relocate it, making
the next use of one of the no-longer-relocated
addresses incorrect and probably crash the
program.
Linux must go out of its way to break programs
in this way: the pages have already been copied
on write, so they're not shared with the file system
cache, and it trashes them anyway. The manual
says the behavior when the file gets overwritten
is "undefined". Removing before copy avoids the
undefined behavior.
R=iant
CC=golang-dev, msolo
https://golang.org/cl/2333045
2010-10-01 16:02:18 -04:00
Russ Cox
d4e6df98f4
arm: enable 9 more package tests
...
R=ken2
CC=golang-dev
https://golang.org/cl/2345041
2010-10-01 00:18:07 -04:00
Andrew Gerrand
03babfc626
Use Errorf where appropriate.
...
R=r, r2
CC=golang-dev
https://golang.org/cl/2308043
2010-10-01 14:14:18 +10:00
Andrew Gerrand
558477eeb1
fmt: add Errorf helper function
...
This crops up in a lot of places.
It's just a one-liner, but doesn't add any dependancies.
Seems worth it.
R=r, r2
CC=golang-dev
https://golang.org/cl/2344041
2010-10-01 14:04:55 +10:00
Ken Thompson
57858b70fb
code gen error for
...
lv += f()
fixes asn1 and maybe more
R=rsc
CC=golang-dev
https://golang.org/cl/2341042
2010-09-30 18:02:38 -07:00
Russ Cox
52d619cfdf
gc: bug308
...
confused by using isddd for both ONAME and OCALL
Fixes #1136 .
R=ken2
CC=golang-dev
https://golang.org/cl/2314043
2010-09-30 15:05:01 -04:00
Russ Cox
779dfea487
gc: correct buffer size in sprint, add -L to show full paths
...
R=ken2
CC=golang-dev
https://golang.org/cl/2338041
2010-09-30 15:02:43 -04:00
Russ Cox
bee2d5b0ad
gc, spec, tests: no auto-indirect of pointer to interface value
...
Implies no embedding of pointer to interface value either.
R=gri, iant, ken2, r, r2
CC=golang-dev
https://golang.org/cl/2289041
2010-09-30 14:59:41 -04:00
Russ Cox
6117652d8d
libcgo: fix comment
...
R=r, r2
CC=golang-dev
https://golang.org/cl/2329042
2010-09-30 14:58:29 -04:00
Russ Cox
32b31342bd
fix arm build on darwin leopard
...
TBR=r
CC=golang-dev
https://golang.org/cl/2333043
2010-09-30 14:48:33 -04:00
Russ Cox
7389ab8d21
runtime: serialize mcache allocation
...
Fixes racy regex-dna-parallel crashes.
R=r, r2
CC=golang-dev
https://golang.org/cl/2308042
2010-09-30 14:09:19 -04:00
Andrew Gerrand
f6a217827a
tag release.2010-09-29
...
R=nigeltao, nigeltao_gnome
CC=golang-dev
https://golang.org/cl/2330041
2010-09-30 17:48:16 +10:00
Andrew Gerrand
ab5b4283f7
release.2010-09-29
...
R=golang-dev, nigeltao_gnome
CC=golang-dev
https://golang.org/cl/2329041
2010-09-30 17:33:07 +10:00
Andrew Gerrand
6b2c7ffbab
doc: add to and consolidate non-english doc references
...
R=r, r2
CC=golang-dev
https://golang.org/cl/2315042
2010-09-30 13:43:09 +10:00
Stephen Ma
ae5cb2c581
http: fix http handler signature changes previously missed
...
R=adg, rsc
CC=golang-dev
https://golang.org/cl/2303041
2010-09-30 13:22:28 +10:00
Stephen Ma
a2332a32b8
doc: update http handler usage for new signature
...
R=adg, r2
CC=golang-dev
https://golang.org/cl/2302041
2010-09-30 13:19:33 +10:00
David Symonds
763cb8ad11
6prof: more accurate usage message.
...
R=r, r2
CC=golang-dev
https://golang.org/cl/2323042
2010-09-29 20:17:18 -07:00
Russ Cox
cf74232260
build: disable archive/zip on arm
...
R=adg
TBR=adg
CC=golang-dev
https://golang.org/cl/2326041
2010-09-29 23:11:00 -04:00
Andrew Gerrand
a00b98ec3f
archive/zip: new package for reading ZIP files
...
R=rsc
CC=golang-dev
https://golang.org/cl/2125042
2010-09-30 11:59:46 +10:00
Andrew Gerrand
fdb9e68c4e
misc/dashboard/builder: remove build files after benchmarking
...
R=r
CC=golang-dev
https://golang.org/cl/2270041
2010-09-30 11:59:36 +10:00
Andrew Gerrand
5ec55c5134
doc: faq updates part one
...
R=r, r2
CC=golang-dev
https://golang.org/cl/2301041
2010-09-30 11:23:39 +10:00
Robert Griesemer
686490ce17
install.html: minor sentence fix
...
R=r, r2
CC=golang-dev
https://golang.org/cl/2312041
2010-09-29 12:34:24 -07:00
Russ Cox
e642503d6f
6l, 8l: fix -K implementation
...
R=ken2
CC=golang-dev
https://golang.org/cl/2313041
2010-09-29 15:10:14 -04:00
Rob Pike
1edfb4cc75
Effective Go: update for new http interface.
...
R=rsc, stephenm
CC=golang-dev
https://golang.org/cl/2310041
2010-09-29 11:12:52 -07:00
Andrew Gerrand
4164d60cc2
doc: consolidate FAQs into a single file, go_faq.html
...
An entirely mechanical change, with these exceptions:
- removed 'stub questions' that reference the other FAQs
- removed "Why doesn't Go run on Windows yet?" - out of date
I will follow this CL with another that updates many of the
answers to make them more current.
R=r
CC=golang-dev
https://golang.org/cl/2300041
2010-09-29 16:52:22 +10:00
Stephen Ma
fd9a5d22c6
http: revised http Handler interface
...
R=rsc
CC=golang-dev
https://golang.org/cl/1993043
2010-09-29 14:30:12 +10:00
Russ Cox
ffdb855be1
build: clear custom variables like GREP_OPTIONS
...
Fixes #946 .
R=r, r2
CC=golang-dev
https://golang.org/cl/2137048
2010-09-28 23:51:55 -04:00