summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2010-02-16gc: test & fix handling of very long string constantsRuss Cox2-12/+33
R=ken2 CC=golang-dev http://codereview.appspot.com/207106
2010-02-15Fix printing of named floating point types.Ian Lance Taylor2-4/+65
Try to avoid infinite recursion if String fails due to printing a bad type. Add test for String method with named basic types. R=r CC=golang-dev http://codereview.appspot.com/207102
2010-02-12update gofmt test scriptRobert Griesemer1-4/+9
R=adg CC=golang-dev http://codereview.appspot.com/207088
2010-02-12http: clarify ServeHTTP returnRuss Cox1-0/+5
Fixes issue 580. R=adg CC=golang-dev http://codereview.appspot.com/207086
2010-02-12gc: diagnose invalid array boundsRuss Cox3-23/+23
Fixes issue 587. R=ken2 CC=golang-dev http://codereview.appspot.com/207085
2010-02-12runtime: dummy gettime for mingw/386.Russ Cox1-0/+9
Fixes issue 598. R=adg CC=golang-dev http://codereview.appspot.com/206089
2010-02-11correct meaning of "absolute" and "relative"Robert Griesemer1-15/+15
(implementation was swapped) R=adg CC=golang-dev, rsc http://codereview.appspot.com/207069
2010-02-11Steps towards more flexible godoc:Robert Griesemer1-0/+176
The Mapping object implements a flexible mapping of relative to absolute paths and vice versa. R=rsc CC=golang-dev http://codereview.appspot.com/206067
2010-02-10stop the 5c optimizer from clobbering extern static registers.Kai Backman1-2/+6
R=rsc, ken2 CC=golang-dev http://codereview.appspot.com/204064
2010-02-10runtime: delete MHeapMapCache, which is uselessRuss Cox7-133/+33
because free needs to mark the block as freed to coordinate with the garbage collector. (in C++ free can blindly put the block on the free list, no questions asked, so the cache saves some work.) R=iant CC=golang-dev http://codereview.appspot.com/206069
2010-02-11exp/draw test.Nigel Tao2-1/+89
R=rsc CC=golang-dev http://codereview.appspot.com/203062
2010-02-10Added tests for http.Request/Response.Write()Petar Maymounkov2-0/+173
R=rsc CC=golang-dev http://codereview.appspot.com/199070 Committer: Russ Cox <rsc@golang.org>
2010-02-10net: use slightly less predictable dns request idRuss Cox1-1/+3
not trying to be secure, just not repetitive (sending with the same id repeatedly makes some resolvers stop replying.) eventually we'll replace this with linking against the system's native resolver. R=p CC=golang-dev http://codereview.appspot.com/207051
2010-02-10arm: fix build on androidRuss Cox7-257/+580
R=kaib CC=golang-dev http://codereview.appspot.com/206059
2010-02-10runtime: tighten garbage collectorRuss Cox3-62/+112
* specialize sweepspan as sweepspan0 and sweepspan1. * in sweepspan1, inline "free" to avoid expensive mlookup. R=iant CC=golang-dev http://codereview.appspot.com/206060
2010-02-10runtime: do not zero blocks on free (this time for sure!)Russ Cox1-1/+0
R=iant CC=golang-dev http://codereview.appspot.com/207054
2010-02-108l: pe executable building code changed to include import table for ↵Alex Brainman2-0/+99
kernel32.dll functions Fixes issue 586. R=rsc CC=golang-dev http://codereview.appspot.com/203060 Committer: Russ Cox <rsc@golang.org>
2010-02-10gc: fix mkopnames and color grep interactionRuss Cox1-0/+4
Fixes issue 406. R=adg CC=golang-dev http://codereview.appspot.com/207053
2010-02-10ld: unused variableRuss Cox1-1/+0
R=adg CC=golang-dev http://codereview.appspot.com/207050
2010-02-10math: add Exp2; 386 FPU versions of Exp2 and Log1pCharles L. Dorian7-0/+115
Added tests and benchmarks for Exp2 (special cases same as Exp). Log1p also enhances speed of inverse hyperbolics. R=rsc CC=golang-dev http://codereview.appspot.com/206058 Committer: Russ Cox <rsc@golang.org>
2010-02-10runtime: garbage collection + malloc performanceRuss Cox9-86/+131
* add bit tracking finalizer status, avoiding getfinalizer lookup * add ability to allocate uncleared memory R=iant CC=golang-dev http://codereview.appspot.com/207044
2010-02-09mime: new package, use in httpMichael Hoisie6-12/+132
R=rsc CC=golang-dev http://codereview.appspot.com/186160 Committer: Russ Cox <rsc@golang.org>
2010-02-09http: protect io.WriteString in Request/Response.Write with error checking,Petar Maymounkov2-4/+13
since they were causing a silent program exit (too many EPIPE's). R=rsc CC=golang-dev http://codereview.appspot.com/204062 Committer: Russ Cox <rsc@golang.org>
2010-02-09bug fix in 6c/8c/5c mis-alignedKen Thompson1-16/+17
function arguments. R=rsc CC=golang-dev http://codereview.appspot.com/206054
2010-02-09fix NaCl build for latest runtime changesRuss Cox2-0/+21
R=iant CC=golang-dev http://codereview.appspot.com/206052
2010-02-09runtime: fix FreeBSD buildRuss Cox1-0/+1
stab in the dark but plausible: the kernel does try to return time zone information. http://fxr.watson.org/fxr/source/kern/kern_time.c?v=FREEBSD8#L421 R=iant CC=golang-dev http://codereview.appspot.com/206053
2010-02-09math: add functions Log2, Nextafter, Fdim, Fmax, FminCharles L. Dorian9-4/+206
Add functions, tests and benchmarks. Fix typos in comments in expm1 and hypot_386. Fix Acosh domain error in benchmark test. R=rsc CC=golang-dev http://codereview.appspot.com/204069 Committer: Russ Cox <rsc@golang.org>
2010-02-098a/8l: Added CMOVcc instructionsEvan Shaw3-0/+100
R=rsc CC=golang-dev http://codereview.appspot.com/204067 Committer: Russ Cox <rsc@golang.org>
2010-02-09add simple garbage collector benchmarks to dashboardRuss Cox2-2/+2
R=agl1 CC=golang-dev http://codereview.appspot.com/207043
2010-02-09make units compileFazlul Shahriar1-1/+1
R=golang-dev, rsc CC=golang-dev http://codereview.appspot.com/206044 Committer: Russ Cox <rsc@golang.org>
2010-02-08runtime: allow arbitrary return type in SetFinalizer.Russ Cox11-37/+102
finalize chan, to free OS X semaphore inside Lock. os: finalize File, to close fd. Fixes issue 503. R=ken2 CC=golang-dev http://codereview.appspot.com/204065
2010-02-08gc: fix method expression bugRuss Cox1-0/+1
R=ken2 CC=golang-dev http://codereview.appspot.com/206043
2010-02-08runtime: instrument malloc + garbage collector.Russ Cox13-2/+139
add simple garbage collection benchmark. R=iant CC=golang-dev http://codereview.appspot.com/204053
2010-02-08*l/*c: add -V flag to display version numberAndrew Gerrand11-1/+50
R=rsc CC=golang-dev http://codereview.appspot.com/204044
2010-02-07testing: Fix comment typoEvan Shaw1-1/+1
R=iant, rsc CC=golang-dev http://codereview.appspot.com/204068 Committer: Ian Lance Taylor <iant@golang.org>
2010-02-07encoding/pem: add marshalling support.Adam Langley2-2/+168
R=rsc CC=golang-dev http://codereview.appspot.com/203043
2010-02-07runtime: introduce MemStatsTypeRuss Cox1-3/+5
R=ken2 CC=golang-dev http://codereview.appspot.com/204061
2010-02-06fix commentKai Backman1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/203053
2010-02-06draw.Draw fast paths for a nil mask (and RGBA dst).Nigel Tao1-0/+50
Averaged times (in microseconds) for drawing an 800x600 rectangle are listed below. The summary is: around a 100x improvement. draw.Draw call times were typically linear in the number of pixels touched (i.e. drawing an 800x600 rectangle took 100x as much time as drawing an 80x60 rectangle). Before this change, there was only the general-but-slow code path. When drawing any src with a 50%-opaque mask: 237300 us When drawing any src with a nil mask: 50100 us After this change, the 50%-opaque mask case is unchanged. For an *image.RGBA dst and nil mask and... ...a uniform color (i.e. an image.ColorImage) src: 282 us ...another *image.RGBA src: 615 us. For the curious, an intermediate implementation detected the special cases but used simple nested for loops instead of the built-in copy function. The respective times (compared to 282 and 615 for the final implementation, or 50100 for the original) were 3110 and 3573. Times were measured with 8g/8l on my laptop. I haven't tried gccgo or other architectures. R=r, rsc CC=golang-dev http://codereview.appspot.com/201048
2010-02-05http: sort header keys when writing Response or Request to wirePetar Maymounkov2-11/+24
R=rsc CC=golang-dev http://codereview.appspot.com/203050 Committer: Russ Cox <rsc@golang.org>
2010-02-05bug in const float divideKen Thompson1-2/+15
R=rsc CC=golang-dev http://codereview.appspot.com/204042
2010-02-05math: Atan2 special cases and tests; atan2_386Charles L. Dorian5-3/+166
Added special cases, tests and benchmarks for Atan2; added 386 FPU version of Atan2. R=rsc CC=golang-dev http://codereview.appspot.com/201068 Committer: Russ Cox <rsc@golang.org>
2010-02-06Ugly hack to provide some mechanism for printing documentation aboutRob Pike2-2/+38
Go source outside $GOROOT. If the argument is a path starting with / or ., disregard $GOROOT. Also, disable the check for package name matching the directory, which is counterproductive in this case. Apologies for the violence to the code but we need some help documenting Go code outside the standard repository. R=gri CC=golang-dev http://codereview.appspot.com/201064 Committer: Rob Pike <r@golang.org>
2010-02-05asn1: Fixes and additions to marshallingAdam Langley6-47/+161
Marshalling: * Fixes several silly bugs. * Support the RawContents type. * Support the RawValue type. * Recurse into nested interface{}. Both directions: * Better handling of SETs. You can now tag an element in a structure with "set" to get the correct tag for serialisation. * For types that aren't in a structure, you can now name them with "SET" on the end. * SETs are no longer implicitly treated as SEQUENCEs. R=rsc CC=golang-dev http://codereview.appspot.com/201049
2010-02-05crypto/tls: typo fixAdam Langley1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/201047
2010-02-05path: make Join variadicStephen Weinberg2-16/+34
R=rsc, r CC=golang-dev http://codereview.appspot.com/198049 Committer: Russ Cox <rsc@golang.org>
2010-02-055a/6a/8a/5c/6c/8c: remove fixed-size arrays for -I and -D optionsDean Prichard9-32/+41
R=rsc CC=golang-dev http://codereview.appspot.com/198044 Committer: Russ Cox <rsc@golang.org>
2010-02-05math: special cases for Modf, Frexp and Ldexp; added Modf_386Charles L. Dorian6-26/+188
Also moved Modf from bits.go into modf.go and added timing tests. R=rsc CC=golang-dev http://codereview.appspot.com/202042 Committer: Russ Cox <rsc@golang.org>
2010-02-05handle nils safely in Printf.Rob Pike2-2/+12
add some tests for erroneous formats. R=rsc CC=golang-dev http://codereview.appspot.com/201058
2010-02-04Added mingw specific build stubs.Joe Poirier3-0/+27
R=rsc CC=golang-dev http://codereview.appspot.com/198071 Committer: Russ Cox <rsc@golang.org>