- 22 Jan, 2013 15 commits
-
-
Rick Arnold authored
Go 1.0 behavior was to create an UnmarshalFieldError when a json value name matched an unexported field name. This error will no longer be created and the field will be skipped instead. Fixes #4660. R=adg, rsc, bradfitz CC=golang-dev https://golang.org/cl/7139049
-
Brad Fitzpatrick authored
It wasn't removing names from func parameters for func types, and it was handling "a, b string" as "string", not "string, string". Fixes #4688 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7181051
-
Akshat Kumar authored
The Plan 9 compilers complain about not having type information for the function, which sets off type signature problems during the linking stage. R=rsc, ality, iant CC=golang-dev https://golang.org/cl/7058054
-
Robin Eklind authored
R=minux.ma, dave, rsc CC=golang-dev https://golang.org/cl/7064055
-
Mikio Hara authored
On NetBSD routing sockaddrs for interface address contain sockaddr_dl. R=dave, rsc CC=golang-dev https://golang.org/cl/7085064
-
Russ Cox authored
Delete various complications left over from an earlier reflect API. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7124063
-
Anthony Martin authored
Before: $ go list -f '{{range .Deps}}{{println $.Name .}}{{end}}' math time math runtime math unsafe time errors time runtime time sync time sync/atomic time syscall time unsafe $ After: $ go list -f '{{range .Deps}}{{println $.Name .}}{{end}}' math time math runtime math unsafe time errors time runtime time sync time sync/atomic time syscall time unsafe $ R=minux.ma, rsc CC=golang-dev https://golang.org/cl/7130052
-
Robin Eklind authored
All packages place testdata in a specific directory with the name "testdata". The mime and strconv packages have been updated to use the same convention. mime: Move "mime/test.types" to "mime/testdata/test.types". Update test code accordingly. strconv: Move "strconv/testfp.txt" to "strconv/testdata/testfp.txt". Update test code accordingly. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/7098072
-
Caleb Spare authored
This fixes the incorrect unix timestamp of the standard time and adds an example for (Time) Format to clarify how timezones work in format strings. Fixes #4364. R=golang-dev, remyoudompheng, kevlar, rsc CC=golang-dev https://golang.org/cl/7069046
-
Dustin Shields-Cloues authored
R=golang-dev, rsc, bradfitz CC=golang-dev https://golang.org/cl/7133048
-
Russ Cox authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/7184046
-
Akshat Kumar authored
Offsets for return values from seek were miscalculated and a translation from 32-bit code for error handling was incorrect. R=rsc, rminnich, npe CC=golang-dev https://golang.org/cl/7181045
-
Russ Cox authored
R=golang-dev, minux.ma, bradfitz, adg CC=golang-dev https://golang.org/cl/7134056
-
Adam Langley authored
Previously, Go TLS servers always took the client's preferences into account when selecting a ciphersuite. This change adds the option of using the server's preferences, which can be expressed by setting tls.Config.CipherSuites. This mirrors Apache's SSLHonorCipherOrder directive. R=golang-dev, nightlyone, bradfitz, ality CC=golang-dev https://golang.org/cl/7163043
-
Dmitriy Vyukov authored
Currently it's summed to mark phase. The change makes it easier to diagnose long stop-the-world phases. R=golang-dev, bradfitz, dave CC=golang-dev https://golang.org/cl/7182043
-
- 21 Jan, 2013 6 commits
-
-
Shenghou Ma authored
Fixes #4682. R=golang-dev, adg, dave CC=golang-dev https://golang.org/cl/7094062
-
Shenghou Ma authored
1. note that to use C.free <stdlib.h> must be included 2. can also extract errno from a void C function R=golang-dev, adg CC=golang-dev https://golang.org/cl/6935045
-
Shenghou Ma authored
sizeof(Adr) from 24 bytes down to 20 bytes. sizeof(Prog) from 84 bytes down to 76 bytes. 5l linking cmd/godoc statistics: Before: Maximum resident set size (kbytes): 106668 After: Maximum resident set size (kbytes): 99412 R=golang-dev, dave CC=golang-dev https://golang.org/cl/7100059
-
Shenghou Ma authored
so that the user don't need to decipher something like this: template: main:1: expected %!s(parse.itemType=14) in end; got "|" now they get this: template: main:1: unexpected "|" in end R=golang-dev, r CC=golang-dev https://golang.org/cl/7128054
-
Adam Langley authored
R=golang-dev, krautz, rsc CC=golang-dev https://golang.org/cl/7157044
-
Adam Langley authored
I messed this up from the beginning. The receiver isn't a pointer so setting Err is useless. In order to maintain the API, just remove the superfluous code. Fixes #4657. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7161043
-
- 20 Jan, 2013 3 commits
-
-
Andrew Gerrand authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/7172044
-
Dave Cheney authored
Prog * Remove the unused Prog* dlink * note that align is also unused, but removing it does not help due to alignment issues. Saves 4 bytes, sizeof(Prog): 84 => 80. Sym * Align {u,}char fields on word boundaries Saves 4 bytes, sizeof(Sym): 136 => 132. Tested on linux/arm and freebsd/arm. R=minux.ma, remyoudompheng, rsc CC=golang-dev https://golang.org/cl/7106050
-
Anthony Martin authored
R=golang-dev, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/7141062
-
- 19 Jan, 2013 5 commits
-
-
Mikio Hara authored
Fortunately we have never seen the panic on sockaddrToTCP in the past year. ««« original CL description net: panic if sockaddrToTCP returns nil incorrectly Part of diagnosing the selfConnect bug TBR=dsymonds R=golang-dev CC=golang-dev https://golang.org/cl/5687057 »»» R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7137063
-
Dave Cheney authored
mal() returns zeroed memory, so zeroing these fields is redundant. R=golang-dev, bradfitz, minux.ma, rsc CC=golang-dev https://golang.org/cl/7096049
-
Anthony Martin authored
cmd/8g/gsubr.c: unreachable code cmd/8g/reg.c: overspecifed class cmd/dist/plan9.c: unused parameter cmd/gc/fmt.c: stkdelta is now a vlong cmd/gc/racewalk.c: used but not set R=golang-dev, seed, rsc CC=golang-dev https://golang.org/cl/7067052
-
Anthony Martin authored
The FmtLong flag should only be used with the %D verb when printing an ATEXT Prog. It was erroneously used for every Prog except ADATA. This caused a preponderance of exclamation points, "!!", in the assembly listings. I also cleaned up the code so that the list.c files look very similar. Now the real differences are easily spotted with a simple diff. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7128045
-
Nigel Tao authored
R=rsc CC=golang-dev, mdempsky https://golang.org/cl/7062049
-
- 18 Jan, 2013 11 commits
-
-
Russ Cox authored
R=golang-dev, minux.ma, dave CC=golang-dev https://golang.org/cl/7135061
-
Russ Cox authored
Fixes #4678. TBR=gri CC=golang-dev https://golang.org/cl/7135059
-
Matthew Dempsky authored
For simplicity, only recognizes expressions of the exact form "(x << a) | (x >> b)" where x is a variable and a and b are integer constant expressions that add to x's bit width. Fixes #4629. $ cat rotate.c unsigned int rotate(unsigned int x) { x = (x << 3) | (x >> (sizeof(x) * 8 - 3)); return x; } ## BEFORE $ go tool 6c -S rotate.c (rotate.c:2) TEXT rotate+0(SB),$0-8 (rotate.c:2) MOVL x+0(FP),!!DX (rotate.c:4) MOVL DX,!!AX (rotate.c:4) SALL $3,!!AX (rotate.c:4) MOVL DX,!!CX (rotate.c:4) SHRL $29,!!CX (rotate.c:4) ORL CX,!!AX (rotate.c:5) RET ,!! (rotate.c:5) RET ,!! (rotate.c:5) END ,!! ## AFTER $ go tool 6c -S rotate.c (rotate.c:2) TEXT rotate+0(SB),$0-8 (rotate.c:4) MOVL x+0(FP),!!AX (rotate.c:4) ROLL $3,!!AX (rotate.c:5) RET ,!! (rotate.c:5) RET ,!! (rotate.c:5) END ,!! R=rsc, minux.ma CC=golang-dev https://golang.org/cl/7069056
-
Kamil Kisiel authored
Fixes #3719. R=anacrolix, rsc CC=golang-dev https://golang.org/cl/7131052
-
Robert Griesemer authored
Fixes #4653. R=rsc, r, iant, ken, thakis CC=golang-dev https://golang.org/cl/7135058
-
Jan Ziak authored
If the scanned block has no typeinfo the garbage collector will attempt to get the actual type of the block. R=golang-dev, bradfitz, rsc CC=golang-dev https://golang.org/cl/7093045
-
Rémy Oudompheng authored
The test array is too large to fit a stack frame but can be a global. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/7127059
-
Daniel Morsing authored
Fixes #4610. R=golang-dev, remyoudompheng, rsc CC=golang-dev, nigeltao https://golang.org/cl/7058057
-
Akshat Kumar authored
On Plan 9, only the parent of a given process can enter its wait queue. When a Go program tries to fork-exec a child process and subsequently waits for it to finish, the goroutines doing these two tasks do not necessarily tie themselves to the same (or any single) OS thread. In the case that the fork and the wait system calls happen on different OS threads (say, due to a goroutine being rescheduled somewhere along the way), the wait() will either return an error or end up waiting for a completely different child than was intended. This change forces the fork and wait syscalls to happen in the same goroutine and ties that goroutine to its OS thread until the child exits. The PID of the child is recorded upon fork and exit, and de-queued once the child's wait message has been read. The Wait API, then, is translated into a synthetic implementation that simply waits for the requested PID to show up in the queue and then reads the associated stats. R=rsc, rminnich, npe, mirtchovski, ality CC=golang-dev https://golang.org/cl/6545051
-
Rémy Oudompheng authored
The test case of issue 4585 was not passing due to miscalculation of memequal args, and the previous fix does not handle padding at the end of a struct. Handling of padding at end of structs also fixes the case of [n]T where T is such a padded struct. Fixes #4585. (again) R=golang-dev, rsc CC=golang-dev https://golang.org/cl/7133059
-
Carl Shapiro authored
Reference the 80386 compiler documentation now that the documentation for the 68020 is offline. R=golang-dev, minux.ma, rsc CC=golang-dev https://golang.org/cl/7127053
-