aboutsummaryrefslogtreecommitdiff
path: root/src/pkg
AgeCommit message (Collapse)Author
2013-11-18[release-branch.go1.2] encoding/gob: do not use MarshalText, UnmarshalTextAndrew Gerrand
««« CL 22770044 / 23fc3139589c encoding/gob: do not use MarshalText, UnmarshalText This seems to be the best of a long list of bad ways to fix this issue. Fixes #6760. R=r CC=golang-dev https://golang.org/cl/22770044 »»» R=golang-dev CC=golang-dev https://golang.org/cl/28110043
2013-11-18[release-branch.go1.2] encoding/gob: expose encode/decode exampleAndrew Gerrand
««« CL 26220045 / d76ade89413f encoding/gob: expose encode/decode example R=golang-dev, r CC=golang-dev https://golang.org/cl/26220045 »»» R=golang-dev CC=golang-dev https://golang.org/cl/25380044
2013-11-13[release-branch.go1.2] cmd/godoc: document package-level examplesAndrew Gerrand
««« CL 23940043 / 6ad0ec54cf2d cmd/godoc: document package-level examples Fixes issue 5807 . R=golang-dev, adg CC=golang-dev https://golang.org/cl/23940043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/25500045
2013-11-13[release-branch.go1.2] go/doc: add full stop of Japanese, Chinese and Korean.Andrew Gerrand
««« CL 21130043 / 0685a9549d5a go/doc: add full stop of Japanese, Chinese and Korean. This fix will show a good synopsis on package listings in that languages. R=adg, r CC=golang-dev https://golang.org/cl/21130043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/25720043
2013-11-13[release-branch.go1.2] net/textproto: fix CanonicalMIMEHeaderKey panicAndrew Gerrand
««« CL 21450043 / e081962da65c net/textproto: fix CanonicalMIMEHeaderKey panic Fixes #6712 R=golang-dev, adg, rsc CC=golang-dev https://golang.org/cl/21450043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/25640044
2013-11-01[release-branch.go1.2] cmd/5l, runtime: fix divide for profiling tracebacks ↵Andrew Gerrand
on ARM ««« CL 19910044 / 9eb64f5ef3a6 cmd/5l, runtime: fix divide for profiling tracebacks on ARM Two bugs: 1. The first iteration of the traceback always uses LR when provided, which it is (only) during a profiling signal, but in fact LR is correct only if the stack frame has not been allocated yet. Otherwise an intervening call may have changed LR, and the saved copy in the stack frame should be used. Fix in traceback_arm.c. 2. The division runtime call adds 8 bytes to the stack. In order to keep the traceback routines happy, it must copy the saved LR into the new 0(SP). Change SUB $8, SP into MOVW 0(SP), R11 // r11 is temporary, for use by linker MOVW.W R11, -8(SP) to update SP and 0(SP) atomically, so that the traceback always sees a saved LR at 0(SP). Fixes #6681. R=golang-dev, r CC=golang-dev https://golang.org/cl/19910044 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20170048
2013-11-01[release-branch.go1.2] database/sql: document Result methodsAndrew Gerrand
««« CL 19280046 / 2ad8ac71220d database/sql: document Result methods Fixes #5110 R=golang-dev, r CC=golang-dev https://golang.org/cl/19280046 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20650043
2013-11-01[release-branch.go1.2] database/sql: Fix typos in docAndrew Gerrand
««« CL 17590043 / fb5224487f1b database/sql: Fix typos in doc R=golang-dev CC=bradfitz, golang-dev https://golang.org/cl/17590043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20150046
2013-11-01[release-branch.go1.2] time: correct path to time zone zip file on UnixAndrew Gerrand
««« CL 19280043 / 9d199c7582d6 time: correct path to time zone zip file on Unix Most Unix systems have their own time zone data, so we almost never get far enough in the list to discover that we cannot fall back to the zip file. Adjust testing to exercise the final fallback. Plan 9 and Windows were already correct (and are the main users of the zip file). R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/19280043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20640043
2013-11-01[release-branch.go1.2] encoding/xml: fix doc commentAndrew Gerrand
««« CL 19300046 / 5ac568b9d67b encoding/xml: fix doc comment The tag is ",chardata" not "chardata". Fixes #6631. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/19300046 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20060045
2013-11-01[release-branch.go1.2] net/http/httputil: fix DumpRequestOut with ↵Andrew Gerrand
ContentLength & false body param ««« CL 14920050 / 5ed8c82778ae net/http/httputil: fix DumpRequestOut with ContentLength & false body param Fixes #6471 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/14920050 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20590044
2013-11-01[release-branch.go1.2] os: do not return Lstat errors from ReaddirAndrew Gerrand
««« CL 18870043 / eca0ca43a863 os: do not return Lstat errors from Readdir This CL restores the Go 1.1.2 semantics for os.File's Readdir method. The code in Go 1.1.2 was rewritten mainly because it looked buggy. This new version attempts to be clearer but still provide the 1.1.2 results. The important diff is not this CL's version against tip but this CL's version against Go 1.1.2. Go 1.1.2: names, err := f.Readdirnames(n) fi = make([]FileInfo, len(names)) for i, filename := range names { fip, err := Lstat(dirname + filename) if err == nil { fi[i] = fip } else { fi[i] = &fileStat{name: filename} } } return fi, err This CL: names, err := f.Readdirnames(n) fi = make([]FileInfo, len(names)) for i, filename := range names { fip, lerr := lstat(dirname + filename) if lerr != nil { fi[i] = &fileStat{name: filename} continue } fi[i] = fip } return fi, err The changes from Go 1.1.2 are stylistic, not semantic: 1. Use lstat instead of Lstat, for testing (done before this CL). 2. Make error handling in loop body look more like an error case. 3. Use separate error variable name in loop body, to be clear we are not trying to influence the final return result. Fixes #6656. Fixes #6680. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/18870043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20110045
2013-11-01[release-branch.go1.2] debug/dwarf: add DWARF 4 form constantsAndrew Gerrand
««« CL 18460043 / 08e6655618f5 debug/dwarf: add DWARF 4 form constants Some versions of clang generate DWARF 4-format attributes even when using -gdwarf-2. We don't care much about the values, but we do need to be able to parse past them. This fixes a bug in Go 1.2 rc2 reported via private mail using a near-tip version of clang. R=golang-dev, iant, dvyukov CC=golang-dev https://golang.org/cl/18460043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20470045
2013-11-01[release-branch.go1.2] runtime: relax preemption assertion during stack splitAndrew Gerrand
««« CL 18740044 / 1a8903f0a577 runtime: relax preemption assertion during stack split The case can happen when starttheworld is calling acquirep to get things moving again and acquirep gets preempted. The stack trace is in golang.org/issue/6644. It is difficult to build a short test case for this, but the person who reported issue 6644 confirms that this solves the problem. Fixes #6644. R=golang-dev, r CC=golang-dev https://golang.org/cl/18740044 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20460044
2013-11-01[release-branch.go1.2] net: handle single-line non-\n-terminated files ↵Andrew Gerrand
correctly in readLine ««« CL 15960047 / a0d4544cdb2a net: handle single-line non-\n-terminated files correctly in readLine Fixes #6646. R=rsc, bradfitz CC=golang-dev https://golang.org/cl/15960047 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20560044
2013-11-01[release-branch.go1.2] net/url: fix Encode doc commentAndrew Gerrand
««« CL 16430043 / f9af8b83c78c net/url: fix Encode doc comment Encoded query strings are always sorted by key; the example wasn't. R=golang-dev, dsymonds, minux.ma, bradfitz CC=golang-dev https://golang.org/cl/16430043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20480044
2013-11-01[release-branch.go1.2] strings: fix Replacer bug with prefix matchesAndrew Gerrand
««« CL 16880043 / 0eb6508d3e88 strings: fix Replacer bug with prefix matches singleStringReplacer had a bug where if a string was replaced at the beginning and no output had yet been produced into the temp buffer before matching ended, an invalid nil check (used as a proxy for having matched anything) meant it always returned its input. Fixes #6659 R=golang-dev, r CC=golang-dev https://golang.org/cl/16880043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20570044
2013-11-01[release-branch.go1.2] database/sql: link to wiki in package docsAndrew Gerrand
««« CL 14087043 / 7ebbddd21330 database/sql: link to wiki in package docs Update #5886 R=golang-dev, kamil.kisiel, adg, r, rsc, dave, arnehormann, bradfitz CC=golang-dev https://golang.org/cl/14087043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20610043
2013-11-01[release-branch.go1.2] time: fix ParseDuration overflow when given more than ↵Andrew Gerrand
9 digits on 32-bit arch ««« CL 15080043 / fbf3b853e00b time: fix ParseDuration overflow when given more than 9 digits on 32-bit arch Fixes #6617. R=golang-dev, rsc, r CC=golang-dev https://golang.org/cl/15080043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20050045
2013-11-01[release-branch.go1.2] math: remove unnecessary source fileAndrew Gerrand
««« CL 15750046 / 2d1e1adf8ece math: remove unnecessary source file The routines in this file are dregs from a very early copy of the math API. There are no Go prototypes and no non-amd64 implementations. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/15750046 »»» R=golang-dev CC=golang-dev https://golang.org/cl/19560045
2013-11-01[release-branch.go1.2] go/build: document the go1.2 build tagAndrew Gerrand
««« CL 14930046 / d4f6533fad0b go/build: document the go1.2 build tag R=golang-dev, adg CC=golang-dev https://golang.org/cl/14930046 »»» R=golang-dev CC=golang-dev https://golang.org/cl/19960044
2013-11-01[release-branch.go1.2] crypto/x509: name constraints should be a disjunction.Andrew Gerrand
««« CL 15570044 / b4c37131e846 crypto/x509: name constraints should be a disjunction. The code was requiring that all constraints be met, but it should be satisfied by meeting *any* of them. R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/15570044 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20580043
2013-11-01[release-branch.go1.2] crypto/tls: advertise support for RSA+SHA1 in TLS 1.2 ↵Andrew Gerrand
handshake. ««« CL 15650043 / 29d3ab5ced5a crypto/tls: advertise support for RSA+SHA1 in TLS 1.2 handshake. Despite SHA256 support being required for TLS 1.2 handshakes, some servers are aborting handshakes that don't offer SHA1 support. This change adds support for signing TLS 1.2 ServerKeyExchange messages with SHA1. It does not add support for signing TLS 1.2 client certificates with SHA1 as that would require the handshake to be buffered. Fixes #6618. R=golang-dev, r CC=golang-dev https://golang.org/cl/15650043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20570043
2013-11-01[release-branch.go1.2] net/mail: fix minor doc typo.Andrew Gerrand
««« CL 15510043 / 6752a7aad603 net/mail: fix minor doc typo. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/15510043 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20560043
2013-11-01[release-branch.go1.2] net: make sure failed Dial returns nil ConnAndrew Gerrand
««« CL 14950045 / 1e60ffd5933d net: make sure failed Dial returns nil Conn Fixes #6614. R=golang-dev, bradfitz, mikioh.mikioh CC=golang-dev https://golang.org/cl/14950045 »»» R=golang-dev CC=golang-dev https://golang.org/cl/20170047
2013-11-01[release-branch.go1.2] runtime: remove nomemprofAndrew Gerrand
««« CL 14695044 / 35d5bae6aac8 runtime: remove nomemprof Nomemprof seems to be unneeded now, there is no recursion. If the recursion will be re-introduced, it will break loudly by deadlocking. Fixes #6566. R=golang-dev, minux.ma, rsc CC=golang-dev https://golang.org/cl/14695044 »»» R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/20540043
2013-10-17net/url: fix regression when serializing relative URLsBrad Fitzpatrick
Only add a slash to path if it's a separator between a host and path. Fixes #6609 R=golang-dev, dsymonds, r CC=golang-dev https://golang.org/cl/14815043
2013-10-17runtime: correct test for when to poll networkIan Lance Taylor
Fixes #6610. R=golang-dev, khr CC=golang-dev https://golang.org/cl/14793043
2013-10-17runtime: correct parameter name in MCentral_AllocList commentIan Lance Taylor
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/14792043
2013-10-17encoding/xml: accept chains of interfaces and pointersRuss Cox
Fixes #6556. R=golang-dev, iant, adg CC=golang-dev https://golang.org/cl/14747043
2013-10-17database/sql: make tests repeatable with -cpu=n,nAlberto García Hierro
New test added in CL 14611045 causes a deadlock when running the tests with -cpu=n,n because the fakedb driver always waits when opening a new connection after running TestConnectionLeak. Reset its state after. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/14780043
2013-10-16database/sql: fix some test fmt verbsBrad Fitzpatrick
Found by vet. R=golang-dev, r CC=golang-dev https://golang.org/cl/14762044
2013-10-16database/sql: Fix connection leak and potential deadlockAlberto García Hierro
CL 10726044 introduced a race condition which causes connections to be leaked under certain circumstances. If SetMaxOpenConns is used, the application eventually deadlocks. Otherwise, the number of open connections just keep growing indefinitely. Fixes #6593 R=golang-dev, bradfitz, tad.glines, bketelsen CC=golang-dev https://golang.org/cl/14611045
2013-10-16database/sql: fix double decrement of numOpen count; test for connection leaksAlberto García Hierro
Add a check at the end of every test to make sure there are no leaked connections after running a test. Avoid incorrectly decrementing the number of open connections when the driver connection ends up it a bad state (numOpen was decremented twice). Prevent leaking a Rows struct (which ends up leaking a connection) in Row.Scan() when a *RawBytes destination is improperly used. Close the Rows struct in TestRowsColumns. Update #6593 R=golang-dev, bradfitz, dave CC=golang-dev https://golang.org/cl/14642044
2013-10-15undo CL 14231047 / 2f4c2dde2756Alex Brainman
undone because the change slows down profile collection significantly and unpredictable at times (see comments at https://golang.org/cl/14231047 for details) ««« original CL description runtime: collect profiles even while on g0 stack Fixes #6417 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/14231047 »»» R=golang-dev, rsc CC=golang-dev https://golang.org/cl/14535046
2013-10-15runtime/pprof: disable flaky TestGoroutineSwitch on windowsAlex Brainman
Update #6417 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/14604043
2013-10-15net/http: skip content-type sniffing if the header is explicitly unset.Michael Piatek
Fixes #5953 R=dsymonds, bradfitz, rsc CC=golang-dev https://golang.org/cl/14434044
2013-10-14debug/dwarf: report the value of an unrecognized attribute formatIan Lance Taylor
R=golang-dev, r, minux.ma CC=golang-dev https://golang.org/cl/14669045
2013-10-11go/build: add GOOS and GOARCH to name of gccgo pkg directoryIan Lance Taylor
This matches the behaviour of builder.includeArgs in cmd/go/build.go. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/14535048
2013-10-11go/build: fix test if built with CGO_ENABLED=0Ian Lance Taylor
Fixes #6567. R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/14502060
2013-10-09net: fix TestDialFailPDLeak to work when GOMAXPROCS is largeIan Lance Taylor
Fixes #6553. R=golang-dev, mikioh.mikioh CC=golang-dev https://golang.org/cl/14526048
2013-10-09runtime: markfreed's error reports should be prefixed with "markfreed", not ↵Keith Randall
"markallocated". R=golang-dev, iant CC=golang-dev https://golang.org/cl/14441055
2013-10-09runtime/cgo: mark callback functions as NOSPLITIan Lance Taylor
R=golang-dev, minux.ma CC=golang-dev https://golang.org/cl/14448044
2013-10-09debug/dwarf: handle surprising clang encodingRuss Cox
Fixes a bug in cgo on OS X using clang. See golang.org/issue/6472 for details. Fixes #6472. R=golang-dev, iant CC=golang-dev https://golang.org/cl/14575043
2013-10-09net: fix typo in failure message in testIan Lance Taylor
R=golang-dev, mikioh.mikioh CC=golang-dev https://golang.org/cl/14582043
2013-10-09compress/flate: fix infinite loop on malformed dataRuss Cox
Test using compress/gzip, because that's how the data arrived. Fixes #6550. R=golang-dev, r CC=golang-dev https://golang.org/cl/14441051
2013-10-08encoding/gob: add examplesRob Pike
Also tweak the package document, putting in section headings and adding a sentence about intended use. Fixes #4925. R=golang-dev, iant, adg, ugorji CC=golang-dev https://golang.org/cl/14519044
2013-10-08cmd/go, runtime: express armv5t architecture constraint differentlyCarl Shapiro
Instead of adding an -march=armv5t flag to the gcc command line, the same effect is obtained with an ".arch armv5t" pseudo op in the assembly file that uses armv5t instructions. R=golang-dev, iant, dave CC=golang-dev https://golang.org/cl/14511044
2013-10-07math: the trig functions work in radians; document thatRob Pike
Fixes #6543 6543 is also a fine NGC object. R=golang-dev, dsymonds, kamil.kisiel, minux.ma CC=golang-dev https://golang.org/cl/14515044
2013-10-07os/user: fix user lookups on dragonflyJoel Sing
Like FreeBSD, DragonFly does not provide a sysconf value for _SC_GETPW_R_SIZE_MAX. R=golang-dev, iant CC=golang-dev https://golang.org/cl/14469043