- 18 Dec, 2013 17 commits
-
-
Anfernee Yongkun Gui authored
R=golang-dev, adg, bradfitz, mikioh.mikioh CC=golang-dev https://golang.org/cl/21580043
-
Adam Langley authored
Previously the hash used when signing an X.509 certificate was fixed and, for RSA, it was fixed to SHA1. Since Microsoft have announced the deprecation of SHA1 in X.509 certificates, this change switches the default to SHA256. It also allows the hash function to be controlled by the caller by setting the SignatureAlgorithm field of the template. [1] http://blogs.technet.com/b/pki/archive/2013/11/12/sha1-deprecation-policy.aspx Fixes #5302. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/40720047
-
Josh Bleecher Snyder authored
The set of certs fetched via exec'ing `security` is not quite identical to the certs fetched via the cgo call. The cgo fetch includes any trusted root certs that the user may have added; exec does not. The exec fetch includes an Apple-specific root cert; the cgo fetch does not. Other than that, they appear to be the same. Unfortunately, os/exec depends on crypto/x509, via net/http. Break the circular dependency by moving the exec tests to their own package. This will not work in iOS; we'll cross that bridge when we get to it. R=golang-dev, minux.ma, agl CC=golang-dev https://golang.org/cl/22020045
-
Brad Fitzpatrick authored
Don't make copies of keys while decoding, and don't use the expensive strings.EqualFold when it's not necessary. Instead, note in the existing field cache what algorithm to use to check fold equality... most keys are just ASCII letters. benchmark old ns/op new ns/op delta BenchmarkCodeDecoder 137074314 103974418 -24.15% benchmark old MB/s new MB/s speedup BenchmarkCodeDecoder 14.16 18.66 1.32x Update #6496 R=golang-dev, rsc, adg, r, mikioh.mikioh CC=golang-dev https://golang.org/cl/13894045
-
Brad Fitzpatrick authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/43760046
-
Andrew Gerrand authored
R=golang-dev CC=golang-dev https://golang.org/cl/43780043
-
ChaiShushan authored
Fixes #6028. R=golang-dev, bradfitz, adg, r CC=golang-dev https://golang.org/cl/43320043
-
Andrew Gerrand authored
Generated by addca. R=gobot, nikai CC=golang-dev https://golang.org/cl/43620043
-
ChaiShushan authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/14279043
-
Mikio Hara authored
Because TestDNSThreadLimit consumes tons of file descriptors and makes other tests flaky when CGO_ENABLE=0 or being with netgo tag. Fixes #6580. R=golang-dev, bradfitz, adg, minux.ma CC=golang-dev https://golang.org/cl/14639044
-
Shenghou Ma authored
At least three Go tests rely on that (log, runtime/{pprof,debug}). Fixes #6972. Fixes #6974. Fixes #6975. R=alex.brainman, mattn.jp, rsc CC=golang-dev https://golang.org/cl/43150043
-
Alex Brainman authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/43730043
-
Russ Cox authored
All packages now use the -pack option to the compiler. For a pure Go package, that's enough. For a package with additional C and assembly files, the extra archive entries can be added directly (by concatenation) instead of by invoking go tool pack. These changes make it possible to rewrite cmd/pack in Go. R=iant, r CC=golang-dev https://golang.org/cl/42910043
-
Russ Cox authored
All packages now use the -pack option to the compiler. For a pure Go package, that's enough. For a package with additional C and assembly files, the extra archive entries can be added directly (by concatenation) instead of by invoking go tool pack. These changes make it possible to rewrite cmd/pack in Go. R=iant, r CC=golang-dev https://golang.org/cl/42890043
-
Russ Cox authored
The -pack flag causes 5g, 6g, 8g to write a Go archive directly, instead of requiring the use of 'go tool pack' to convert the .5/.6/.8 to .a format. Writing directly avoids the copy and also avoids having the export data stored twice in the archive (once in __.PKGDEF, once in .5/.6/.8). A separate CL will enable the use of this flag by cmd/go. Other build systems that do not know about -pack will be unaffected. The changes to cmd/ld handle a minor simplification to the format: an unused section is removed. R=iant, r CC=golang-dev https://golang.org/cl/42880043
-
Keith Randall authored
Part of getting rid of vararg C calls. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/23310043
-
David du Colombier authored
Rob suggested this change. R=golang-dev, r CC=golang-dev https://golang.org/cl/43670044
-
- 17 Dec, 2013 22 commits
-
-
Keith Randall authored
Hash tables currently store an evacuated bit in the low bit of the overflow pointer. That's probably not sustainable in the long term as GC wants correctly typed & aligned pointers. It is also a pain to move any of this code to Go in the current state. This change moves the evacuated bit into the tophash entries. Performance change is negligable. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/14412043
-
Marko Tiikkaja authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/40370051
-
Michael Hudson-Doyle authored
gccgo has problems using reflect.Call with functions that take and return structs with no members. Prior to fixing that problem there, I thought it sensible to add some tests of this situation. Update #6761 First contribution to Go, apologies in advance if I'm doing it wrong. R=golang-dev, dave, minux.ma, iant, khr, bradfitz CC=golang-dev https://golang.org/cl/26570046
-
Brad Fitzpatrick authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/43670043
-
Caleb Spare authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/38540046
-
David du Colombier authored
R=golang-dev, r, bradfitz CC=golang-dev, jas https://golang.org/cl/43610043
-
Brad Fitzpatrick authored
And document it explicitly, even though it already said it wasn't guaranteed. Fixes #6857 R=golang-dev, khr CC=golang-dev https://golang.org/cl/43580043
-
Arne Hormann authored
R=golang-dev, adg CC=golang-dev https://golang.org/cl/43300043
-
Andrew Gerrand authored
Generated by addca. R=gobot CC=golang-dev https://golang.org/cl/43600043
-
Brad Fitzpatrick authored
R=golang-dev, crawshaw CC=golang-dev https://golang.org/cl/37690045
-
Brad Fitzpatrick authored
os: don't ignore LStat errors in Readdir. If it's ENOENT, on the second pass, just treat it as missing. If it's another error, it's real. path/filepath: use ReaddirNames instead of Readdir in Walk, in order to obey the documented WalkFunc contract of returning each walked item's LStat error, if any. Fixes #6656 Fixes #6680 R=golang-dev, r CC=golang-dev https://golang.org/cl/43530043
-
Julien Schmidt authored
This also fixes several connection leaks. Fixes #5718 R=bradfitz, adg CC=alberto.garcia.hierro, golang-dev https://golang.org/cl/14920046
-
Rob Pike authored
They cause too much bloat in the internals as we find ourselves adding special case code for all the cross-connections. It's better to use RGBA and just max out the alpha. We lose a little memory but reduce the number of special cases the encoders, decoders, and drawers need to provide. R=golang-dev, nigeltao CC=golang-dev https://golang.org/cl/42910045
-
David du Colombier authored
R=golang-dev, jas, bradfitz CC=golang-dev https://golang.org/cl/43420043
-
ChaiShushan authored
R=golang-dev, iant CC=golang-dev https://golang.org/cl/43290043
-
Shenghou Ma authored
Fixes build for go_bootstrap. Fixes #6971. R=alex.brainman, mattn.jp, rsc CC=golang-dev https://golang.org/cl/43130043
-
Dmitriy Vyukov authored
R=golang-dev, alex.brainman CC=golang-dev https://golang.org/cl/43340043
-
Dmitriy Vyukov authored
Currently it fails as: go tool dist: $GOROOT is not set correctly or not exported GOROOT=c:\go c:\go\include\u.h does not exist Fail. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/42550044
-
Shenghou Ma authored
On the Chinese Windows XP system that I'm using, GetTimeZoneInformation returns a struct containing "中国标准时间" (China Standard Time in Chinese) in both StandardName and DaylightName (which is correct, because China does not use DST). However, in registry, under key HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Time Zones\China Standard Time, the key Std and Dlt contain "中国标准时间" (China Standard Time in Chinese) and "中国夏季时间" (China Summer Time in Chinese) respectively. This means that time.toEnglishName() cannot determine the abbreviation for the local timezone (CST) and causes test failures (time.Local is empty) R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/43210043
-
Josh Bleecher Snyder authored
Instead of writing out 0..n and then reading it back, just use i when it is needed. Wikipedia calls this the "inside-out" implementation: http://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle This yields identical values to the previous implementation, given the same seed. (Note that the output from Example_rand is unchanged.) 2.8 GHz Intel Core i7, results very stable: benchmark old ns/op new ns/op delta BenchmarkPerm3 138 136 -1.45% BenchmarkPerm30 825 803 -2.67% Stock Raspberry Pi, minimum improvement out of three runs: benchmark old ns/op new ns/op delta BenchmarkPerm3 5774 5664 -1.91% BenchmarkPerm30 32582 29381 -9.82% R=golang-dev, dave, mtj, adg CC=golang-dev https://golang.org/cl/21030043
-
Andrew Gerrand authored
This particular test would never pass unless you had GOROOT set in your environment. This changes makes the test use the baked-in GOROOT, as it does with GOOS and GOARCH. R=golang-dev, dave, iant CC=golang-dev https://golang.org/cl/43080043
-
Shenghou Ma authored
Fixes #6841. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/43010044
-
- 16 Dec, 2013 1 commit
-
-
Shenghou Ma authored
It should compare a - b to 0, not b - a to 0. Fixes #6964. R=golang-dev, r CC=golang-dev https://golang.org/cl/39020044
-