- 23 Jul, 2011 2 commits
-
-
Russ Cox authored
Fixes #2052. R=r CC=golang-dev https://golang.org/cl/4812053
-
Russ Cox authored
import cycle: "testing" imports "flag" imports "sort" imports "testing" R=golang-dev, r CC=golang-dev https://golang.org/cl/4811048
-
- 22 Jul, 2011 10 commits
-
-
Robert Griesemer authored
Don't report that a directory was found just because we found the list index where the directory would be if it were there... R=iant CC=golang-dev https://golang.org/cl/4812051
-
Robert Griesemer authored
Also: - Add parser.SpuriousError flag. If set, the parser reports all (including spurious) errors rather then at most one error per line. - Add -e flag to gofmt and gotype: If set, gofmt and gotype report all (including spurious) errors rather than at most one error per line. - Updated the respective documentation. Fixes #2088. R=rsc CC=golang-dev https://golang.org/cl/4803047
-
Rob Pike authored
- remove calls to print - make units compile again - make units.y closer to gofmt style R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4802052
-
Rob Pike authored
Clean up glitch created by flurry of editing. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4808052
-
Rob Pike authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4805048
-
Andrew Gerrand authored
R=r CC=golang-dev https://golang.org/cl/4812048
-
Russ Cox authored
Drops mallocrep1.go back to a reasonable amount of time. (154 -> 0.8 seconds on my Mac) Fixes #2085. R=golang-dev, dvyukov, r CC=golang-dev https://golang.org/cl/4811045
-
Rob Pike authored
Also make the Set.Parse methods variadic so you can parse static lists of files without loops. R=rsc, dsymonds, r CC=golang-dev https://golang.org/cl/4802051
-
David Symonds authored
R=gri, r, r, rsc CC=golang-dev https://golang.org/cl/4794047
-
Rob Pike authored
This is already the behavior for pipelines producing values for if, with, and range. R=golang-dev, gri CC=golang-dev https://golang.org/cl/4808050
-
- 21 Jul, 2011 18 commits
-
-
Roger Peppe authored
R=r CC=golang-dev https://golang.org/cl/4807043
-
Robert Griesemer authored
R=mtj, r CC=golang-dev https://golang.org/cl/4814044
-
Michael T. Jones authored
Now handles standard precision specifications, standard interactions of redundant specifications (such as precision and zero-fill), handles the special case of precision specified but equal to zero, and generates the output without recursive calls to format/printf to be clearer and faster. R=gri, mtj, gri CC=golang-dev https://golang.org/cl/4703050
-
Russ Cox authored
R=golang-dev, bradfitz, gri CC=golang-dev https://golang.org/cl/4807044
-
Russ Cox authored
R=ken2 CC=golang-dev https://golang.org/cl/4794049
-
Dmitriy Vyukov authored
Make selectsend() accept pointer to the element, it makes it possible to make Scase fixed-size and allocate/free Select, all Scase's and all SudoG at once. As a consequence SudoG freelist die out. benchmark old,ns/op new,ns/op BenchmarkSelectUncontended 1080 558 BenchmarkSelectUncontended-2 675 264 BenchmarkSelectUncontended-4 459 205 BenchmarkSelectContended 1086 560 BenchmarkSelectContended-2 1775 1672 BenchmarkSelectContended-4 2668 2149 (on Intel Q6600, 4 cores, 2.4GHz) benchmark old ns/op new ns/op delta BenchmarkSelectUncontended 517.00 326.00 -36.94% BenchmarkSelectUncontended-2 281.00 166.00 -40.93% BenchmarkSelectUncontended-4 250.00 83.10 -66.76% BenchmarkSelectUncontended-8 107.00 47.40 -55.70% BenchmarkSelectUncontended-16 67.80 41.30 -39.09% BenchmarkSelectContended 513.00 325.00 -36.65% BenchmarkSelectContended-2 699.00 628.00 -10.16% BenchmarkSelectContended-4 1085.00 1092.00 +0.65% BenchmarkSelectContended-8 3253.00 2477.00 -23.85% BenchmarkSelectContended-16 5313.00 5116.00 -3.71% (on Intel E5620, 8 HT cores, 2.4 GHz) R=rsc, ken CC=golang-dev https://golang.org/cl/4811041
-
Russ Cox authored
ServeMux depends on having a URL in order to mux. It might be that the right fix is to have CONNECT handlers just not look at URL. ««« original CL description http: do not parse req.URL for CONNECT CONNECT's argument is not a URL. R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/4808044 »»» TBR=bradfitz CC=golang-dev https://golang.org/cl/4798046
-
Yasuhiro Matsumoto authored
CONNECT's argument is not a URL. R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/4808044
-
Dmitriy Vyukov authored
It makes it clear what benchmark is currently running. Especially useful in case of hangup or crash. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4816043
-
Dmitriy Vyukov authored
Use atomic.LoadUint32(&done) instead of atomic.AddInt32(&done, 0) on fast path. benchmark old ns/op new ns/op delta BenchmarkOnce 13.40 7.26 -45.82% BenchmarkOnce-2 22.90 4.04 -82.36% BenchmarkOnce-4 25.60 2.16 -91.56% BenchmarkOnce-8 25.80 1.38 -94.65% BenchmarkOnce-16 24.40 1.33 -94.55% (on HP Z600, 2 x Intel Xeon E5620, 8 HT cores, 2.4 GHz) R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4787041
-
Dmitriy Vyukov authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4809042
-
David Symonds authored
Something is broken, and investigation is underway. In the meantime, godoc is broken, so disable sniffing for now by reverting to the pre-sniffer state. R=r CC=golang-dev https://golang.org/cl/4809046
-
Gustavo Niemeyer authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/4794046
-
Michael T. Jones authored
The C-stdlib heritage of printf/fprintf/sprintf has two odd aspects for precisions of zero with integers. First, the zero can be specified in any of these ways, "%4.0d", "%.0d" and "%.d" which was not previously supported here. Secondly, the seemingly universal interpretation of precision for integers is that precision==0 and value==0 means print nothing at all. The code here now handles this for integers just as the code in big/int.c does the same for the Int type. New tests are added to fmt_test.go to verify these changes. R=r, r CC=golang-dev https://golang.org/cl/4717045
-
Rob Pike authored
This simplifies the API and makes it easier to make the template invocation statically secure, at the cost of some minor flexibility. R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/4794045
-
Nigel Tao authored
As $GOROOT/src/pkg/html/testdata/webkit/README says, we're pulling from $WEBKITROOT/LayoutTests/html5lib/resources. R=r CC=golang-dev https://golang.org/cl/4810043
-
Nigel Tao authored
This is the "adoption agency" algorithm. The test case input is "<a><p>X<a>Y</a>Z</p></a>". The correct parse is: | <html> | <head> | <body> | <a> | <p> | <a> | "X" | <a> | "Y" | "Z" R=gri CC=golang-dev https://golang.org/cl/4771042
-
Rob Pike authored
Fixes #2082. R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/4798042
-
- 20 Jul, 2011 10 commits
-
-
Robert Griesemer authored
Also: remove left-over println calls. R=bradfitz CC=golang-dev https://golang.org/cl/4807042
-
Andrew Balholm authored
Fix the TODO: unescape("¬it;") should be "¬it;" Also accept digits in entity names. R=nigeltao CC=golang-dev, rsc https://golang.org/cl/4781042
-
David Symonds authored
This follows draft-ietf-websec-mime-sniff-03 in its intent, though not its algorithmic specification. R=rsc CC=golang-dev https://golang.org/cl/4746042
-
Mike Solomon authored
Fixes #2084. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/4817041
-
Brad Fitzpatrick authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4818041
-
Brad Fitzpatrick authored
R=golang-dev, evan, rsc CC=golang-dev https://golang.org/cl/4802046
-
Dmitriy Vyukov authored
Remove complicated PRNG algorithm (argument is limited by uint16 and can't be <= 1). Do not require chansend/chanrecv selgen to be bumped with CAS. R=rsc, ken CC=golang-dev https://golang.org/cl/4816041
-
Dmitriy Vyukov authored
1. SudoG always contains a pointer to the element (thus no variable size, and less copying). 2. chansend/chanrecv allocate SudoG on the stack. 3. Copying of elements and gorotuine notifications are moved out of critical sections. benchmark old ns/op new ns/op delta BenchmarkSelectUncontended 515.00 514.00 -0.19% BenchmarkSelectUncontended-2 291.00 281.00 -3.44% BenchmarkSelectUncontended-4 213.00 189.00 -11.27% BenchmarkSelectUncontended-8 78.30 79.00 +0.89% BenchmarkSelectContended 518.00 514.00 -0.77% BenchmarkSelectContended-2 655.00 631.00 -3.66% BenchmarkSelectContended-4 1026.00 1051.00 +2.44% BenchmarkSelectContended-8 2026.00 2128.00 +5.03% BenchmarkSelectNonblock 175.00 173.00 -1.14% BenchmarkSelectNonblock-2 85.10 87.70 +3.06% BenchmarkSelectNonblock-4 60.10 43.30 -27.95% BenchmarkSelectNonblock-8 37.60 25.50 -32.18% BenchmarkChanUncontended 109.00 114.00 +4.59% BenchmarkChanUncontended-2 54.60 57.20 +4.76% BenchmarkChanUncontended-4 27.40 28.70 +4.74% BenchmarkChanUncontended-8 14.60 15.10 +3.42% BenchmarkChanContended 108.00 114.00 +5.56% BenchmarkChanContended-2 621.00 617.00 -0.64% BenchmarkChanContended-4 759.00 677.00 -10.80% BenchmarkChanContended-8 1635.00 1517.00 -7.22% BenchmarkChanSync 299.00 256.00 -14.38% BenchmarkChanSync-2 5055.00 4624.00 -8.53% BenchmarkChanSync-4 4998.00 4680.00 -6.36% BenchmarkChanSync-8 5019.00 4760.00 -5.16% BenchmarkChanProdCons0 316.00 274.00 -13.29% BenchmarkChanProdCons0-2 1280.00 617.00 -51.80% BenchmarkChanProdCons0-4 2433.00 1332.00 -45.25% BenchmarkChanProdCons0-8 3651.00 1934.00 -47.03% BenchmarkChanProdCons10 153.00 152.00 -0.65% BenchmarkChanProdCons10-2 626.00 581.00 -7.19% BenchmarkChanProdCons10-4 1440.00 1323.00 -8.12% BenchmarkChanProdCons10-8 2036.00 2017.00 -0.93% R=rsc, ken CC=golang-dev https://golang.org/cl/4790042
-
Gustavo Niemeyer authored
The dynamic ELF sections were pointing to the proper data, but that data was already owned by the rodata and text sections. Some ELF references explicitly prohibit multiple sections from owning the same data, and strip behaves accordingly. The data for these sections was moved out and their ranges are now owned by their respective sections. This change makes strip happy both with and without -s being provided at link time. A test was added in debug/elf to ensure there are no regressions on this area in the future. Fixes #1242. Fixes #2022. NOTE: Tested on Linux amd64/386/arm only. R=rsc CC=golang-dev https://golang.org/cl/4808043
-
Russ Cox authored
R=bradfitz CC=golang-dev https://golang.org/cl/4815041
-