- 28 Jun, 2011 12 commits
-
-
Albert Strasheim authored
R=rsc, iant, dvyukov CC=golang-dev https://golang.org/cl/4643057
-
Dmitriy Vyukov authored
R=rsc CC=golang-dev https://golang.org/cl/4625065
-
Dmitriy Vyukov authored
The implementation does not grab the lock, if Once is already initalized. Benchmark results on HP Z600 (2 x Xeon E5620, 8 HT cores, 2.40GHz) are as follows: benchmark old ns/op new ns/op delta sync_test.BenchmarkOnce 187.00 14.00 -92.51% sync_test.BenchmarkOnce-2 909.00 21.40 -97.65% sync_test.BenchmarkOnce-4 3684.00 20.90 -99.43% sync_test.BenchmarkOnce-8 5987.00 23.00 -99.62% sync_test.BenchmarkOnce-16 5051.00 21.60 -99.57% R=bradfitz, rsc CC=golang-dev https://golang.org/cl/4641066
-
Rob Pike authored
including evaluation up the data tree (in this code all fields must be in dot itself), plus more control structure, but the basics are in place. R=rsc, r CC=golang-dev https://golang.org/cl/4665041
-
Dmitriy Vyukov authored
For both contended and uncontended case: - support arbitrary number of cpus (not just 2) - dynamic load balancing (improves stability) - periodic execution of Gosched() to work around non-preemptiviness For uncontended case eliminates possible false-sharing. For contended case includes additional variation with some amount of local work between mutex operations. R=r, rsc CC=golang-dev https://golang.org/cl/4634093
-
Evan Shaw authored
This avoids allocation when writing to bytes.Buffers and bufio.Writers, for example. R=golang-dev, rsc, r, consalus, r CC=golang-dev https://golang.org/cl/4625068
-
Andrew Gerrand authored
R=golang-dev, gri, bradfitz CC=golang-dev https://golang.org/cl/4634050
-
Brad Fitzpatrick authored
Against the spec, but appear in the wild. Fixes #1966 R=golang-dev, adg CC=golang-dev https://golang.org/cl/4662059
-
Russ Cox authored
Also fix \x{123} parsing. R=r CC=golang-dev https://golang.org/cl/4632052
-
Alex Brainman authored
R=rsc CC=golang-dev, vcc.163 https://golang.org/cl/4627071
-
Russ Cox authored
#pragma varargck countpos f 1 says that the first argument to f is the count of variadic arguments that follow. #pragma varargck type f t says that t is one of the allowed types for a variadic argument to f. (can be repeated) combined, these can be used to check the runtime.stdcall functions in the windows port or in any other port that needs a vararg list of uintptrs even on a 64-bit platform (where it is very easy to pass a less-than-uintptr in the ...). demo: typedef unsigned int uintptr; #pragma varargck countpos f 1 #pragma varargck type f uintptr #pragma varargck type f void* int f(int count, ...); void *v; char *p; void main(void) { f(1, v); // ok f(1, main); // ok f(1, p); // ok f(2, v, v); // ok f(2, v); // found 1 argument after count 2 f(1, 'a'); // invalid type INT in call to f f(1, 0); // invalid type INT in call to f } R=ken, r, alex.brainman CC=golang-dev https://golang.org/cl/4634103
-
Rob Pike authored
It was working too hard. R=golang-dev, adg CC=golang-dev https://golang.org/cl/4639081
-
- 27 Jun, 2011 21 commits
-
-
Russ Cox authored
R=r, sam.thorogood, kevlar CC=golang-dev, rsc https://golang.org/cl/4636046
-
Rob Pike authored
Change the signature of Split to have no count, assuming a full split, and rename the existing Split with a count to SplitN. Do the same to package bytes. Add a gofix module. R=adg, dsymonds, alex.brainman, rsc CC=golang-dev https://golang.org/cl/4661051
-
Ken Rockot authored
These are the relevant changes to exec_unix.go now that mkerrors.sh outputs have been updated. R=rsc CC=golang-dev https://golang.org/cl/4648064
-
Kyle Lemons authored
I have written up a Marshal and MarshalIndent pair that should closely reflect the way that Unmarshal works. I would love feedback on making this code more accessible and efficient... I haven't used reflecton on this scale before, so there is probably a lot of work that can be done on that. Some potentially controversial things: - All tag names are lower-cased by default. - Zero-valued struct values are skipped. - No namespace prefix (o:tag, etc) mechanism is supplied. - You are allowed to marshal non-struct values (even though unmarshal cannot handle them). - A tag for a non-XMLName struct field that isn't "attr", "chardata", or "innerxml" is used as the name of the tag. This could wreak havoc if you try to marshal a protobuf struct. - The "innerxml" and "chardata" are inserted verbatim. If you try to marshal something straight from unmarshal, the results could be unexpected (remove "innerxml" support from Marshal would be one possible solution). R=rsc CC=golang-dev https://golang.org/cl/4539082
-
Russ Cox authored
R=golang-dev, bradfitz, r CC=golang-dev https://golang.org/cl/4634101
-
Brad Fitzpatrick authored
Fixes #2011 R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4667043
-
Russ Cox authored
R=dvyukov, r CC=golang-dev https://golang.org/cl/4657053
-
Russ Cox authored
Fixes #2006. R=ken2 CC=golang-dev https://golang.org/cl/4643056
-
Brad Fitzpatrick authored
Permits serving from virtual filesystems, such as files linked into a binary, or from a zip file. Also adds a gofix for: http.FileServer(root, prefix) -> http.StripPrefix(prefix, http.FileServer(http.Dir(root))) R=r, rsc, gri, adg, dsymonds, r, gri CC=golang-dev https://golang.org/cl/4629047
-
Graham Miller authored
Reader previously had cached an error from the underlying reader and would return it on every subsequent call to Read. The Reader will now return the error only once, and subsequent calls will result in a new Read call to the underlying Reader. Fixes #1934. R=bradfitz, rogpeppe, rsc CC=golang-dev https://golang.org/cl/4528133
-
Dmitriy Vyukov authored
R=r, rsc CC=golang-dev https://golang.org/cl/4650054
-
Lucio De Re authored
8a/a.h: . Removed <u.h> and <libc.h> includes as they work better in "a.y". . Made definition of EOF conditional as it's defined in the Plan 9 header files, but not elsewhere. 8a/a.y: . Added <u.h> and <libc.h> because <stdio.h> in Plan 9 needs them. Sequence <u.h>, <stdio.h>, <libc.h> recommended by RSC. 8a/lex.c: . Added <u.h> and <libc.h> as now needed by "a.h". . Dropped <ctype.h>. cc/lexbody: . exit() -> exits(). . Dropped unwanted incrementation. cc/macbody: . Adjusted a few format specifications. R=rsc CC=golang-dev https://golang.org/cl/4644047
-
Anthony Martin authored
R=rsc, n13m3y3r, gustavo CC=golang-dev https://golang.org/cl/4661050
-
Russ Cox authored
R=golang-dev, bradfitz, go.peter.90 CC=golang-dev https://golang.org/cl/4627068
-
Brad Fitzpatrick authored
R=rsc CC=golang-dev https://golang.org/cl/4626067
-
Russ Cox authored
R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4627067
-
Brad Fitzpatrick authored
Previously we were snapshotting the TLS state into *Request before we did the HTTP ReadRequest, the first Read of which triggered the TLS handshake implicitly. Fixes #1956 R=golang-dev, rsc CC=agl, golang-dev https://golang.org/cl/4630072
-
Dmitriy Vyukov authored
-test.benchtime allows to specify benchmark execution time. -test.cpu allows to execute tests/benchmarks for several values of GOMAXPROCS. R=r, r, rsc CC=golang-dev https://golang.org/cl/4662046
-
Russ Cox authored
build runs with chmod 0 /bin/ed now R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4635071
-
Russ Cox authored
did darwin on mac with older, not broken xcode. did linux arm by copying diffs from linux 386. did freebsd amd64 by copying diffs from freebsd 386. R=golang-dev, r, mikioh.mikioh CC=golang-dev https://golang.org/cl/4629067
-
Dmitry Chestnykh authored
Documentation mentioned the obsolete package "crypto/block", which has been replaced with "crypto/cipher". R=golang-dev, agl CC=golang-dev https://golang.org/cl/4654064
-
- 26 Jun, 2011 1 commit
-
-
Robert Hencke authored
Fixes #1970. R=rsc, r CC=golang-dev https://golang.org/cl/4650050
-
- 25 Jun, 2011 3 commits
-
-
Robert Hencke authored
Fixes #1969. R=gri, rsc, r CC=golang-dev https://golang.org/cl/4634076
-
Robert Griesemer authored
- don't rely on /dev/stdin as the name for standard input - employ EBNF extraction if the source contains tags "cat source.html | ebnflint" works now R=r CC=golang-dev https://golang.org/cl/4641075
-
Michael T. Jones authored
Users of the Scan() infrastructure that employ ReadRune() rather than Token() need a way to skip leading spaces and newlines as set by the the parent, Fscan(), Fscanln, or Fscanf(). As the internal methods and boolean flags are not exported, this new function was added here and in the Int and Nat Scan() functions of the big package. (fmt.Rat did not need change since it uses Token()) Also added Printf style format code support to int types and tests for same to int_test.go R=r, r, gri, mtj CC=golang-dev https://golang.org/cl/4634074
-
- 24 Jun, 2011 3 commits
-
-
Brad Fitzpatrick authored
As rsc suggested after change 58a6bdac3d12 was committed, we now read the first byte of Request.Body when the Request.ContentLength is 0 to disambiguate between a truly zero-length body and a body of unknown length where the user didn't set the ContentLength field. This was also causing the reverse proxy problem where incoming requests (which always have a body, of private type http.body, even for 0-lengthed requests) were being relayed to the http Transport for fetching, which was serializing the request as a chunked request (since ContentLength was 0 and Body was non-nil) Fixes #1999 R=golang-dev, kevlar CC=golang-dev https://golang.org/cl/4628063
-
Brad Fitzpatrick authored
Incremental step in fix for issue 1999 R=golang-dev, kevlar CC=golang-dev https://golang.org/cl/4667041
-
Pascal S. de Kloe authored
RFC 1521 section 4 states "The type, subtype, and parameter names are not case sensitive.". R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/4648047
-