- 19 Apr, 2012 5 commits
-
-
Shenghou Ma authored
Fixes #3530. R=golang-dev, rsc, bradfitz CC=golang-dev https://golang.org/cl/6032052
-
Brad Fitzpatrick authored
R=golang-dev, kevlar CC=golang-dev https://golang.org/cl/6075045
-
Brad Fitzpatrick authored
R=golang-dev, kevlar CC=golang-dev https://golang.org/cl/6075044
-
Andrew Balholm authored
This method will allow us to be explicit about what we're doing when we insert an implied token, and avoid repeating the logic involved in multiple places. R=nigeltao CC=golang-dev https://golang.org/cl/6060048
-
Benny Siegert authored
Fixes #3474. R=nigeltao CC=golang-dev https://golang.org/cl/6048050
-
- 18 Apr, 2012 5 commits
-
-
Colby Ranger authored
When FlushInterval is specified on ReverseProxy, the ResponseWriter is wrapped with a maxLatencyWriter that periodically flushes in a goroutine. That goroutine was not being cleaned up at the end of the request. This resulted in a panic when Flush() was being called on a ResponseWriter that was closed. The code was updated to always send the done message to the flushLoop() goroutine after copying the body. Futhermore, the code was refactored to allow the test to verify the maxLatencyWriter behavior. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/6033043
-
Adam Langley authored
Previously we capped lengths at 2**24 rather than 2**31. R=golang-dev, r, r CC=golang-dev https://golang.org/cl/6050050
-
Andrew Balholm authored
Add a case to ignore doctype tokens. Clean up the flow of control to more clearly match the spec. Pass one more test. R=nigeltao CC=golang-dev https://golang.org/cl/6062047
-
Andrew Balholm authored
Add case for doctype tokens (which are ignored). This CL does not change the status of any tests. R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/6061047
-
Brad Fitzpatrick authored
Don't require the home directory to exist. Just check that it returns something. Fixes #3531 R=golang-dev, adg CC=golang-dev https://golang.org/cl/6056045
-
- 17 Apr, 2012 7 commits
-
-
Dave Cheney authored
Fixes #3534. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6035054
-
Anthony Martin authored
Docstrings were not being set for the wrapper functions returned by the hgcommand decorator. R=golang-dev, minux.ma, rsc CC=golang-dev https://golang.org/cl/6059043
-
Andrew Balholm authored
Currently, the html package only runs a limited subset of the tests in the testdata directory. This tends to limit development of the parser to fixing the bug that causes the first failing test. This CL gives it the ability to run all the tests and produce a log showing the status of each test. (It does it when tests are run with 'go test --update-logs') The status is listed as PASS, FAIL, or PARSE (PARSE means that parsing produced the correct tree, but rendering and re-parsing does not produce the same tree). When 'go test' is run without --update-logs, it runs the tests marked 'PASS' in the logs (and the parsing portion of the tests marked 'PARSE'). Thus it will fail if there has been a regression since the last time the logs were updated. My goal for this CL is to allow develoment of the html package to be less test-driven, while still having the advantages of regression tests. In other words, one can work on any portion of the parser and quickly see whether he is breaking things or improving them. Current statistics of the tests: $ grep ^PASS *.log|wc -l 1017 $ grep ^PARSE *.log|wc -l 46 $ grep ^FAIL *.log|wc -l 181 R=nigeltao CC=golang-dev https://golang.org/cl/6031049
-
David Symonds authored
R=golang-dev, r, r CC=golang-dev https://golang.org/cl/6051044
-
Anthony Martin authored
R=golang-dev, bradfitz, akumar CC=golang-dev https://golang.org/cl/5629054
-
Anthony Martin authored
R=golang-dev, bradfitz, akumar CC=golang-dev https://golang.org/cl/6017043
-
Akshat Kumar authored
This change comes from CL 5536043, created by Andrey Mirtchovski. His description follows: "The plan9 exec child handler does not manage dup-ed fds from the parent correctly: when a dup-ed file descriptor appears in the child's fd list it is closed when first encountered and then subsequent attempt to dup it later in Pass 2 fails, resulting in 'fork/exec: fd out of range or not open'." R=golang-dev, rminnich, ality CC=golang-dev, mirtchovski, rsc https://golang.org/cl/6009046
-
- 16 Apr, 2012 4 commits
-
-
Brad Fitzpatrick authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/6037052
-
Shenghou Ma authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/5989045
-
Joel Sing authored
Update runtime defs for openbsd. Add struct __tfork, which will be needed by an upcoming change. R=golang-dev, adg CC=golang-dev https://golang.org/cl/6007050
-
Robert Hencke authored
Fixes #3487. R=golang-dev, r CC=golang-dev https://golang.org/cl/6011050
-
- 15 Apr, 2012 1 commit
-
-
Shenghou Ma authored
Fixes #3529. R=golang-dev, r CC=golang-dev https://golang.org/cl/6037046
-
- 14 Apr, 2012 2 commits
-
-
Dave Cheney authored
Fixes #3495. I adapted fmt.TestCountMallocs to fix the existing tests. As the resulting tests did not appear to belong to either itoa or ftoa I moved them into their own file. R=bradfitz, fullung CC=golang-dev https://golang.org/cl/5985072
-
Andrew Gerrand authored
R=r CC=golang-dev https://golang.org/cl/6031046
-
- 13 Apr, 2012 3 commits
-
-
Rémy Oudompheng authored
Also enables turning /= 2 in a right shift. Part of issue 2230. R=rsc CC=golang-dev, remy https://golang.org/cl/6012049
-
Jongmin Kim authored
R=golang-dev, r CC=golang-dev, gri https://golang.org/cl/6010051
-
Gustavo Niemeyer authored
R=golang-dev, remyoudompheng, dsymonds, gustavo, dchest, r, rsc CC=golang-dev https://golang.org/cl/5985059
-
- 12 Apr, 2012 6 commits
-
-
Rob Pike authored
The buffer had 64 bytes but needs one more for the sign. Fixes #3510. R=golang-dev, dave, dsymonds CC=golang-dev https://golang.org/cl/6011057
-
Adam Langley authored
When SNI based certificate selection is enabled, we previously used the default private key even if we selected a non-default certificate. Fixes #3367. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5987058
-
Adam Langley authored
Fixes #3502. R=bradfitz CC=golang-dev https://golang.org/cl/6011046
-
Dmitriy Vyukov authored
benchmark old ns/op new ns/op delta garbage.BenchmarkParser 4370050250 3779668750 -13.51% garbage.BenchmarkParser-2 3713087000 3628771500 -2.27% garbage.BenchmarkParser-4 3519755250 3406349750 -3.22% garbage.BenchmarkParser-8 3386627750 3319144000 -1.99% garbage.BenchmarkTree 493585529 408102411 -17.32% garbage.BenchmarkTree-2 500487176 402285176 -19.62% garbage.BenchmarkTree-4 473238882 361484058 -23.61% garbage.BenchmarkTree-8 486977823 368334823 -24.36% garbage.BenchmarkTree2 31446600 31203200 -0.77% garbage.BenchmarkTree2-2 21469000 21077900 -1.82% garbage.BenchmarkTree2-4 11007600 10899100 -0.99% garbage.BenchmarkTree2-8 7692400 7032600 -8.58% garbage.BenchmarkParserPause 241863263 163249450 -32.50% garbage.BenchmarkParserPause-2 120135418 112981575 -5.95% garbage.BenchmarkParserPause-4 83411552 64580700 -22.58% garbage.BenchmarkParserPause-8 51870697 42207244 -18.63% garbage.BenchmarkTreePause 20940474 13147011 -37.22% garbage.BenchmarkTreePause-2 20115124 11146715 -44.59% garbage.BenchmarkTreePause-4 17217584 7486327 -56.52% garbage.BenchmarkTreePause-8 18258845 7400871 -59.47% garbage.BenchmarkTree2Pause 174067190 172674190 -0.80% garbage.BenchmarkTree2Pause-2 131175809 130615761 -0.43% garbage.BenchmarkTree2Pause-4 95406666 93972047 -1.50% garbage.BenchmarkTree2Pause-8 86056095 85334952 -0.84% garbage.BenchmarkParserLastPause 329932000 324790000 -1.56% garbage.BenchmarkParserLastPause-2 209383000 210456000 +0.51% garbage.BenchmarkParserLastPause-4 113981000 112921000 -0.93% garbage.BenchmarkParserLastPause-8 77967000 76625000 -1.72% garbage.BenchmarkTreeLastPause 29752000 18444000 -38.01% garbage.BenchmarkTreeLastPause-2 24274000 14766000 -39.17% garbage.BenchmarkTreeLastPause-4 19565000 8726000 -55.40% garbage.BenchmarkTreeLastPause-8 21956000 10530000 -52.04% garbage.BenchmarkTree2LastPause 314411000 311945000 -0.78% garbage.BenchmarkTree2LastPause-2 214641000 210836000 -1.77% garbage.BenchmarkTree2LastPause-4 110024000 108943000 -0.98% garbage.BenchmarkTree2LastPause-8 76873000 70263000 -8.60% R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5991049
-
Dmitriy Vyukov authored
This is factored out part of the: https://golang.org/cl/5279048/ (parallel GC) R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5993043
-
Rob Pike authored
It's a common error to reference unexported field names in templates, especially for newcomers. This catches the error at parse time rather than execute time so the rare few who check errors will notice right away. These were always an error, so the net behavior is unchanged. Should break no existing code, just identify the error earlier. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/6009048
-
- 11 Apr, 2012 7 commits
-
-
David Symonds authored
adg removed some now-unwanted fields in Package a while ago, but there are still datastore entities with those fields, so we must explicitly check for ErrFieldMismatch and ignore it. R=golang-dev, rsc CC=adg, golang-dev https://golang.org/cl/6007043
-
Nigel Tao authored
below do not support '. This makes package html consistent with package text/template's HTMLEscape function. Fixes #3489. R=rsc, mikesamuel, dsymonds CC=golang-dev https://golang.org/cl/5992071
-
Adam Langley authored
The least common multiple is not totient/gcd. R=remyoudompheng CC=golang-dev https://golang.org/cl/5990045
-
Adam Langley authored
crypto/tls is tested, in part, by replaying recorded TLS connections and checking that the bytes sent by the Go code haven't changed. Previously we used GnuTLS's debug output and extracted the bytes of the TLS connection using a Python script. That wasn't great, and I think GnuTLS removed that level of debugging in a more current release. This change records the connection with Go code and adds a test for ECDHE-AES clients generating using this method. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/5988048
-
Marcel van Lohuizen authored
For completeness, we also expose the Canonical Combining Class of a rune. This does not increase the data size. R=r CC=golang-dev https://golang.org/cl/5931043
-
Dave Cheney authored
2011 Mac Mini, Core i5 @ 2.3Ghz BenchmarkConvT2E 50000000 40.4 ns/op BenchmarkConvT2EBig 20000000 107 ns/op BenchmarkConvT2I 100000000 28.9 ns/op BenchmarkConvI2E 500000000 5.93 ns/op BenchmarkConvI2I 100000000 19.0 ns/op BenchmarkAssertE2T 100000000 14.1 ns/op BenchmarkAssertE2TBig 100000000 17.8 ns/op BenchmarkAssertE2I 100000000 21.3 ns/op BenchmarkAssertI2T 100000000 14.3 ns/op BenchmarkAssertI2I 100000000 20.8 ns/op BenchmarkAssertI2E 500000000 5.58 ns/op Pandaboard, 2 x Omap4 @ 1.2Ghz BenchmarkConvT2E 10000000 215 ns/op BenchmarkConvT2EBig 1000000 3697 ns/op BenchmarkConvT2I 5000000 666 ns/op BenchmarkConvI2E 50000000 42.4 ns/op BenchmarkConvI2I 5000000 489 ns/op BenchmarkAssertE2T 20000000 90.0 ns/op BenchmarkAssertE2TBig 20000000 91.6 ns/op BenchmarkAssertE2I 5000000 515 ns/op BenchmarkAssertI2T 20000000 124 ns/op BenchmarkAssertI2I 5000000 517 ns/op BenchmarkAssertI2E 50000000 47.2 ns/op BenchmarkAssertE2E 50000000 42.7 ns/op R=minux.ma, rsc, fullung, bsiegert, dsymonds CC=golang-dev https://golang.org/cl/5777048
-
Joel Sing authored
Update the threxit and thrsleep syscalls to match the ABI of the OpenBSD 5.1 kernel. These changes are backwards compatible with older kernels. Fixes #3311. R=golang-dev, rsc, devon.odell CC=golang-dev https://golang.org/cl/5777079
-