- 03 Jun, 2011 9 commits
-
-
Dmitriy Vyukov authored
Plus fix spoiling of GOMAXPROCS in 2 existing rwmutex tests. Plus fix benchmark output to stdout (now it outputs to stderr like all other output). R=rsc CC=golang-dev https://golang.org/cl/4529111
-
Lucio De Re authored
These changes are not particularly invasive and have been tested as broadly as possible. 8l/l.h: - #pragma varargck: added some, removed duplicates. ld/dwarf.c: - As Plan 9 has no NULL, changed all occurrences to nil. - Added USED(size); where necessary. - Added (void) argument in definition of finddebugruntimepath(). - Plan 9 compiler was complaining about multiple assignments, repeaired by breaking up the commands. - Correction: havedynamic = 1; restored. ld/go.c: - Needed USED(file); in two functions. - Removed unused assignments flagged by the Plan 9 compiler. ld/lib.c: - Replaced unlink() with remove() which seems available everywhere. - Removed USED(c4); and USED(magic) no longer required. - Removed code flagged as unused by the Plan 9 compiler. - Added attributes to a number of format strings. R=rsc CC=golang-dev https://golang.org/cl/4435047
-
Luuk van Dijk authored
also inlined a typechecking function in dcl away. R=rsc CC=golang-dev https://golang.org/cl/4550115
-
Andrew Gerrand authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4547082
-
Nigel Tao authored
R=r CC=golang-dev https://golang.org/cl/4539104
-
Luuk van Dijk authored
This is in preparation of escape analysis; function parameters can now be tagged with interesting bits by the compiler by assigning to n->note. tested by having typecheck put a fake tag on all parameters of pointer type and compiling the tree. R=rsc CC=golang-dev https://golang.org/cl/4524092
-
Nigel Tao authored
image: add Rectangle.ContainsRectangle method. R=r, rsc CC=golang-dev https://golang.org/cl/4517130
-
Andrew Gerrand authored
R=r CC=golang-dev https://golang.org/cl/4551092
-
Andrew Gerrand authored
R=golang-dev, r CC=golang-dev https://golang.org/cl/4548091
-
- 02 Jun, 2011 21 commits
-
-
Andrew Gerrand authored
R=golang-dev, dchest CC=golang-dev https://golang.org/cl/4564057
-
Rob Pike authored
rune if input implements UnreadRune; otherwise the lookahead will lie. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4548082
-
Rob Pike authored
There were two issues: 1) It might not be a path error, it might be 'permission denied'. 2) The concept of $PATH is Unix-specific. R=alex.brainman, rsc, r, mattn.jp CC=golang-dev https://golang.org/cl/4530096
-
Brad Fitzpatrick authored
Fixes #1905 R=rsc CC=golang-dev https://golang.org/cl/4538111
-
Robert Griesemer authored
R=rsc CC=golang-dev https://golang.org/cl/4529110
-
Brad Fitzpatrick authored
R=rsc CC=golang-dev https://golang.org/cl/4559067
-
Robert Griesemer authored
Fixes #1907. R=rsc CC=golang-dev https://golang.org/cl/4527096
-
Brad Fitzpatrick authored
It gets annoying to do this in caller code otherwise, especially having to remember to Close one side. R=rsc CC=golang-dev https://golang.org/cl/4517134
-
Russ Cox authored
The LDREXD and STREXD instructions require aligned addresses, and the ARM stack is not guaranteed to be aligned during the check. This may cause other problems later (on the ARM not all 64-bit pointers may be 64-bit aligned) but at least the check is correct now. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4564053
-
Brad Fitzpatrick authored
R=rsc CC=golang-dev https://golang.org/cl/4550111
-
Luuk van Dijk authored
R=rsc CC=golang-dev https://golang.org/cl/4528116
-
Russ Cox authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4517132
-
Dmitriy Vyukov authored
R=rsc CC=golang-dev https://golang.org/cl/4529100
-
Mikio Hara authored
Add IPv6Mreq and Inet6Pktinfo for specifying the network interface. Rename IpMreq to IPMreq, SetsockoptIpMreq to SetsockoptIPMreq. R=rsc, dave, robert.hencke CC=golang-dev https://golang.org/cl/4532098
-
Rob Pike authored
Fixes #1792. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4548083
-
Russ Cox authored
Programs expect that Read and Write are synchronous. The background goroutines make the implementation a little easier, but they introduce asynchrony that trips up calling code. Remove them. R=golang-dev, krasin CC=golang-dev https://golang.org/cl/4548079
-
Nigel Tao authored
R=r CC=golang-dev https://golang.org/cl/4515179
-
Alex Brainman authored
Fixes #1883. Fixes #1702. R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4532103
-
Andrew Gerrand authored
R=golang-dev, gri CC=golang-dev https://golang.org/cl/4539100
-
Rob Pike authored
Fixes #1840. R=rsc CC=golang-dev https://golang.org/cl/4548077
-
William Chan authored
R=bradfitz, rsc CC=golang-dev https://golang.org/cl/4524087
-
- 01 Jun, 2011 10 commits
-
-
Gustavo Niemeyer authored
This changes the internal implementation of Cond so that it uses two generations of waiters. This enables Signal to guarantee that it will only wake up waiters that are currently sleeping at the call time. Fixes #1648. R=dvyukov, gustavo, rsc CC=golang-dev https://golang.org/cl/4524083
-
Robert Griesemer authored
- tested with GOARCH=386 - tested with GOARCH=amd64 R=iant CC=golang-dev https://golang.org/cl/4526100
-
Brad Fitzpatrick authored
This removes exec.Run and replaces exec.Cmd with a new implementation. The new exec.Cmd represents both a currently-running command and also a command being prepared. It has a good zero value. You can Start + Wait on a Cmd, or simply Run it. Start (and Run) deal with copying stdout, stdin, and stderr between the Cmd's io.Readers and io.Writers. There are convenience methods to capture a command's stdout and/or stderr. R=r, n13m3y3r, rsc, gustavo, alex.brainman, dsymonds, r, adg, duzy.chan, mike.rosset, kevlar CC=golang-dev https://golang.org/cl/4552052
-
Robert Griesemer authored
On a 32bit machine, the big.Words are only 32bit. R=rsc CC=golang-dev https://golang.org/cl/4561055
-
Robert Griesemer authored
R=rsc CC=golang-dev https://golang.org/cl/4559058
-
Robert Griesemer authored
- better number scanning algorithm - fixed a couple of bugs related to base interpretation - added scan benchmark - added more test cases and made tests more precise - introduced Int.scan method matching nat.scan - refactored Int.Scan; now uses int.scan - refactored Int.SetString; now uses int.scan There is more potential, this was a fairly simple change. gotest -test.bench="ScanPi" before/after (best of 3 runs): big.BenchmarkScanPi 1000 2024900 ns/op big.BenchmarkScanPi 10000 257540 ns/op R=chickencha CC=golang-dev, rsc https://golang.org/cl/4527089
-
Russ Cox authored
Using the getaddrinfo order is only okay if we are smart enough to try multiple addresses in Dial. Since the code does not do that, we must make the right first choice, regardless of what getaddrinfo does, and more often that not that means using the IPv4 address, even on IPv6 systems. With the CL applied, gotest fails in package net on OS X. helix.cam=; gotest ... --- FAIL: net.TestDialGoogleIPv4 (1.05 seconds) -- 74.125.226.179:80 -- -- www.google.com:80 -- Dial("tcp", "", "www.google.com:80") = _, dial tcp [2001:4860:800f::69]:80: address family not supported by protocol family -- 74.125.226.179:http -- -- www.google.com:http -- Dial("tcp", "", "www.google.com:http") = _, dial tcp [2001:4860:800f::69]:80: address family not supported by protocol family -- 074.125.226.179:0080 -- -- [::ffff:74.125.226.179]:80 -- -- [::ffff:4a7d:e2b3]:80 -- -- [0:0:0:0:0000:ffff:74.125.226.179]:80 -- -- [0:0:0:0:000000:ffff:74.125.226.179]:80 -- -- [0:0:0:0:0:ffff::74.125.226.179]:80 -- FAIL gotest: "./6.out" failed: exit status 1 ««« original CL description net: name-based destination address selection getaddrinfo() orders the addresses according to RFC 3484. This means when IPv6 is working on a host we get results like: []string = {"2001:4810::110", "66.117.47.214"} and when it's not working we get: []string = {"66.117.47.214", "2001:4810::110"} thus can drop firstFavoriteAddr. This also means /etc/gai.conf works on relevant systems. R=rsc, mikioh.mikioh CC=golang-dev https://golang.org/cl/4557058 »»» R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4532101
-
Adam Langley authored
This mostly adds the infrastructure for writing various forms of packets as well as reading them. Adding symmetric encryption support was simply an easy motivation. There's also one brown-paper-bag fix in here. Previously I had the conditional for the MDC hash check backwards: the code was checking that the hash was *incorrect*. This was neatly counteracted by another bug: it was hashing the ciphertext of the OCFB prefix, not the plaintext. R=bradfitz CC=golang-dev https://golang.org/cl/4564046
-
Mikkel Krautz authored
This fixes creation of X509 certificates with RSA keys. (Broken by e5ecc416f2fd) R=agl CC=golang-dev https://golang.org/cl/4553052
-
Luuk van Dijk authored
before: runtime_test.BenchmarkCallClosure1 20000000 135 ns/op after: runtime_test.BenchmarkCallClosure1 500000000 6 ns/op R=rsc CC=golang-dev https://golang.org/cl/4527091
-