- 08 Jun, 2011 4 commits
-
-
Jonathan Mark authored
This change was adapted from gccgo's libgo/runtime/mem.c at Ian Taylor's suggestion. It fixes all.bash failing with "address space conflict: map() =" on amd64 Linux with kernel version 2.6.32.8-grsec-2.1.14-modsign-xeon-64. With this change, SysMap will use MAP_FIXED to allocate its desired address space, after first calling mincore to check that there is nothing else mapped there. R=iant, dave, n13m3y3r, rsc CC=golang-dev https://golang.org/cl/4438091
-
Ian Lance Taylor authored
R=adg, rsc CC=golang-dev https://golang.org/cl/4595042
-
David Symonds authored
Also remove an obsolete TODO while I'm here. R=r, rsc CC=golang-dev https://golang.org/cl/4588041
-
Dave Cheney authored
Tested on clang 2.9/amd64 R=rsc, jeff, r CC=golang-dev https://golang.org/cl/4517143
-
- 07 Jun, 2011 14 commits
-
-
Michael T. Jones authored
Three optimizations: First, special-case power of two bases that partion a Word(), bases 2, 4, 16, and 256. These can be moved directly from internal Word() storage to the output without multiprecision operations. Next, same approach for the other power-of-two bases, 8, 32, 64, and 128. These don't fill a Word() evenly, so special handling is needed for those cases where input spans the high-bits of one Word and the low bis of the next one. Finally, implement the general case for others bases in 2 <= base <= 256 using superbases, the largest power of base representable in a Word(). For base ten, this is 9 digits and a superbase of 10^9 for 32-bit Words and 19 digits and 10^19 for 64-bit compiles. This way we do just 1/9th or 1/19th of the expensive multiprecision divisions, unpacking superdigits using fast native machine arithmetic. The resulting code runs 7x to 800x the speed of the previous approach, depending on the length of the number to be converted--longer is relatively faster. Also, extended the tests and benchmarks for string to nat (scan()) and nat to string (string()) functions. A further enhancement awaits the next CL to make general cases about 7x faster for long cases. R=gri CC=golang-dev https://golang.org/cl/4595041
-
Robert Griesemer authored
R=rsc, bradfitz CC=golang-dev https://golang.org/cl/4598041
-
Brad Fitzpatrick authored
R=rsc CC=golang-dev https://golang.org/cl/4579044
-
Mikio Hara authored
Fixes #1921. R=golang-dev, jeff CC=golang-dev https://golang.org/cl/4535120
-
Brad Fitzpatrick authored
Also pass -u to diff to be consistent with gofmt. Fixes #1619 R=golang-dev, gri CC=golang-dev https://golang.org/cl/4591041
-
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, nigeltao CC=golang-dev https://golang.org/cl/4548080
-
Robert Hencke authored
Fixes #1466. R=mikioh.mikioh, rsc CC=golang-dev https://golang.org/cl/4564043
-
Anthony Martin authored
I started looking at this code because the nm in GNU binutils was ignoring the first symbol in the .symtab section. Apparently, the System V ABI reserves the first entry and requires all fields inside to be set to zero. The list of changes is as follows: · reserve the first symbol entry (as noted above) · fix the section indices for .data and .bss symbols · factor out common code for Elf32 and Elf64 · remove the special case for elfsymo in [568]l/asm.c:/^asmb · add the "etext" symbol in 6l · add static symbols R=rsc CC=golang-dev https://golang.org/cl/4524075
-
Robert Griesemer authored
R=bradfitz CC=golang-dev https://golang.org/cl/4528126
-
Caine Tighe authored
R=rsc, gri CC=golang-dev https://golang.org/cl/4564048
-
Brad Fitzpatrick authored
Fixes #1916 R=golang-dev, gri CC=golang-dev https://golang.org/cl/4590041
-
Rob Pike authored
add QuoteToASCII. The Quote and QuoteRune functions now let printable runes (as defined by unicode.IsPrint) through. When true 7-bit clean stuff is necessary, there are now two new functions: QuoteToASCII and QuoteRuneToASCII. Printf("%q") uses Quote. To get the old behavior, it will now be necessary to say Printf("%s", strconv.QuoteToASCII(s)) but that should rarely be necessary. R=golang-dev, gri, r CC=golang-dev https://golang.org/cl/4561061
-
Rob Pike authored
need to ReadFull, not Read, to get extension data. R=nigeltao CC=golang-dev https://golang.org/cl/4576043
-
Dave Cheney authored
R=adg CC=golang-dev https://golang.org/cl/4528124
-
- 06 Jun, 2011 16 commits
-
-
Brad Fitzpatrick authored
Fixes #1890 R=nigeltao CC=golang-dev https://golang.org/cl/4528102
-
Rob Pike authored
The single file was getting unwieldy. Also remove use of vector; a slice works fine - although it's an unusual one. R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/4576042
-
Graham Miller authored
Fixes #1922. R=golang-dev, gri CC=golang-dev https://golang.org/cl/4551098
-
Adam Langley authored
This change moves a number of common PKIX structures into crypto/x509/pkix, from where x509, and ocsp can reference them, saving duplication. It also removes x509/crl and merges it into x509 and x509/pkix. x509 is changed to take advantage of the big.Int support that now exists in asn1. Because of this, the public/private key pair in http/httptest/server.go had to be updated because it was serialised with an old version of the code that didn't zero pad ASN.1 INTEGERs. R=bradfitz, rsc CC=golang-dev https://golang.org/cl/4532115
-
Alex Brainman authored
1) runLog to return err==nil if program runs, but returns exitcode!=0; 2) runLog to return err!=nil when fails to create log file; 3) print failed program name, not just "all.bash". R=golang-dev, adg CC=golang-dev https://golang.org/cl/4532117
-
Dave Cheney authored
To build under clang, pass the path to clang in CC when calling ./make.bash CC=/opt/llvm/llvm-2.9/bin/clang ./make.bash Credit goes to jmhodges for suggestions. R=jeff, r, ality CC=golang-dev https://golang.org/cl/4527098
-
Evan Shaw authored
R=alex.brainman, r, rsc, krasin, iant, rsc, r CC=golang-dev https://golang.org/cl/4437091
-
Jeffrey M Hodges authored
The brace style in these files are a little inconsistent so I rolled with it on a per-file basis. R=dave, r CC=golang-dev https://golang.org/cl/4515194
-
David Jakob Fritz authored
Fixes #1868. R=golang-dev, r, rsc CC=golang-dev https://golang.org/cl/4550093
-
Rob Pike authored
R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/4572043
-
David Symonds authored
R=golang-dev, r, r CC=golang-dev https://golang.org/cl/4547084
-
Andrew Gerrand authored
Fixes #1919. R=golang-dev, r CC=golang-dev https://golang.org/cl/4530110
-
Benny Siegert authored
At the moment, 16-bit samples are reduced to 8 bits, this will be changed in a separate CL. R=nigeltao CC=golang-dev https://golang.org/cl/4552057
-
Andrew Gerrand authored
doc: update go_tutorial R=golang-dev, r CC=golang-dev https://golang.org/cl/4568056
-
Andrew Gerrand authored
R=golang-dev, rsc CC=golang-dev https://golang.org/cl/4535104
-
Alex Brainman authored
R=golang-dev, r, adg CC=golang-dev https://golang.org/cl/4561062
-
- 05 Jun, 2011 2 commits
-
-
Andrew Gerrand authored
go/build: include command output in error values go/build: add syslist.go to .hgignore R=golang-dev, r CC=golang-dev https://golang.org/cl/4550118
-
Nigel Tao authored
R=r CC=golang-dev https://golang.org/cl/4515191
-
- 04 Jun, 2011 1 commit
-
-
Andrew Gerrand authored
R=rsc CC=golang-dev https://golang.org/cl/4433047
-
- 03 Jun, 2011 3 commits
-
-
Rob Pike authored
s/ASCIIMax/MaxASCII/ R=golang-dev, r, gri CC=golang-dev https://golang.org/cl/4539109
-
Rob Pike authored
The long-term goal is that %q will use IsPrint to decide what to show natively vs. as hexadecimal. R=rsc, r CC=golang-dev https://golang.org/cl/4526095
-
Robert Griesemer authored
(pointed out by jan.mercl@nic.cz) R=iant, jan.mercl, rsc CC=golang-dev https://golang.org/cl/4515189
-