- 12 Mar, 2013 16 commits
-
-
Russ Cox authored
If two fields have the same name but different explicit name spaces, treat as non-conflicting. This allows parsing common XML formats that have ns1:tag and ns2:tag in the same XML element. Fixes #4691. Allow setting the default name space for unadorned tags, by writing to Decoder.DefaultSpace. This allows turned the job of parsing common XML formats that have tag and ns2:tag in the same XML element into the first case by setting DefaultSpace="ns1". Fixes #3703. Use name space attributes when decoding. Attach name space to attributes when encoding. Could be done with fewer annotations, but semantically correct as is. Fixes #3526. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7227056
-
Adrian Nos authored
Fixes #5006. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7691045
-
Russ Cox authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/7526046
-
Dmitriy Vyukov authored
The issue was that scvg is assigned *after* the scavenger goroutine is started, so when the scavenger calls entersyscall() the g==scvg check can fail. Fixes #5025. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7629045
-
Dmitriy Vyukov authored
The problem is that there are lots of dead G's from previous tests, each dead G consumes 1 stack segment. Fixes #5034. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7749043
-
Dmitriy Vyukov authored
Update #5005. R=golang-dev, fullung, bradfitz CC=golang-dev https://golang.org/cl/7651045
-
Philip K. Warren authored
Adds a new reader to filter newlines, which fixes errors seen in the decoder chunking code. Found additional issues with whitespace handling after the first padding character. Fixes #4779. R=minux.ma, rsc, bradfitz CC=golang-dev https://golang.org/cl/7311069
-
Russ Cox authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/7592044
-
Russ Cox authored
The system call takes an int, but the kernel stores it in a uint16. At least one Linux system sets /proc/sys/net/core/somaxconn to 262144, which ends up being 0 in the uint16. Avoid being tricked. FreeBSD sources also store the backlog in a uint16. Assume the problem is systemic and fix it everywhere. Fixes #5030. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7480046
-
Russ Cox authored
Noticed while doing other XML investigations. R=golang-dev, r CC=golang-dev https://golang.org/cl/7550045
-
Russ Cox authored
The old code just assumed that the only thing you can embed is a struct. Not true. Fixes #3803. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7743043
-
Brad Fitzpatrick authored
This isn't as bad as it used to be, but add a bit more detail to close the issue. Fixes #3359 R=golang-dev, adg CC=golang-dev https://golang.org/cl/7606044
-
Nigel Tao authored
R=dsymonds, dave CC=golang-dev https://golang.org/cl/7568045
-
Dave Cheney authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7739043
-
Rob Pike authored
Also rename the go parser test to GoParse so it doesn't grab the globally useful Parse name. R=golang-dev, dave CC=golang-dev https://golang.org/cl/7732044
-
Nigel Tao authored
Edit encoding/base64's internals and tests to match encoding/base32. Properly handling line breaks in padding is left for another CL. R=dsymonds CC=golang-dev https://golang.org/cl/7693044
-
- 11 Mar, 2013 24 commits
-
-
Rob Pike authored
Mention the syntax is defined by the regexp/syntax package. Fixes #3953. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/7702044
-
Robert Griesemer authored
Fixes #4519. R=rsc CC=golang-dev https://golang.org/cl/7733044
-
Russ Cox authored
The copy of c++filt shipped on OS X is six years old, and in our case it does far more mangling than it does demangling. People on non-OS X systems will have a working nm --demangle, so this won't affect them. $ sw_vers ProductName: Mac OS X ProductVersion: 10.8.2 BuildVersion: 12C2034 $ c++filt --version GNU c++filt 070207 20070207 Copyright 2005 Free Software Foundation, Inc. This program is free software; you may redistribute it under the terms of the GNU General Public License. This program has absolutely no warranty. $ $ go tool nm -n revcomp | grep quoteWith 4f560 T strconv.quoteWith $ go tool nm -n revcomp | grep quoteWith | c++filt f560 T strconv.quoteWith $ $ nm -n revcomp | grep quoteWith 000000000004f560 t _strconv.quoteWith $ nm -n revcomp | grep quoteWith | c++filt 000000000004f560 unsigned short _strconv.quoteWith $ Fixes #4818. R=golang-dev, r, bradfitz CC=golang-dev https://golang.org/cl/7729043
-
Russ Cox authored
This is what pprof expects, or else it won't use the program. And if it doesn't use the program, it gets very bad results. Fixes #4818. R=golang-dev, r CC=golang-dev https://golang.org/cl/7728043
-
Rémy Oudompheng authored
The specification says "the two arguments must be of the same floating-point type." R=rsc, gri CC=golang-dev https://golang.org/cl/7671045
-
Brad Fitzpatrick authored
Take advantage of the new terminating statement rule. R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/7712044
-
Rob Pike authored
Fixes #5003. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7476047
-
Russ Cox authored
We added -I$GOROOT/pkg/$GOOS_$GOARCH in cmd/go (I think for use by cgo and swig, primarily) but didn't update cmd/dist. I was testing some other code and found that my changes built with cmd/go but failed during the initial bootstrap. Make them match again. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7707044
-
Robert Griesemer authored
Fixed package.txt and adjusted package.html to match structure (swapped if branches). Fixes #4861. R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/7714043
-
Robert Griesemer authored
For expressions where the result type is independent of the argument types (comparisons, conversions, rhs of shifts), set the final expression types for those subtrees early. This fixes several bugs where incorrect lhs shift operands where used (say in a comparison), but were not reported. Together with the changes listed below this CL fixes many type-checker bugs. Also: - better documented updateExprType - added larger comment to expr.go explaining the basic expression checking algorithm - use latest definition for indices and make arguments; use the same code to check both - use the same mechanism for cycle detection in constant expressions as for variables (new field Constant.visited) - more tests for complex and make builtins - many more and systematic tests for shifts; moved them into separate testfile - in the testing code, don't compare the expected error pattern against itself (the actual message was always ignored...) - fix affected error patterns in the test files - various cleanups along the way R=adonovan CC=golang-dev https://golang.org/cl/7432051
-
Russ Cox authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/7544044
-
Akshat Kumar authored
lib9: fix runcmd, removeall, and tempdir functions cmd/dist: Include run_plan9.c and tempdir_plan9.c from lib9 for build, and in general consider file names containing "plan9" for building. cmd/ld: provide function args for the new functions from lib9. R=rsc, rminnich, ality, bradfitz CC=golang-dev https://golang.org/cl/7666043
-
Rémy Oudompheng authored
Method calls on interfaces with large stored values will call the pointer receiver method which may be a wrapper over a method with value receiver. This is particularly inefficient for very small bodies. Inlining the wrapped method body saves a potentially expensive function call. benchmark old ns/op new ns/op delta BenchmarkSortString1K 802295 641387 -20.06% BenchmarkSortInt1K 359914 238234 -33.81% BenchmarkSortInt64K 35764226 22803078 -36.24% Fixes #4707. R=golang-dev, daniel.morsing, rsc CC=golang-dev https://golang.org/cl/7214044
-
Brad Fitzpatrick authored
R=golang-dev, daniel.morsing CC=golang-dev https://golang.org/cl/7722043
-
Rob Pike authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7624044
-
Rodrigo Moraes de Oliveira authored
This includes a simplified resolvePath function and tests for all normal and abnormal path resolution examples described in RFC 3986, sections 5.4.1 and 5.4.2 [1]. Some of those examples failed before (see http://play.golang.org/p/F0ApSaXniv). Also, parsing a reference "//foo" now works as expected. It was treated as an absolute path with very weird results (see http://play.golang.org/p/089b-_xoNe). During path resolution, all dot segments are removed as described by the RFC. A few existing tests had to be changed because they expected the wrong output. Fixes #4700. Fixes #4706. [1] http://tools.ietf.org/html/rfc3986#section-5.4.1 R=rsc, adg, bradfitz CC=golang-dev https://golang.org/cl/7203059
-
Russ Cox authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/7526045
-
Dmitriy Vyukov authored
Fixes #4987. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7713043
-
Brad Fitzpatrick authored
Fixes #5022 R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7712043
-
Brad Fitzpatrick authored
Ton of FreeBSD syscall constants. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7476046
-
Brad Fitzpatrick authored
Fixes #2735 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7470048
-
Albert Strasheim authored
Only clever enough to allow concurrent stress testing. R=mikioh.mikioh, rsc CC=golang-dev https://golang.org/cl/7703044
-
Russ Cox authored
R=golang-dev, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/7704043
-
Russ Cox authored
R=golang-dev, bradfitz, dvyukov CC=golang-dev https://golang.org/cl/7702043
-