- 01 Mar, 2013 21 commits
-
-
Russ Cox authored
Update #4956. R=golang-dev CC=golang-dev https://golang.org/cl/7417048
-
Russ Cox authored
Putting the M initialization in multiple places will not scale. Various code assumes mstart is the start already. Make it so. R=golang-dev, devon.odell CC=golang-dev https://golang.org/cl/7420048
-
Russ Cox authored
Move the mstartfn into its own field. Simpler, more likely to be correct. R=golang-dev, devon.odell CC=golang-dev https://golang.org/cl/7414046
-
Russ Cox authored
R=devon.odell CC=golang-dev https://golang.org/cl/7443046
-
Russ Cox authored
Fixes #4948. R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/7445045
-
Russ Cox authored
This time for sure. R=golang-dev CC=golang-dev https://golang.org/cl/7449045
-
Dmitriy Vyukov authored
Distribute runnable queues, memory cache and cache of dead G's per processor. Faster non-blocking syscall enter/exit. More conservative worker thread blocking/unblocking. R=dave, bradfitz, remyoudompheng, rsc CC=golang-dev https://golang.org/cl/7314062
-
Russ Cox authored
There is a #pragma dynexport crosscall2, to help SWIG, and 6l cannot export the symbol if it doesn't get to see it. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7448044
-
Russ Cox authored
During my global search and replace I forgot to open *.S (capital). R=golang-dev TBR=golang-dev CC=golang-dev https://golang.org/cl/7415047
-
Russ Cox authored
Switch to new pragma names, but leave old ones available for now. Merge the three cgo-related sections in the .6 files into a single cgo section. R=golang-dev, iant, ality CC=golang-dev https://golang.org/cl/7424048
-
Jan Ziak authored
R=golang-dev, rsc CC=golang-dev, minux.ma https://golang.org/cl/7424047
-
Andrew Gerrand authored
Fixes #4950. R=golang-dev, peter CC=golang-dev https://golang.org/cl/7415046
-
Alex Brainman authored
Fixes #4930. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7424043
-
Alex Brainman authored
- implement windows pread; - set correct Fhdr.type; - add ImageBase to all pe "virtual" addresses; - correct settext parameter order; - use pclntab/epclntab to find line numbers. Fixes #4841. Fixes #4926. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7405050
-
Alex Brainman authored
R=golang-dev, dave CC=golang-dev https://golang.org/cl/7439048
-
Alan Donovan authored
Now that untyped expressions are done in two phases, the identity of operand.expr is used as a map key; when reusing operand values we now must be careful to update the expr field. R=gri CC=golang-dev https://golang.org/cl/7444049
-
Brad Fitzpatrick authored
Fixes #4767 R=golang-dev, adg CC=golang-dev https://golang.org/cl/7435046
-
Brad Fitzpatrick authored
R=golang-dev, nigeltao, adg CC=golang-dev https://golang.org/cl/7444048
-
Rob Pike authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/7454044
-
Andrew Gerrand authored
R=r CC=golang-dev https://golang.org/cl/7442045
-
Nigel Tao authored
net/http/cookiejar. This is a straight rename. There are no code changes. Fixes #1960. R=rsc, adg CC=dr.volker.dobler, golang-dev https://golang.org/cl/7436043
-
- 28 Feb, 2013 19 commits
-
-
Rob Pike authored
Fixes #4942. R=golang-dev, adg CC=golang-dev https://golang.org/cl/7444047
-
Robert Griesemer authored
Completely rethought shift expression type checking. Instead of attempting to type-check them eagerly, now delay the checking of untyped constant lhs in non- constant shifts until the final expression type becomes clear. Once it is clear, update the respective expression tree with the final (not untyped) type and check respective shift lhs' where necessary. This also cleans up another conundrum: How to report the type of untyped constants as it changes from untyped to typed. Now, Context.Expr is only called for an expresion x once x has received its final (not untyped) type (for constant initializers, the final type may still be untyped). With this CL all remaining std lib packages that did not typecheck due to shift errors pass now. TODO: There's a lot of residual stuff that needs to be cleaned up but with this CL all tests pass now. R=adonovan, axwalk CC=golang-dev https://golang.org/cl/7381052
-
Dmitriy Vyukov authored
And add a benchmark where #goroutines>GOMAXPROCS, because it's the most interesting case. Current results on darwin/amd64, Intel Core 2 Duo 2.13 GHz, 2 cores: BenchmarkSyscall 100000000 56.0 ns/op BenchmarkSyscall-2 50000000 57.2 ns/op BenchmarkSyscallWork 10000000 635 ns/op BenchmarkSyscallWork-2 10000000 315 ns/op BenchmarkSyscallExcess 1000000 2698 ns/op BenchmarkSyscallExcess-2 5000000 1192 ns/op BenchmarkSyscallExcessWork 1000000 2832 ns/op BenchmarkSyscallExcessWork-2 2000000 1966 ns/op R=golang-dev, r CC=golang-dev https://golang.org/cl/7415044
-
Dmitriy Vyukov authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/7431047
-
Akshat Kumar authored
The Name field of the stat structure is variable length and the marshalling code in package syscall requires a buf long enough to contain the Name as well as the static data. This change makes sure that the buffer in os.Rename is allocated with the appropriate length. R=rsc, rminnich, ality, r CC=golang-dev https://golang.org/cl/7453044
-
Russ Cox authored
There are some function pointers declared by 6c in package runtime without initialization and then also declared in package runtime/cgo with initialization, so that if runtime/cgo is linked in, the function pointers are non-nil, and otherwise they are nil. We depend on this property for implementing non-essential cgo hooks in package runtime. The declarations in package runtime are 6c-compiled and end up in .6 files. The declarations in package runtime/cgo are gcc-compiled and end up in .o files. Since 6l links the .6 and .o files together, this all works. However, when we switch to "external linking" mode, 6l will not see the .o files, and it would be up to the host linker to resolve the two into a single initialized symbol. Not all host linkers will do this (in particular OS X gcc will not). To fix this, move the cgo declarations into 6c-compiled code, so that they end up in .6 files, so that 6l gets them no matter what. R=golang-dev CC=golang-dev https://golang.org/cl/7440045
-
Rob Pike authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7439046
-
Russ Cox authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7423046
-
Russ Cox authored
The naming in this package is a disaster. Make it all consistent. Remove some 'static' from functions that will be referred to from other files soon. This CL is purely renames using global search and replace. Submitting separately so that real changes will not be drowned out by these renames in future CLs. TBR=iant CC=golang-dev https://golang.org/cl/7416046
-
Russ Cox authored
runtime: double-check that symbol table is sorted If the symbol table is unsorted, the binary search in findfunc will not find its func, which will make stack traces stop early. When the garbage collector starts using the stack tracer, that would be a serious problem. The unsorted symbol addresses came from from two things: 1. The symbols in an ELF object are not necessarily sorted, so sort them before adding them to the symbol list. 2. The __i686.get_pc_thunk.bx symbol is present in multiple object files and was having its address adjusted multiple times, producing an incorrect address in the symbol table. R=golang-dev, iant CC=golang-dev https://golang.org/cl/7440044
-
Rob Pike authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/7413045
-
Rob Pike authored
Also add a report about "invalid type" from gotype, if -v is set. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7420045
-
Robin Eklind authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/7431046
-
Russ Cox authored
This is the plan for how to make host linking work with the rest of the system. There are two complications: 1. It is a goal to preserve the property that pure Go programs (even ones importing "net") can be compiled without needing gcc, so that a Go toolchain download works out of the box. This forces the support for two linking modes: with and without gcc. 2. It is a goal to allow users with old copies of SWIG to continue to use those copies. This forces the support for "internal only" packages. Perhaps it is reasonable to require a new SWIG. I don't know. R=iant CC=golang-dev https://golang.org/cl/7433043
-
Matt Brown authored
This reveals the presence of control and non-printable characters in the errors returned by the Parse functions. Also add unit tests for NumError. R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/7393075
-
Rob Pike authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7444045
-
John Graham-Cumming authored
The test suite for ReadResponse was not checking the error return on the io.Copy on the body. This was masking two errors: the handling of chunked responses to HEAD requests and the handling of Content-Length > 0 to HEAD. The former manifested itself as an 'unexpected EOF' when doing the io.Copy because a chunked reader was assigned but there were no chunks to read. The latter cause (*http.Response).Write to report an error on HEAD requests because it saw a Content-Length > 0 and expected a body. There was also a missing \r\n in one chunked test that meant that the chunked encoding was malformed. This does not appear to have been intentional. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7407046
-
Shenghou Ma authored
also move a cgo-depend test to appropriate source file in runtime. R=golang-dev, dave, adg, rsc CC=golang-dev https://golang.org/cl/7393063
-
Rémy Oudompheng authored
Fixes #4769. R=golang-dev, dave, adg, bradfitz CC=fullung, golang-dev https://golang.org/cl/7322089
-