- 07 Sep, 2012 1 commit
-
-
Joel Sing authored
When generating enums use the debug data section instead of the DWARF debug info, if it is available in the ELF file. This allows mkerrors.sh to work correctly on OpenBSD/386 and NetBSD/386. Fixes #2470. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/6495090
-
- 06 Sep, 2012 8 commits
-
-
Rob Pike authored
The parser depends on it but the client might not import it, so make sure it's there. Fixes #4038. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6497094
-
Rob Pike authored
Happy Birthday UTF-8. R=golang-dev, rsc, 0xjnml CC=golang-dev https://golang.org/cl/6506083
-
Joel Sing authored
Regenerate/update netbsd z-files on NetBSD 6.0 RC1. R=golang-dev, r CC=golang-dev https://golang.org/cl/6506062
-
Dave Cheney authored
Fixes #3862. There were many areas where conn.err was being accessed outside the mutex. This proposal moves the err value to an embedded struct to make it more obvious when the error value is being accessed. As there are no Benchmark tests in this package I cannot feel confident of the impact of this additional locking, although most will be uncontended. R=dvyukov, agl CC=golang-dev https://golang.org/cl/6497070
-
Andrew Gerrand authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/6493087
-
Marcel van Lohuizen authored
promised in CL 13985. R=r CC=golang-dev https://golang.org/cl/6503071
-
Nigel Tao authored
order. JPEG images generated prior to this CL are still valid JPEGs, as the quantization tables used are encoded in the wire format. Such JPEGs just don't use the recommended quantization tables. R=r, dsymonds, raph, adg CC=golang-dev, tuom.larsen https://golang.org/cl/6497083
-
Nigel Tao authored
consistent with OLROT. Delete unused OBAD, OLRC. R=rsc, dave CC=golang-dev https://golang.org/cl/6489082
-
- 05 Sep, 2012 3 commits
-
-
Russ Cox authored
The old code was a depth first graph traversal that could, under the right conditions, end up re-exploring the same subgraphs multiple times, once for each way to arrive at that subgraph at a given depth. The new code uses a breadth first search to make sure that it only visits each reachable embedded struct once. Also add fast path for the trivial case. benchmark old ns/op new ns/op delta BenchmarkFieldByName1 1321 187 -85.84% BenchmarkFieldByName2 6118 5186 -15.23% BenchmarkFieldByName3 8218553 42112 -99.49% R=gri, r CC=golang-dev https://golang.org/cl/6458090
-
Oling Cat authored
R=nigeltao CC=golang-dev https://golang.org/cl/6499075
-
Nigel Tao authored
R=dsymonds CC=golang-dev https://golang.org/cl/6503070
-
- 04 Sep, 2012 8 commits
-
-
Nigel Tao authored
R=rsc, daniel.morsing CC=golang-dev https://golang.org/cl/6495074
-
Alan Donovan authored
R=golang-dev, minux.ma, rsc CC=golang-dev https://golang.org/cl/6490076
-
Sébastien Paolacci authored
All of them call `newFileFD' which must properly restore close-on-exec on duplicated fds. R=golang-dev, bradfitz, mikioh.mikioh CC=golang-dev https://golang.org/cl/6445081
-
Alan Donovan authored
Signal handlers are global resources but many language environments (Go, C++ at Google, etc) assume they have sole ownership of a particular handler. Signal handlers in mixed-language applications must therefore be robust against unexpected delivery of certain signals, such as SIGPROF. The default Go signal handler runtime·sigtramp assumes that it will never be called on a non-Go thread, but this assumption is violated by when linking in C++ code that spawns threads. Specifically, the handler asserts the thread has an associated "m" (Go scheduler). This CL is a very simple workaround: discard SIGPROF delivered to non-Go threads. runtime.badsignal(int32) now receives the signal number; if it returns without panicking (e.g. sig==SIGPROF) the signal is discarded. I don't think there is any really satisfactory solution to the problem of signal-based profiling in a mixed-language application. It's not only the issue of handler clobbering, but also that a C++ SIGPROF handler called in a Go thread can't unwind the Go stack (and vice versa). The best we can hope for is not crashing. Note: - I've ported this to all POSIX platforms, except ARM-linux which already ignores unexpected signals on m-less threads. - I've avoided tail-calling runtime.badsignal because AFAICT the 6a/6l don't support it. - I've avoided hoisting 'push sig' (common to both function calls) because it makes the code harder to read. - Fixed an (apparently incorrect?) docstring. R=iant, rsc, minux.ma CC=golang-dev https://golang.org/cl/6498057
-
Alan Donovan authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6489065
-
Andrew Gerrand authored
Fixes #3178. R=golang-dev, iant CC=golang-dev https://golang.org/cl/6506064
-
Andrew Gerrand authored
Fixes #3667. R=golang-dev, iant CC=golang-dev https://golang.org/cl/6492078
-
Patrick Crosby authored
Added instructions for starting an http server to the godoc header for this package. With the old instructions, the example "go tool pprof..." commands wouldn't work unless you happen to be running an http server on port 6060 in your application. R=golang-dev, minux.ma, adg, giacomo.tartari CC=golang-dev https://golang.org/cl/6483049
-
- 03 Sep, 2012 2 commits
-
-
Alex Brainman authored
Fixes #3945. R=golang-dev, minux.ma CC=golang-dev, vcc.163 https://golang.org/cl/6490056
-
Alex Brainman authored
It is enabled by mistake and should be part of CL 5847068 instead. R=golang-dev CC=golang-dev, minux.ma https://golang.org/cl/6488073
-
- 02 Sep, 2012 2 commits
-
-
Shenghou Ma authored
R=golang-dev, dave, rsc CC=golang-dev https://golang.org/cl/6449127
-
Shenghou Ma authored
cgo[1-4].go, go1.go couldn't be tested now (cgo[1-4].go can only be tested when cgo is enabled, go1.go contain a list of filenames in the current directory) R=golang-dev, alex.brainman, rsc CC=golang-dev https://golang.org/cl/6218048
-
- 01 Sep, 2012 10 commits
-
-
Russ Cox authored
Fixes #3853. R=ken2 CC=golang-dev https://golang.org/cl/6492071
-
Uriel Mangado authored
The decorator hides the number of function arguments from Mercurial, so Mercurial cannot give proper error messages about commands invoked with the wrong number of arguments. Left a 'dummy' hgcommand decorator in place as a way to document what functions are hg commands, and just in case we need some other kind of hack in the future. R=adg, rsc CC=golang-dev https://golang.org/cl/6488059
-
Russ Cox authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/6492070
-
Shenghou Ma authored
R=golang-dev, r, dave, rsc CC=golang-dev https://golang.org/cl/6492069
-
Daniel Morsing authored
Accomplished by synchronizing the formatting of conversion errors between typecheck.c and subr.c Fixes #3984. R=golang-dev, remyoudompheng, rsc CC=golang-dev https://golang.org/cl/6500064
-
Rémy Oudompheng authored
Fixes #3909. Fixes #3910. R=rsc, nigeltao CC=golang-dev https://golang.org/cl/6442114
-
Russ Cox authored
There was mail on golang-nuts a few weeks ago from someone who understood the message perfectly and knew he had a cyclic dependency but assumed that Go, like Python or Java, was supposed to handle it. R=golang-dev, bradfitz, dave CC=golang-dev https://golang.org/cl/6488069
-
Rémy Oudompheng authored
The performance improvement applies to the case where prec >= 0 and fmt is 'e' or 'g'. Additional minor optimisations are included. A small performance impact happens in some cases due to code refactoring. benchmark old ns/op new ns/op delta BenchmarkAppendFloat64Fixed1 623 235 -62.28% BenchmarkAppendFloat64Fixed2 1050 272 -74.10% BenchmarkAppendFloat64Fixed3 3723 243 -93.47% BenchmarkAppendFloat64Fixed4 10285 274 -97.34% BenchmarkAppendFloatDecimal 190 206 +8.42% BenchmarkAppendFloat 387 377 -2.58% BenchmarkAppendFloatExp 397 339 -14.61% BenchmarkAppendFloatNegExp 377 336 -10.88% BenchmarkAppendFloatBig 546 482 -11.72% BenchmarkAppendFloat32Integer 188 204 +8.51% BenchmarkAppendFloat32ExactFraction 329 298 -9.42% BenchmarkAppendFloat32Point 400 372 -7.00% BenchmarkAppendFloat32Exp 369 306 -17.07% BenchmarkAppendFloat32NegExp 372 305 -18.01% R=golang-dev, rsc CC=golang-dev, remy https://golang.org/cl/6462049
-
Marcel van Lohuizen authored
for both locale-specific exemplar characters and tailorings to the collation table. Some specifices: - Moved stringSet to the beginning of the file and added some functionality to parse command line files. - openReader now modifies the input URL for localFiles to guarantee that any http source listed in the generated file is indeed this source. - Note that the implementation of the Tailoring API used by maketables.go is not yet checked in. So for now adding tailorings are simply no-ops. - The generated file of exemplar characters will be used somewhere else. Here is a snippet of how the body of the generated file looks like: type exemplarType int const ( exCharacters exemplarType = iota exContractions exPunctuation exAuxiliary exCurrency exIndex exN ) var exemplarCharacters = map[string][exN]string{ "af": [exN]string{ 0: "a á â b c d e é è ê ë f g h i î ï j k l m n o ô ö p q r s t u û v w x y z", 3: "á à â ä ã æ ç é è ê ë í ì î ï ó ò ô ö ú ù û ü ý", 4: "a b c d e f g h i j k l m n o p q r s t u v w x y z", }, ... } R=r CC=golang-dev https://golang.org/cl/6501070
-
Marcel van Lohuizen authored
- Elements in the array are now sorted as a linked list. This makes it easier to apply tailorings. - Added code to sort entries by collation elements. - Added logical reset points. This is used for tailoring relative to certain properties, rather than characters. NOTE: all code for type entry should now be in order.go. To keep the diffs for this CL reasonable, though, the existing code is left in builder.go. I'll move this in a separate CL. R=r CC=golang-dev https://golang.org/cl/6493063
-
- 31 Aug, 2012 6 commits
-
-
Dave Cheney authored
Fixes #3525. PTRACE_SYSCALL behaves like PTRACE_CONT and can deliver a signal to the process. Ideally PtraceSingleStep should support the signal argument, but its interface is frozen by Go1. R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/6353051
-
Russ Cox authored
TBR=r CC=golang-dev https://golang.org/cl/6497067
-
Patrick Higgins authored
Parses a time header value into a time.Time according to rfc2616 sec 3.3. R=golang-dev, dave, rsc, r CC=bradfitz, golang-dev https://golang.org/cl/6344046
-
Shawn Smith authored
R=rsc, n13m3y3r CC=golang-dev https://golang.org/cl/6330061
-
Russ Cox authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/6492067
-
Ivan Krasin authored
R=iant, imkrasin, krasin, iant, minux.ma, rsc, nigeltao, r, fullung CC=golang-dev https://golang.org/cl/6454046
-