summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-11-19Adds benchmark support to gotest.Trevor Strohman6-4/+231
No benchmarks are run unless the --benchmarks=<regexp> flag is specified on the gotest command line. This change includes sample benchmarks for regexp. % gotest --benchmarks=.* (standard test output redacted) testing.BenchmarkSimpleMatch 200000 7799 ns/op testing.BenchmarkUngroupedMatch 20000 76898 ns/op testing.BenchmarkGroupedMatch 50000 38148 ns/op R=r, rsc http://codereview.appspot.com/154173 Committer: Russ Cox <rsc@golang.org>
2009-11-19build Make.deps during make.bash insteadRuss Cox4-85/+7
of keeping a checked-in copy. doesn't slow down make.bash appreciably. R=r http://codereview.appspot.com/156099
2009-11-19put copy into goyaccKen Thompson1-40/+16
R=rsc http://codereview.appspot.com/156100
2009-11-19os.ReadAt doesn't return EOF at EOF.Rob Pike1-0/+3
thanks to lionkov for the fix. Fixes issue 262. R=rsc CC=golang-dev http://codereview.appspot.com/156097
2009-11-19runtime: mask signals during signal handler on OS XRuss Cox2-2/+2
Fixes issue 265. R=r CC=golang-dev http://codereview.appspot.com/157084
2009-11-19bug219: parsing difficulties with 6gRobert Griesemer2-0/+39
R=r, rsc http://codereview.appspot.com/157085
2009-11-18- flip in and out to exercise overlap check a little (could do better)Rob Pike1-25/+125
- actually test the results R=rsc, ken2 CC=golang-dev http://codereview.appspot.com/156094
2009-11-18replace custom findByte with bytes.IndexByteRob Pike2-25/+15
R=rsc http://codereview.appspot.com/156093
2009-11-18big: fix large division.Adam Langley1-13/+19
I missed a case. R=rsc, agl CC=golang-dev http://codereview.appspot.com/156092
2009-11-18add bytes.IndexByte; common case we can make fast later.Rob Pike4-17/+96
also pick off the special case in strings.Index. don't want strings.IndexByte because the call site will very rarely need to allocate and we can handle the test in the code itself. bytes.IndexByte can avoid a common allocation. R=rsc CC=golang-dev http://codereview.appspot.com/156091
2009-11-18Allow optional second expression in slice expressions.Robert Griesemer1-12/+51
Built-in function copy. Addresses issue 203. R=rsc, r, iant http://codereview.appspot.com/156089
2009-11-18runtime: fix bug on darwin/amd64 - bad g in bsdthread_startRuss Cox1-2/+2
R=r http://codereview.appspot.com/157077
2009-11-18More FreeBSD-touchups. Thundercats are GOOOOO!Devon H. O'Dell7-26/+28
R=rsc CC=golang-dev http://codereview.appspot.com/157074 Committer: Russ Cox <rsc@golang.org>
2009-11-18crypto/x509: RawContents -> RawContentAdam Langley1-1/+1
TBR=rsc R=rsc http://codereview.appspot.com/157075
2009-11-18asn1: add support for RawContentAdam Langley2-1/+46
R=rsc CC=golang-dev http://codereview.appspot.com/157056
2009-11-18crypto/x509: add certificate support.Adam Langley2-3/+623
R=rsc CC=golang-dev http://codereview.appspot.com/156054
2009-11-186l, 8l: add trivial hash table for dynamic symbolsRuss Cox2-36/+42
R=r http://codereview.appspot.com/156085
2009-11-18test for copy()Rob Pike1-0/+193
R=rsc, ken2 CC=golang-dev http://codereview.appspot.com/156084
2009-11-18remove bytes.CopyRob Pike22-219/+148
replace all calls with calls to copy use copy in regexp and bytes.Buffer R=rsc CC=golang-dev http://codereview.appspot.com/157073
2009-11-18bugs in memmove:Rob Pike3-6/+7
- has arguments (no stack split) - MOVL does not set condition R=ken2, rsc http://codereview.appspot.com/156086
2009-11-18gc: allow implicit conversion of *[10]int -> []intRuss Cox1-2/+26
when used as arg to copy. R=ken2 http://codereview.appspot.com/157071
2009-11-18ld: move interpreter string into first block of ELF fileRuss Cox4-28/+51
necessary on freebsd. R=r, dho CC=golang-dev http://codereview.appspot.com/157069
2009-11-18slicecopy was always using 16 (sizeof slice) for the size instead of size of ↵Rob Pike1-1/+1
element. R=rsc CC=ken2, golang-dev http://codereview.appspot.com/156083
2009-11-18net: remove race condition on Close.Adam Langley1-16/+31
Previously a netFd could be queued for reading/writing in the channel, but close(2)'ed before pollServer got to it. In this case, the kernel would consider the descriptor closed and the attempt to add it to the epoll set would fail and panic. This patch makes Close a roundtrip to the pollServer, although the actual close(2) still occurs elsewhere to avoid blocking the pollServer. Fixes issue 143. R=rsc CC=golang-dev http://codereview.appspot.com/152130 Committer: Adam Langley <agl@golang.org>
2009-11-18On 32-bit x86, one should configure with --with-arch=.Ian Lance Taylor1-3/+8
R=r http://codereview.appspot.com/156080
2009-11-18Mangle C struct fields that happen to be named after Go keywords by ↵Eden Li1-1/+30
prefixing them with _. Collisions with existing fields are resolved by prefixing the new Go identifier with _ until it matches nothing else in the struct. Fixes issue 36. R=rsc http://codereview.appspot.com/157061 Committer: Russ Cox <rsc@golang.org>
2009-11-18big: implement 386 assembly routinesRuss Cox4-29/+184
7x speedup on big and crypto/rsa unit tests. also dropped useAsm in favor of making the asm stubs jump to the Go versions. R=agl1 CC=golang-dev, gri http://codereview.appspot.com/157062
2009-11-18Remove unnecessary execute bits.William Josephson14-0/+0
R=rsc http://codereview.appspot.com/156077 Committer: Russ Cox <rsc@golang.org>
2009-11-18Missing flags for FreeBSD shared link as used by cgo in default build.William Josephson1-0/+1
R=rsc http://codereview.appspot.com/157065 Committer: Russ Cox <rsc@golang.org>
2009-11-18Update legal.William Josephson2-0/+2
R=rsc http://codereview.appspot.com/156075 Committer: Russ Cox <rsc@golang.org>
2009-11-18Add an intptr type to runtime; needed in FreeBSDDevon H. O'Dell2-1/+3
In thread.c, we need to cast to whatever the native size of intptr is on the system, but we only have uintptr available. They're the same size, but can't do signed casts without this one :). R=rsc CC=golang-dev http://codereview.appspot.com/156073 Committer: Russ Cox <rsc@golang.org>
2009-11-18make all.bash finish on FreeBSDRuss Cox2-1/+3
R=dho CC=golang-dev http://codereview.appspot.com/156067
2009-11-17FreeBSD/i386 workDevon H. O'Dell20-26/+2538
This patchset gets Go to pretty much the same state that FreeBSD/amd64 is in. R=rsc http://codereview.appspot.com/157055 Committer: Russ Cox <rsc@golang.org>
2009-11-17cgo no longer translates function args that are void* intoEden Li1-1/+5
unsafe.Pointer. Fixes issue 254. R=rsc http://codereview.appspot.com/157060 Committer: Russ Cox <rsc@golang.org>
2009-11-17 Updated AUTHORS/CONTRIBUTORS files according toEden Li2-0/+2
http://golang.org/doc/contribute.html#copyright R=rsc http://codereview.appspot.com/156066 Committer: Russ Cox <rsc@golang.org>
2009-11-17Added Kate syntax highlighting file.Evan Shaw1-0/+129
R=rsc http://codereview.appspot.com/155075 Committer: Russ Cox <rsc@golang.org>
2009-11-17Adding my name to authors/contributors.Evan Shaw2-0/+2
R=rsc http://codereview.appspot.com/154169 Committer: Russ Cox <rsc@golang.org>
2009-11-17codereview: more attempts at robustness in the face of unexpected exceptionsRuss Cox1-36/+39
R=r http://codereview.appspot.com/156062
2009-11-17Adds Trevor Strohman to CONTRIBUTORS.Trevor Strohman1-0/+1
Google is my employer so no AUTHORS change is needed. R=rsc http://codereview.appspot.com/154174 Committer: Russ Cox <rsc@golang.org>
2009-11-17runtime: add ARM memmoveRuss Cox1-0/+248
R=ken2 http://codereview.appspot.com/156063
2009-11-17copy tweaksRuss Cox5-131/+181
* move memmove to arch-specific subdirectories * add memmove for arm * add copyright notices marking them as copied from Inferno R=ken2 http://codereview.appspot.com/156061
2009-11-17add a test for %+v in nested structures.Rob Pike1-0/+18
threw in an embedded one for good measure. R=rsc CC=golang-dev http://codereview.appspot.com/157058
2009-11-17allow copy to be used without a return valueKen Thompson1-8/+8
R=rsc http://codereview.appspot.com/156060
2009-11-17runtime: two trivial but important bug fixesRuss Cox2-2/+2
R=r http://codereview.appspot.com/156059
2009-11-17release.2009-11-17: tag as of earlier this eveningRuss Cox0-0/+0
R=r http://codereview.appspot.com/156058
2009-11-17bug in copyKen Thompson1-1/+1
R=rsc http://codereview.appspot.com/156056
2009-11-17install copy predefinedKen Thompson12-1/+209
did not test 386, but should work shouldnt matter if copy is not used R=rsc http://codereview.appspot.com/156055
2009-11-17crypto/rsa: add PKCS#1 v1.5 signature support.Adam Langley3-0/+179
R=rsc CC=golang-dev http://codereview.appspot.com/156051
2009-11-17asn1:Adam Langley7-161/+705
* add Marshal * add BitString.RightAlign * change to using a *time.Time (from time.Time) since that's what the time package uses. * return the unparsed data from Unmarshal. R=rsc CC=golang-dev http://codereview.appspot.com/156047
2009-11-17codereview: handle spaces and other unexpected chars in nicknamesRuss Cox1-1/+3
R=r http://codereview.appspot.com/157053