aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2011-06-10weekly.2011-06-09weekly.2011-06-09Andrew Gerrand
R=golang-dev, r CC=golang-dev https://golang.org/cl/4601052
2011-06-10image: add Paletted.Set, and a basic test of the concrete image types.Nigel Tao
R=r CC=golang-dev https://golang.org/cl/4589045
2011-06-10sync/atomic: fix arm check64 bugAndrew Gerrand
R=r, rsc CC=golang-dev https://golang.org/cl/4571059
2011-06-09gopack: make unused page function a fatal errorDave Cheney
R=iant, rsc CC=golang-dev https://golang.org/cl/4601051
2011-06-09http: fix regression permitting io.Copy on HEAD responseBrad Fitzpatrick
With the ReadFrom change in the sendfile CL, it became possible to illegally send a response to a HEAD request if you did it via io.Copy. Fixes #1939 R=rsc CC=golang-dev https://golang.org/cl/4584049
2011-06-09gopack: remove warning from the use of mktempDave Cheney
gcc-4.6 considers mktemp to be racey R=golang-dev, rsc, iant CC=golang-dev https://golang.org/cl/4602050
2011-06-10mail: decode RFC 2047-encoded words, not phrases.David Symonds
R=rsc, r, bradfitz CC=golang-dev https://golang.org/cl/4590047
2011-06-095l: fix softfloat nitsRuss Cox
Need to load math.a so that sqrtGoC is available. Also was missing prototype. R=ken2 CC=golang-dev https://golang.org/cl/4517148
2011-06-09gc: compactframe breaks arm - fix buildRuss Cox
R=lvd CC=golang-dev https://golang.org/cl/4591063
2011-06-10gc: nitLuuk van Dijk
R=rsc CC=golang-dev https://golang.org/cl/4604041
2011-06-095l: delete dead codeRuss Cox
Thumb code and ARM pre-V4 code is unused, unmaintained, and almost certainly wrong by now. Every time I try to change 5l I have to sort out what's dead code and what's not. 30% of lines of code in this directory deleted. R=ken2 CC=golang-dev https://golang.org/cl/4601049
2011-06-10gc: compact stackframeLuuk van Dijk
After allocparams and walk, remove unused auto variables and re-layout the remaining in reverse alignment order. R=rsc CC=golang-dev https://golang.org/cl/4568068
2011-06-09math: add sqrt_arm.s and sqrtGoC.go as fallback to soft fp emulationFan Hongjian
5a: add SQRTF and SQRTD 5l: add ASQRTF and ASQRTD Use ARMv7 VFP VSQRT instruction to speed up math.Sqrt R=rsc, dave, m CC=golang-dev https://golang.org/cl/4551082
2011-06-09A+C: Fan Hongjian (individual CLA)Russ Cox
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4591059
2011-06-09runtime: improve memmoveQuan Yong Zhai
check memory overlap R=rsc, r, ken, edsrzf CC=golang-dev https://golang.org/cl/4602047
2011-06-09gc: nitsRuss Cox
R=ken2 CC=golang-dev https://golang.org/cl/4572052
2011-06-09AC: s/Jeffrey M Hodges/Jeff Hodges/Rob Pike
Formality rejected. R=jeff CC=golang-dev https://golang.org/cl/4591057
2011-06-09runtime: increase maximum number of windows callbacksAlex Brainman
Fixes #1912. R=rsc CC=golang-dev https://golang.org/cl/4591047
2011-06-09mail: decode "Q"-encoded mail addresses.David Symonds
Supports ISO-8859-1 and UTF-8. R=rsc, bradfitz CC=golang-dev https://golang.org/cl/4568064
2011-06-09compress/lzw: reduce decoder buffer size from 3*4096 to 2*4096.Nigel Tao
This happens to speed up the decoder benchmarks by 50% on my computer (GOARCH=amd64 GOOS=linux), but I don't have a good intuition as to why. For example, just adding an unused [4096]byte field to the decoder struct doesn't significantly change the numbers. Before: lzw.BenchmarkDecoder1e4 5000 488057 ns/op 20.49 MB/s lzw.BenchmarkDecoder1e5 500 4613638 ns/op 21.67 MB/s lzw.BenchmarkDecoder1e6 50 45672260 ns/op 21.90 MB/s lzw.BenchmarkEncoder1e4 5000 353563 ns/op 28.28 MB/s lzw.BenchmarkEncoder1e5 500 3431618 ns/op 29.14 MB/s lzw.BenchmarkEncoder1e6 50 34009640 ns/op 29.40 MB/s After: lzw.BenchmarkDecoder1e4 5000 339725 ns/op 29.44 MB/s lzw.BenchmarkDecoder1e5 500 3166894 ns/op 31.58 MB/s lzw.BenchmarkDecoder1e6 50 31317260 ns/op 31.93 MB/s lzw.BenchmarkEncoder1e4 5000 354909 ns/op 28.18 MB/s lzw.BenchmarkEncoder1e5 500 3432710 ns/op 29.13 MB/s lzw.BenchmarkEncoder1e6 50 34010500 ns/op 29.40 MB/s R=rsc, r CC=golang-dev https://golang.org/cl/4535123
2011-06-08http: fix handling of 0-lengthed http requestsBrad Fitzpatrick
Via Russ Ross' bug report on golang-nuts, it was not possible to send an HTTP request with a zero length body with either a Content-Length (it was stripped) or chunking (it wasn't set). This means Go couldn't upload 0-length objects to Amazon S3. (which aren't as silly as they might sound, as S3 objects can have key/values associated with them, set in the headers) Amazon further doesn't supported chunked uploads. (not Go's problem, but we should be able to let users set an explicit Content-Length, even if it's zero.) To fix the ambiguity of an explicit zero Content-Length and the Request struct's default zero value, users need to explicit set TransferEncoding to []string{"identity"} to force the Request.Write to include a Content-Length: 0. identity is in RFC 2616 but is ignored pretty much everywhere. We don't even then serialize it on the wire, since it's kinda useless, except as an internal sentinel value. The "identity" value is then documented, but most users can ignore that because NewRequest now sets that. And adds more tests. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4603041
2011-06-08http: change most map[string][]string types to new Values typeBrad Fitzpatrick
This replaces most the map[string][]string usage with a new Values type name, with the usual methods. It also changes client.PostForm to take a Values, rather than a map[string]string, closing a TODO in the code. R=rsc CC=golang-dev https://golang.org/cl/4532123
2011-06-08gofmt: update test script so that it passes againRobert Griesemer
(TODO: should replace this with a Go program, eventually) R=bradfitz CC=golang-dev https://golang.org/cl/4584047
2011-06-08big: removed some gratuitous +/-1'sRobert Griesemer
R=mtj, bradfitz CC=golang-dev https://golang.org/cl/4584046
2011-06-08go spec: handle a corner case of a special case for shifts...Robert Griesemer
- Added some additional examples. - 6g appears to implement this semantics already. Fixes #658. R=rsc, r, iant, ken CC=golang-dev https://golang.org/cl/4538119
2011-06-08ebnf: follow EBNF for EBNF faithfullyRobert Griesemer
Apply analogous changes in godoc/spec.go. Fixes #1829. R=nmessenger, r CC=golang-dev https://golang.org/cl/4528127
2011-06-08big: gobs for big ratsRobert Griesemer
Fixes #1926. R=r CC=golang-dev https://golang.org/cl/4550122
2011-06-08os: fix Getenv for Plan 9. Truncate the rightmost char if it is '\0'.Yuval Pavel Zholkover
R=mirtchovski, ality, taruti, rsc CC=golang-dev https://golang.org/cl/4386046
2011-06-07runtime: SysMap uses MAP_FIXED if needed on 64-bit LinuxJonathan Mark
This change was adapted from gccgo's libgo/runtime/mem.c at Ian Taylor's suggestion. It fixes all.bash failing with "address space conflict: map() =" on amd64 Linux with kernel version 2.6.32.8-grsec-2.1.14-modsign-xeon-64. With this change, SysMap will use MAP_FIXED to allocate its desired address space, after first calling mincore to check that there is nothing else mapped there. R=iant, dave, n13m3y3r, rsc CC=golang-dev https://golang.org/cl/4438091
2011-06-07A+C: Jonathan Mark (individual CLA)Ian Lance Taylor
R=adg, rsc CC=golang-dev https://golang.org/cl/4595042
2011-06-08mail: format addresseses correctly.David Symonds
Also remove an obsolete TODO while I'm here. R=r, rsc CC=golang-dev https://golang.org/cl/4588041
2011-06-08gc: alternative clang compatible abort.Dave Cheney
Tested on clang 2.9/amd64 R=rsc, jeff, r CC=golang-dev https://golang.org/cl/4517143
2011-06-07big.nat: Improved speed of nat-to-string conversionMichael T. Jones
Three optimizations: First, special-case power of two bases that partion a Word(), bases 2, 4, 16, and 256. These can be moved directly from internal Word() storage to the output without multiprecision operations. Next, same approach for the other power-of-two bases, 8, 32, 64, and 128. These don't fill a Word() evenly, so special handling is needed for those cases where input spans the high-bits of one Word and the low bis of the next one. Finally, implement the general case for others bases in 2 <= base <= 256 using superbases, the largest power of base representable in a Word(). For base ten, this is 9 digits and a superbase of 10^9 for 32-bit Words and 19 digits and 10^19 for 64-bit compiles. This way we do just 1/9th or 1/19th of the expensive multiprecision divisions, unpacking superdigits using fast native machine arithmetic. The resulting code runs 7x to 800x the speed of the previous approach, depending on the length of the number to be converted--longer is relatively faster. Also, extended the tests and benchmarks for string to nat (scan()) and nat to string (string()) functions. A further enhancement awaits the next CL to make general cases about 7x faster for long cases. R=gri CC=golang-dev https://golang.org/cl/4595041
2011-06-07C+A: add Michael T. Jones (Google, gmail account)Robert Griesemer
R=rsc, bradfitz CC=golang-dev https://golang.org/cl/4598041
2011-06-07exec: export the underlying *os.Process in CmdBrad Fitzpatrick
R=rsc CC=golang-dev https://golang.org/cl/4579044
2011-06-07net: fix bug in net.Interfaces: handle elastic sdl_data size correctlyMikio Hara
Fixes #1921. R=golang-dev, jeff CC=golang-dev https://golang.org/cl/4535120
2011-06-07gofix: fix diff regression from exec changeBrad Fitzpatrick
Also pass -u to diff to be consistent with gofmt. Fixes #1619 R=golang-dev, gri CC=golang-dev https://golang.org/cl/4591041
2011-06-07compress/lzw: do not use background goroutinesRuss Cox
Programs expect that Read and Write are synchronous. The background goroutines make the implementation a little easier, but they introduce asynchrony that trips up calling code. Remove them. R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/4548080
2011-06-07godefs: do not assume forward type references are enumsRobert Hencke
Fixes #1466. R=mikioh.mikioh, rsc CC=golang-dev https://golang.org/cl/4564043
2011-06-07ld: fix and simplify ELF symbol generationAnthony Martin
I started looking at this code because the nm in GNU binutils was ignoring the first symbol in the .symtab section. Apparently, the System V ABI reserves the first entry and requires all fields inside to be set to zero. The list of changes is as follows: · reserve the first symbol entry (as noted above) · fix the section indices for .data and .bss symbols · factor out common code for Elf32 and Elf64 · remove the special case for elfsymo in [568]l/asm.c:/^asmb · add the "etext" symbol in 6l · add static symbols R=rsc CC=golang-dev https://golang.org/cl/4524075
2011-06-07C+A: added Michael T. Jones (Google)Robert Griesemer
R=bradfitz CC=golang-dev https://golang.org/cl/4528126
2011-06-07gc/lex.c: fix formatting of #include statementCaine Tighe
R=rsc, gri CC=golang-dev https://golang.org/cl/4564048
2011-06-07gofmt: fix -d regression from exec changeBrad Fitzpatrick
Fixes #1916 R=golang-dev, gri CC=golang-dev https://golang.org/cl/4590041
2011-06-07strconv: change Quote to be Unicode-friendly,Rob Pike
add QuoteToASCII. The Quote and QuoteRune functions now let printable runes (as defined by unicode.IsPrint) through. When true 7-bit clean stuff is necessary, there are now two new functions: QuoteToASCII and QuoteRuneToASCII. Printf("%q") uses Quote. To get the old behavior, it will now be necessary to say Printf("%s", strconv.QuoteToASCII(s)) but that should rarely be necessary. R=golang-dev, gri, r CC=golang-dev https://golang.org/cl/4561061
2011-06-07image/gif: fix buglet in graphics extension.Rob Pike
need to ReadFull, not Read, to get extension data. R=nigeltao CC=golang-dev https://golang.org/cl/4576043
2011-06-07cgo: support non intel gcc machine flagsDave Cheney
R=adg CC=golang-dev https://golang.org/cl/4528124
2011-06-06html: improve attribute parsing, note package statusBrad Fitzpatrick
Fixes #1890 R=nigeltao CC=golang-dev https://golang.org/cl/4528102
2011-06-06template: rearrange the code into separate files.Rob Pike
The single file was getting unwieldy. Also remove use of vector; a slice works fine - although it's an unusual one. R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/4576042
2011-06-06big: Rat always outputs the requested precision from FloatStringGraham Miller
Fixes #1922. R=golang-dev, gri CC=golang-dev https://golang.org/cl/4551098
2011-06-06crypto: reorg, cleanup and add function for generating CRLs.Adam Langley
This change moves a number of common PKIX structures into crypto/x509/pkix, from where x509, and ocsp can reference them, saving duplication. It also removes x509/crl and merges it into x509 and x509/pkix. x509 is changed to take advantage of the big.Int support that now exists in asn1. Because of this, the public/private key pair in http/httptest/server.go had to be updated because it was serialised with an old version of the code that didn't zero pad ASN.1 INTEGERs. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/4532115