- 06 Mar, 2013 16 commits
-
-
Russ Cox authored
TBR=golang-dev CC=golang-dev https://golang.org/cl/7539043
-
Russ Cox authored
Some IDS somewhere thinks "Go http package" is a virus. Make it something else for Go 1.1. Dumb but easy. R=golang-dev, bradfitz, minux.ma CC=golang-dev https://golang.org/cl/7532043
-
Rob Pike authored
This installs type checking into go vet. (To be removed before releasing Go 1.1) R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7528044
-
Rob Pike authored
We can enable/disable type checking with a build tag. Should simplify cutting the go1.1 distribution free of go/types. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7482045
-
Russ Cox authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7523043
-
Rob Pike authored
Fixes #4522. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7502044
-
Ewan Chou authored
BenchmarkSplit1 77984460 24131380 -69.06% R=golang-dev, rsc, minux.ma, dave, extemporalgenome CC=golang-dev https://golang.org/cl/7458043
-
Russ Cox authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/7473047
-
Alex Brainman authored
R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7486048
-
Alex Brainman authored
Fixes #4841. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7475046
-
Russ Cox authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7529043
-
Russ Cox authored
Now the default startup is that the program begins at _rt0_amd64_$GOOS, which sets DI = argc, SI = argv and jumps to _rt0_amd64. This makes the _rt0_amd64 entry match the expected semantics for the standard C "main" function, which we can now provide for use when linking against a standard C library. R=golang-dev, devon.odell, minux.ma CC=golang-dev https://golang.org/cl/7525043
-
Dominik Honnef authored
This CL adds compatibility for GNU Emacs 23 (fixing fontification issues) and XEmacs >=21.5.32 (fixing a lot of issues). Earlier versions of XEmacs will not be supported because they do not support POSIX character classes. Because of that, we also make use of a lot of functions that were added in 21.5.32. A known and currently unfixable issue with XEmacs is that go-mode will not always fontify identifiers that use unicode correctly. All changes for XEmacs are annotated in the diff. Note: go--position-bytes is not currently used anywhere, but will be in a future CL. Fixes #4927. R=golang-dev, adonovan, cw, patrick.allen.higgins, sameer CC=golang-dev https://golang.org/cl/7456051
-
Brad Fitzpatrick authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/7518044
-
Rob Pike authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/7489044
-
Brad Fitzpatrick authored
Previously the HTTP client's (*Response).Body.Close would try to keep reading until EOF, hoping to reuse the keep-alive HTTP connection, but the EOF might never come, or it might take a long time. Now we immediately close the TCP connection if we haven't seen EOF. This shifts the burden onto clients to read their whole response bodies if they want the advantage of reusing TCP connections. In the future maybe we could decide on heuristics to read some number of bytes for some max amount of time before forcefully closing, but I'd rather not for now. Statistically, touching this code makes things regress, so I wouldn't be surprised if this introduces new bugs, but all the tests pass, and I think the code is simpler now too. Maybe. Please test your HTTP client code before Go 1.1. Fixes #3672 R=golang-dev, adg CC=golang-dev https://golang.org/cl/7419050
-
- 05 Mar, 2013 12 commits
-
-
Nigel Tao authored
necessarily contain all components. Fixes #4975. R=r, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/7469043
-
David Symonds authored
The only check so far is for self-assignments of the form "expr = expr", but even that found one instance in the standard library. R=r, adg, mtj, rsc CC=golang-dev https://golang.org/cl/7455048
-
Rob Pike authored
Fixes #4980. R=golang-dev, rsc, dsymonds CC=golang-dev https://golang.org/cl/7479044
-
Rob Pike authored
Drop the phrase "reference types", which has caused confusion. Add a section about 2D arrays, a common newbie question. R=golang-dev, cespare, adg, rsc CC=golang-dev https://golang.org/cl/7423051
-
Russ Cox authored
broke arm garbage collector traceback_arm fails with a missing pc. It needs CL 7494043. But that only makes the build break later, this time with "invalid freelist". Roll back until it can be fixed correctly. ««« original CL description runtime: restrict stack root scan to locals and arguments R=rsc CC=golang-dev https://golang.org/cl/7301062 »»» R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7493044
-
Robert Griesemer authored
- run time is limited if -short is set - also added missing TODO to unrelated file return.go R=r CC=golang-dev https://golang.org/cl/7448052
-
Joel Sing authored
On OpenBSD 5.2, calling getsockname on an unbound Unix domain socket results in a successful syscall, however the AF is unset and the length is returned as zero. This has been changed to more portable behaviour, which will be included in the OpenBSD 5.3 release. For now, work around this by treating a successful getsockname() call that returns a family of AF_UNSPEC and length of zero as a AF_UNIX socket. Makes TestPassFD work on OpenBSD 5.2. Fixes #4956. R=golang-dev, minux.ma, rsc, mikioh.mikioh CC=golang-dev https://golang.org/cl/7449046
-
Dmitriy Vyukov authored
It will be handy for network poller. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7429048
-
Dmitriy Vyukov authored
Fixes #4893. Actually it's fixed by cl/7314062 (improved scheduler), just submitting the test. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7422054
-
Dmitriy Vyukov authored
In preparation for integrated network poller (https://golang.org/cl/7326051), this is required to handle deadlines. R=golang-dev, remyoudompheng, rsc CC=golang-dev https://golang.org/cl/7446047
-
Carl Shapiro authored
R=rsc CC=golang-dev https://golang.org/cl/7301062
-
David Symonds authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/7431054
-
- 04 Mar, 2013 12 commits
-
-
David Symonds authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/7416050
-
Robert Griesemer authored
Implementation closely based on Russ' CL 7440047. Future work: The error messages could be better (e.g., instead of "missing return" it might say "missing return (no default in switch)", etc.). R=adonovan, rsc CC=golang-dev https://golang.org/cl/7437049
-
Russ Cox authored
Fixes #65. R=ken2 CC=golang-dev https://golang.org/cl/7441049
-
Robert Griesemer authored
The only functional change is the new section on terminating statements. There is a minor syntax rewrite (not change) of function declarations to make it easier to refer to the notion of a function from all places where it is used (function decls, method decls, and function literals). Includes some minor fixes/additions of missing links. Based closely on Russ' proposal. Fixes #65. R=rsc, r, iant, ken, bradfitz CC=golang-dev https://golang.org/cl/7415050
-
Robert Griesemer authored
Fixes #4976. R=r CC=golang-dev https://golang.org/cl/7421050
-
Dominik Honnef authored
R=golang-dev, adonovan, bradfitz, cw, patrick.allen.higgins, sameer, ugorji CC=golang-dev https://golang.org/cl/7373051
-
Shenghou Ma authored
to reduce compile time memory/stack usage. Update #4970 $ go test -c ../test/bench/go1 before: 0.36user 0.07system 0:00.44elapsed 100%CPU (0avgtext+0avgdata 540720maxresident)k 0inputs+19840outputs (0major+56451minor)pagefaults 0swaps after: 0.33user 0.05system 0:00.39elapsed 100%CPU (0avgtext+0avgdata 289936maxresident)k 0inputs+19864outputs (0major+29615minor)pagefaults 0swaps And stack usage is reduced to below 1MiB. R=golang-dev, r, dave CC=golang-dev https://golang.org/cl/7436050
-
Brad Fitzpatrick authored
Fixes #4969 R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7456049
-
Russ Cox authored
Using -import_runtime_cgo would have worked great except that it doesn't get passed to the second invocation of cgo, and that's the one that writes the relevant file. Fixes ARM build on systems with a different dynamic linker than the one 5l assumes (like Gentoo). R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7432048
-
Brad Fitzpatrick authored
Use a 17 MB payload instead of a 1 MB payload, since OS X can apparently buffer up to 16 MB in its pipes. Fixes #4958 maybe R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7453049
-
Daniel Morsing authored
Fixes #4941. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7415051
-
Jan Ziak authored
If the constant CollectStats is non-zero and GOGCTRACE=1 the garbage collector will print basic statistics about executed GC instructions. R=golang-dev, dvyukov CC=golang-dev, rsc https://golang.org/cl/7413049
-