summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
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>
2010-02-04time: Sleep through interruptionsChristopher Wedgwood2-2/+39
R=rsc CC=golang-dev http://codereview.appspot.com/202043 Committer: Russ Cox <rsc@golang.org>
2010-02-04FreeBSD: Kill only takes pid & signalChristopher Wedgwood3-8/+5
Cosmetic fix. The FreeBSD system call only takes two arguments. http://fxr.watson.org/fxr/source/kern/kern_sig.c?im=bigexcerpts#L1678 R=dho, rsc CC=golang-dev http://codereview.appspot.com/202051 Committer: Russ Cox <rsc@golang.org>
2010-02-046l: move mapped symbol table lower in memoryAndrew Gerrand4-8/+6
Allows binary to run on some Linux system. Fix for issue 365. R=rsc CC=golang-dev http://codereview.appspot.com/199096
2010-02-04In draw.Draw, separate the source-point and mask-point.Nigel Tao2-56/+66
This lets you draw text (i.e. with mask = a font image) with sources that aren't uniform colors. R=r, rsc CC=golang-dev http://codereview.appspot.com/193067
2010-02-04syscall: on freebsd, darwin, give Kill same signature as on linuxRuss Cox6-6/+12
R=r, cw CC=golang-dev http://codereview.appspot.com/201043
2010-02-04Add named colors (e.g. image.Blue), suitable for exp/draw.Nigel Tao2-0/+51
R=r, rsc CC=golang-dev http://codereview.appspot.com/198066
2010-02-04http: use ChunkWriter in Request.WritePetar Maymounkov1-27/+15
R=rsc CC=golang-dev http://codereview.appspot.com/196079 Committer: Russ Cox <rsc@golang.org>
2010-02-03os/signal: send SIGCHLDs to IncomingChristopher Wedgwood3-3/+3
R=rsc CC=golang-dev http://codereview.appspot.com/199082 Committer: Russ Cox <rsc@golang.org>
2010-02-03search for runtime.a in the package path instead of hardcodingKai Backman4-22/+33
the location. remove last remnants of broken -l flag. R=rsc CC=golang-dev http://codereview.appspot.com/201042
2010-02-03arm: toss make-arm.bashRuss Cox3-99/+7
R=kaib CC=golang-dev http://codereview.appspot.com/199094
2010-02-04Add RFC822 formats as named constants.Rob Pike3-5/+38
Make sure to print a time zone when formatting even if none is defined. Add a comment introducing lookupTimezone (not lookupTimeZone). Fixes isse 577. R=rsc CC=golang-dev http://codereview.appspot.com/196090
2010-02-03debug/gosym: fix test for new 6lRuss Cox1-1/+1
TBR=r CC=golang-dev http://codereview.appspot.com/199091
2010-02-03finalizers; merge package malloc into package runtimeRuss Cox14-119/+370
R=r, cw CC=golang-dev http://codereview.appspot.com/198085
2010-02-03ld: include main and runtime in the library loopRuss Cox5-17/+36
Fixes issue 585. R=r CC=golang-dev http://codereview.appspot.com/195075
2010-02-02sort: fix comment typoAndrey Mirtchovski1-1/+1
R=rsc CC=golang-dev http://codereview.appspot.com/198084 Committer: Russ Cox <rsc@golang.org>
2010-02-02fix build - misc ... vs ...T fixesRuss Cox4-19/+8
TBR=r CC=golang-dev http://codereview.appspot.com/198081
2010-02-02bug252: make ... vs ...T crossing an error, at least for nowRuss Cox1-0/+5
R=r CC=golang-dev http://codereview.appspot.com/199066
2010-02-01gc: bug250, bug251 - recursive interface typesRuss Cox2-35/+70
Fixes issue 287. R=ken2 CC=golang-dev http://codereview.appspot.com/199057
2010-02-02New image.A type, to represent anti-aliased font glyphs.Nigel Tao2-0/+53
R=r, rsc CC=golang-dev http://codereview.appspot.com/199052
2010-02-01gc: bug246Russ Cox4-2/+17
R=ken2 CC=golang-dev http://codereview.appspot.com/198057