]> Cypherpunks.ru repositories - gostls13.git/log
gostls13.git
14 years agorelease 2010-02-17 part one weekly.2010-02-17
Andrew Gerrand [Thu, 18 Feb 2010 00:31:52 +0000 (16:31 -0800)]
release 2010-02-17 part one

R=rsc
CC=golang-dev
https://golang.org/cl/212047

14 years agolanguage spec: make NUL byte rule an implementation restriction
Robert Griesemer [Wed, 17 Feb 2010 23:50:34 +0000 (15:50 -0800)]
language spec: make NUL byte rule an implementation restriction

R=rsc, r, iant, ken2
CC=golang-dev
https://golang.org/cl/211041

14 years agoapply gofmt to src and misc
Robert Griesemer [Wed, 17 Feb 2010 23:46:46 +0000 (15:46 -0800)]
apply gofmt to src and misc

R=rsc
CC=golang-dev
https://golang.org/cl/213041

14 years agogofmt: make sure certain 2-line comments are stable
Robert Griesemer [Wed, 17 Feb 2010 23:41:26 +0000 (15:41 -0800)]
gofmt: make sure certain 2-line comments are stable
       under repeated application of gofmt

R=agl, agl1
CC=golang-dev
https://golang.org/cl/212046

14 years ago8g: respect ullman numbers in float comparison
Russ Cox [Wed, 17 Feb 2010 23:28:45 +0000 (15:28 -0800)]
8g: respect ullman numbers in float comparison

Fixes #602.

R=ken2
CC=golang-dev
https://golang.org/cl/212045

14 years agotime.Ticker: fix bug arising when all tickers are dead.
Rob Pike [Wed, 17 Feb 2010 22:55:29 +0000 (09:55 +1100)]
time.Ticker: fix bug arising when all tickers are dead.
thanks to yglgogo for analysis.

Fixes #593.

R=rsc
CC=golang-dev
https://golang.org/cl/210044

14 years agoAdd Src and Over draw operators.
Nigel Tao [Wed, 17 Feb 2010 03:34:51 +0000 (14:34 +1100)]
Add Src and Over draw operators.

R=r, rsc
CC=golang-dev
https://golang.org/cl/207096

14 years agoinstall: Added gcc, build-essential to apt-get command line.
Andrew Gerrand [Wed, 17 Feb 2010 01:48:43 +0000 (17:48 -0800)]
install: Added gcc, build-essential to apt-get command line.

Mercury now requires build tools to install.

R=rsc
CC=golang-dev
https://golang.org/cl/210042

14 years agogc: undo attempt at fixing recursive interface embedding
Russ Cox [Wed, 17 Feb 2010 01:44:15 +0000 (17:44 -0800)]
gc: undo attempt at fixing recursive interface embedding

Fixes #582.

Update #287
Status: Accepted
Bug fix was too intrusive; undo and reopen issue.

R=ken2
CC=golang-dev
https://golang.org/cl/209044

14 years agogo/scanner: comply with spec changes (do not allow NUL chars)
Robert Griesemer [Wed, 17 Feb 2010 01:39:44 +0000 (17:39 -0800)]
go/scanner: comply with spec changes (do not allow NUL chars)
and complain about illegal UTF-8 code sequences

R=rsc
CC=golang-dev
https://golang.org/cl/209043

14 years agogc: fix build (signed char bug)
Russ Cox [Wed, 17 Feb 2010 01:30:33 +0000 (17:30 -0800)]
gc: fix build (signed char bug)

R=ken2
CC=golang-dev
https://golang.org/cl/210043

14 years agogc: disallow NUL byte, catch more invalid UTF-8, test
Russ Cox [Wed, 17 Feb 2010 00:47:39 +0000 (16:47 -0800)]
gc: disallow NUL byte, catch more invalid UTF-8, test

R=ken2, ken3
CC=golang-dev
https://golang.org/cl/209041

14 years agospec: disallow NUL in source files
Russ Cox [Wed, 17 Feb 2010 00:47:18 +0000 (16:47 -0800)]
spec: disallow NUL in source files

R=r
CC=golang-dev
https://golang.org/cl/209042

14 years agospecification of []int(string) and []byte(string).
Rob Pike [Wed, 17 Feb 2010 00:26:09 +0000 (11:26 +1100)]
specification of []int(string) and []byte(string).
also clarify other string conversions.

R=rsc, iant, gri, ken2
CC=golang-dev
https://golang.org/cl/207103

14 years agoruntime: fix bug in Caller documentation
Russ Cox [Wed, 17 Feb 2010 00:11:11 +0000 (16:11 -0800)]
runtime: fix bug in Caller documentation

R=r
CC=golang-dev
https://golang.org/cl/207110

14 years agogodoc: updated documentation
Robert Griesemer [Tue, 16 Feb 2010 23:36:55 +0000 (15:36 -0800)]
godoc: updated documentation

R=r
CC=golang-dev
https://golang.org/cl/207112

14 years agoThe prefix optimization applies only to the first iteration.
Rob Pike [Tue, 16 Feb 2010 21:49:00 +0000 (08:49 +1100)]
The prefix optimization applies only to the first iteration.

Fixes #596.

R=rsc
CC=golang-dev
https://golang.org/cl/206101

14 years agogodoc: initialize vars depending on flags after parsing the flags.
Robert Griesemer [Tue, 16 Feb 2010 20:49:41 +0000 (12:49 -0800)]
godoc: initialize vars depending on flags after parsing the flags.

R=rsc
CC=golang-dev
https://golang.org/cl/206109

14 years agogodoc: fix initialization issue
Robert Griesemer [Tue, 16 Feb 2010 19:54:12 +0000 (11:54 -0800)]
godoc: fix initialization issue

R=rsc
CC=golang-dev
https://golang.org/cl/207111

14 years agosyscall: make signature of Umask on OS X, FreeBSD match Linux.
Giles Lean [Tue, 16 Feb 2010 19:43:25 +0000 (11:43 -0800)]
syscall: make signature of Umask on OS X, FreeBSD match Linux.

R=rsc
CC=golang-dev
https://golang.org/cl/207071

14 years agocc: use "cpp" anywhere in path, not "/bin/cpp"
Giles Lean [Tue, 16 Feb 2010 19:32:41 +0000 (11:32 -0800)]
cc: use "cpp" anywhere in path, not "/bin/cpp"

R=rsc
CC=golang-dev
https://golang.org/cl/206077

14 years agoA+C: Giles Lean (individual CLA)
Russ Cox [Tue, 16 Feb 2010 19:32:25 +0000 (11:32 -0800)]
A+C: Giles Lean (individual CLA)

R=adg
CC=golang-dev
https://golang.org/cl/206107

14 years agogodoc support for directories outside $GOROOT
Robert Griesemer [Tue, 16 Feb 2010 19:20:55 +0000 (11:20 -0800)]
godoc support for directories outside $GOROOT

Example use: godoc -path=/home/user1:/home/build/foo -http=:6666
will start a local godoc that maps urls starting with /pkg/user1 or
/pkg/foo to the respective roots specified in the path.

Missing: Handling of overlapping package directories, multiple
packages per directory.

R=rsc
CC=golang-dev
https://golang.org/cl/206078

14 years agoremove assumption that all files belonging to a package are in the same directory:
Robert Griesemer [Tue, 16 Feb 2010 19:20:25 +0000 (11:20 -0800)]
remove assumption that all files belonging to a package are in the same directory:
- adjust ast.Package node and doc.PackageDoc correspondingly
- introduce parser.ParseFiles

R=rsc
CC=golang-dev
https://golang.org/cl/207087

14 years agoDon't print ()'s around a range clause's expression.
Robert Griesemer [Tue, 16 Feb 2010 18:19:51 +0000 (10:19 -0800)]
Don't print ()'s around a range clause's expression.
Fixes #605.

R=rsc
CC=golang-dev
https://golang.org/cl/207108

14 years agogc: test & fix handling of very long string constants
Russ Cox [Tue, 16 Feb 2010 18:16:24 +0000 (10:16 -0800)]
gc: test & fix handling of very long string constants

R=ken2
CC=golang-dev
https://golang.org/cl/207106

14 years agoFix printing of named floating point types.
Ian Lance Taylor [Tue, 16 Feb 2010 06:42:49 +0000 (22:42 -0800)]
Fix printing of named floating point types.

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
https://golang.org/cl/207102

14 years agoupdate gofmt test script
Robert Griesemer [Fri, 12 Feb 2010 23:28:11 +0000 (15:28 -0800)]
update gofmt test script

R=adg
CC=golang-dev
https://golang.org/cl/207088

14 years agohttp: clarify ServeHTTP return
Russ Cox [Fri, 12 Feb 2010 22:27:44 +0000 (14:27 -0800)]
http: clarify ServeHTTP return

Fixes #580.

R=adg
CC=golang-dev
https://golang.org/cl/207086

14 years agogc: diagnose invalid array bounds
Russ Cox [Fri, 12 Feb 2010 21:59:02 +0000 (13:59 -0800)]
gc: diagnose invalid array bounds

Fixes #587.

R=ken2
CC=golang-dev
https://golang.org/cl/207085

14 years agoruntime: dummy gettime for mingw/386.
Russ Cox [Fri, 12 Feb 2010 20:49:16 +0000 (12:49 -0800)]
runtime: dummy gettime for mingw/386.

Fixes #598.

R=adg
CC=golang-dev
https://golang.org/cl/206089

14 years agocorrect meaning of "absolute" and "relative"
Robert Griesemer [Thu, 11 Feb 2010 21:59:10 +0000 (13:59 -0800)]
correct meaning of "absolute" and "relative"
(implementation was swapped)

R=adg
CC=golang-dev, rsc
https://golang.org/cl/207069

14 years agoSteps towards more flexible godoc:
Robert Griesemer [Thu, 11 Feb 2010 18:01:03 +0000 (10:01 -0800)]
Steps towards more flexible godoc:
The Mapping object implements a flexible
mapping of relative to absolute paths and
vice versa.

R=rsc
CC=golang-dev
https://golang.org/cl/206067

14 years agostop the 5c optimizer from clobbering extern static registers.
Kai Backman [Thu, 11 Feb 2010 06:42:05 +0000 (22:42 -0800)]
stop the 5c optimizer from clobbering extern static registers.

R=rsc, ken2
CC=golang-dev
https://golang.org/cl/204064

14 years agoruntime: delete MHeapMapCache, which is useless
Russ Cox [Thu, 11 Feb 2010 05:23:08 +0000 (21:23 -0800)]
runtime: delete MHeapMapCache, which is useless
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
https://golang.org/cl/206069

14 years agoexp/draw test.
Nigel Tao [Thu, 11 Feb 2010 02:38:16 +0000 (13:38 +1100)]
exp/draw test.

R=rsc
CC=golang-dev
https://golang.org/cl/203062

14 years agoAdded tests for http.Request/Response.Write()
Petar Maymounkov [Thu, 11 Feb 2010 01:29:03 +0000 (17:29 -0800)]
Added tests for http.Request/Response.Write()

R=rsc
CC=golang-dev
https://golang.org/cl/199070

14 years agoarm: take out fixedbugs/bug120 - gives inconsistent errors
Russ Cox [Thu, 11 Feb 2010 01:21:34 +0000 (17:21 -0800)]
arm: take out fixedbugs/bug120 - gives inconsistent errors

R=kaib
CC=golang-dev
https://golang.org/cl/207062

14 years agonet: use slightly less predictable dns request id
Russ Cox [Thu, 11 Feb 2010 00:35:35 +0000 (16:35 -0800)]
net: use slightly less predictable dns request id

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
https://golang.org/cl/207051

14 years agoarm: fix build on android
Russ Cox [Wed, 10 Feb 2010 23:01:02 +0000 (15:01 -0800)]
arm: fix build on android

R=kaib
CC=golang-dev
https://golang.org/cl/206059

14 years agoruntime: tighten garbage collector
Russ Cox [Wed, 10 Feb 2010 22:59:39 +0000 (14:59 -0800)]
runtime: tighten garbage collector
 * specialize sweepspan as sweepspan0 and sweepspan1.
 * in sweepspan1, inline "free" to avoid expensive mlookup.

R=iant
CC=golang-dev
https://golang.org/cl/206060

14 years agoruntime: do not zero blocks on free (this time for sure!)
Russ Cox [Wed, 10 Feb 2010 19:31:00 +0000 (11:31 -0800)]
runtime: do not zero blocks on free (this time for sure!)

R=iant
CC=golang-dev
https://golang.org/cl/207054

14 years ago8l: pe executable building code changed to include import table for kernel32.dll...
Alex Brainman [Wed, 10 Feb 2010 08:47:52 +0000 (00:47 -0800)]
8l: pe executable building code changed to include import table for kernel32.dll functions

Fixes #586.

R=rsc
CC=golang-dev
https://golang.org/cl/203060

14 years agogc: fix mkopnames and color grep interaction
Russ Cox [Wed, 10 Feb 2010 08:44:43 +0000 (00:44 -0800)]
gc: fix mkopnames and color grep interaction

Fixes #406.

R=adg
CC=golang-dev
https://golang.org/cl/207053

14 years agold: unused variable
Russ Cox [Wed, 10 Feb 2010 08:44:22 +0000 (00:44 -0800)]
ld: unused variable

R=adg
CC=golang-dev
https://golang.org/cl/207050

14 years agoA+C: add Alex Brainman (individual CLA)
Russ Cox [Wed, 10 Feb 2010 08:44:07 +0000 (00:44 -0800)]
A+C: add Alex Brainman (individual CLA)

R=adg
CC=golang-dev
https://golang.org/cl/207052

14 years agoclean new garbage collector benchmark binaries
Russ Cox [Wed, 10 Feb 2010 08:43:31 +0000 (00:43 -0800)]
clean new garbage collector benchmark binaries

TBR=agl1
CC=golang-dev
https://golang.org/cl/207055

14 years agomath: add Exp2; 386 FPU versions of Exp2 and Log1p
Charles L. Dorian [Wed, 10 Feb 2010 08:06:41 +0000 (00:06 -0800)]
math: add Exp2; 386 FPU versions of Exp2 and Log1p

Added tests and benchmarks for Exp2 (special cases same
as Exp). Log1p also enhances speed of inverse hyperbolics.

R=rsc
CC=golang-dev
https://golang.org/cl/206058

14 years agoruntime: garbage collection + malloc performance
Russ Cox [Wed, 10 Feb 2010 08:00:12 +0000 (00:00 -0800)]
runtime: garbage collection + malloc performance
  * add bit tracking finalizer status, avoiding getfinalizer lookup
  * add ability to allocate uncleared memory

R=iant
CC=golang-dev
https://golang.org/cl/207044

14 years agomime: new package, use in http
Michael Hoisie [Wed, 10 Feb 2010 04:47:45 +0000 (20:47 -0800)]
mime: new package, use in http

R=rsc
CC=golang-dev
https://golang.org/cl/186160

14 years agofix garbage benchmark Makefile.
Russ Cox [Wed, 10 Feb 2010 04:29:08 +0000 (20:29 -0800)]
fix garbage benchmark Makefile.

apparently some versions of GNU make cannot
handle the %: %.$O rule.  i don't understand why
and don't care enough to find out.

R=agl1
CC=golang-dev
https://golang.org/cl/206055

14 years agohttp: protect io.WriteString in Request/Response.Write with error checking,
Petar Maymounkov [Wed, 10 Feb 2010 01:42:51 +0000 (17:42 -0800)]
http: protect io.WriteString in Request/Response.Write with error checking,
since they were causing a silent program exit (too many EPIPE's).

R=rsc
CC=golang-dev
https://golang.org/cl/204062

14 years agobug fix in 6c/8c/5c mis-aligned
Ken Thompson [Wed, 10 Feb 2010 01:26:04 +0000 (17:26 -0800)]
bug fix in 6c/8c/5c mis-aligned
function arguments.

R=rsc
CC=golang-dev
https://golang.org/cl/206054

14 years agofix NaCl build for latest runtime changes
Russ Cox [Wed, 10 Feb 2010 00:56:22 +0000 (16:56 -0800)]
fix NaCl build for latest runtime changes

R=iant
CC=golang-dev
https://golang.org/cl/206052

14 years agoruntime: fix FreeBSD build
Russ Cox [Wed, 10 Feb 2010 00:54:51 +0000 (16:54 -0800)]
runtime: fix FreeBSD build

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
https://golang.org/cl/206053

14 years agodashboard: auto-update builder.sh.
Russ Cox [Tue, 9 Feb 2010 21:45:38 +0000 (13:45 -0800)]
dashboard: auto-update builder.sh.
avoid possibility of busy loop pounding on dashboard.

R=agl1
CC=golang-dev
https://golang.org/cl/206051

14 years agomath: add functions Log2, Nextafter, Fdim, Fmax, Fmin
Charles L. Dorian [Tue, 9 Feb 2010 21:33:12 +0000 (13:33 -0800)]
math: add functions Log2, Nextafter, Fdim, Fmax, Fmin

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
https://golang.org/cl/204069

14 years ago8a/8l: Added CMOVcc instructions
Evan Shaw [Tue, 9 Feb 2010 21:33:07 +0000 (13:33 -0800)]
8a/8l: Added CMOVcc instructions

R=rsc
CC=golang-dev
https://golang.org/cl/204067

14 years agoadd simple garbage collector benchmarks to dashboard
Russ Cox [Tue, 9 Feb 2010 21:33:00 +0000 (13:33 -0800)]
add simple garbage collector benchmarks to dashboard

R=agl1
CC=golang-dev
https://golang.org/cl/207043

14 years agomake units compile
Fazlul Shahriar [Tue, 9 Feb 2010 21:20:22 +0000 (13:20 -0800)]
make units compile

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/206044

14 years ago.hgignore: ignore .gitignore (already ignoring .git)
Russ Cox [Tue, 9 Feb 2010 21:18:51 +0000 (13:18 -0800)]
.hgignore: ignore .gitignore (already ignoring .git)

R=agl1
CC=golang-dev
https://golang.org/cl/206047

14 years agoruntime: allow arbitrary return type in SetFinalizer.
Russ Cox [Tue, 9 Feb 2010 05:41:54 +0000 (21:41 -0800)]
runtime: allow arbitrary return type in SetFinalizer.
finalize chan, to free OS X semaphore inside Lock.
os: finalize File, to close fd.

Fixes #503.

R=ken2
CC=golang-dev
https://golang.org/cl/204065

14 years agogc: fix method expression bug
Russ Cox [Tue, 9 Feb 2010 05:40:35 +0000 (21:40 -0800)]
gc: fix method expression bug

R=ken2
CC=golang-dev
https://golang.org/cl/206043

14 years agoStruct field ambiguity test.
Ian Lance Taylor [Mon, 8 Feb 2010 23:40:09 +0000 (15:40 -0800)]
Struct field ambiguity test.

gccgo gets this wrong at the moment.

R=rsc
CC=golang-dev
https://golang.org/cl/205044

14 years agoruntime: instrument malloc + garbage collector.
Russ Cox [Mon, 8 Feb 2010 22:32:22 +0000 (14:32 -0800)]
runtime: instrument malloc + garbage collector.
add simple garbage collection benchmark.

R=iant
CC=golang-dev
https://golang.org/cl/204053

14 years agoFix *l/*c -V flag segfault
Dean Prichard [Mon, 8 Feb 2010 19:53:27 +0000 (11:53 -0800)]
Fix *l/*c -V flag segfault

*l/*c -V will segfault on macos without this trivial fix.

R=adg
CC=golang-dev
https://golang.org/cl/205042

14 years ago*l/*c: add -V flag to display version number
Andrew Gerrand [Mon, 8 Feb 2010 17:46:53 +0000 (09:46 -0800)]
*l/*c: add -V flag to display version number

R=rsc
CC=golang-dev
https://golang.org/cl/204044

14 years agotesting: Fix comment typo
Evan Shaw [Mon, 8 Feb 2010 07:11:54 +0000 (23:11 -0800)]
testing: Fix comment typo

R=iant, rsc
CC=golang-dev
https://golang.org/cl/204068

14 years agoencoding/pem: add marshalling support.
Adam Langley [Sun, 7 Feb 2010 20:22:36 +0000 (15:22 -0500)]
encoding/pem: add marshalling support.

R=rsc
CC=golang-dev
https://golang.org/cl/203043

14 years agoruntime: introduce MemStatsType
Russ Cox [Sun, 7 Feb 2010 09:20:44 +0000 (01:20 -0800)]
runtime: introduce MemStatsType

R=ken2
CC=golang-dev
https://golang.org/cl/204061

14 years agofix comment
Kai Backman [Sun, 7 Feb 2010 05:59:46 +0000 (21:59 -0800)]
fix comment

R=rsc
CC=golang-dev
https://golang.org/cl/203053

14 years agodraw.Draw fast paths for a nil mask (and RGBA dst).
Nigel Tao [Sat, 6 Feb 2010 04:57:19 +0000 (15:57 +1100)]
draw.Draw fast paths for a nil mask (and RGBA dst).

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
https://golang.org/cl/201048

14 years agoMatch gccgo error message.
Ian Lance Taylor [Sat, 6 Feb 2010 04:56:20 +0000 (20:56 -0800)]
Match gccgo error message.

bug251.go:11:2: error: invalid recursive interface

R=rsc
CC=golang-dev
https://golang.org/cl/204052

14 years agoMatch gccgo error messages.
Ian Lance Taylor [Sat, 6 Feb 2010 02:38:27 +0000 (18:38 -0800)]
Match gccgo error messages.

ddd1.go:16:10: error: argument 1 has incompatible type
ddd1.go:17:10: error: argument 1 has incompatible type
ddd1.go:15:10: error: floating point constant truncated to integer

R=rsc
CC=golang-dev
https://golang.org/cl/204048

14 years agohttp: sort header keys when writing Response or Request to wire
Petar Maymounkov [Sat, 6 Feb 2010 02:32:02 +0000 (18:32 -0800)]
http: sort header keys when writing Response or Request to wire

R=rsc
CC=golang-dev
https://golang.org/cl/203050

14 years agobug in const float divide
Ken Thompson [Fri, 5 Feb 2010 23:18:32 +0000 (15:18 -0800)]
bug in const float divide

R=rsc
CC=golang-dev
https://golang.org/cl/204042

14 years agomath: Atan2 special cases and tests; atan2_386
Charles L. Dorian [Fri, 5 Feb 2010 22:55:19 +0000 (14:55 -0800)]
math: Atan2 special cases and tests; atan2_386

Added special cases, tests and benchmarks for Atan2;
added 386 FPU version of Atan2.

R=rsc
CC=golang-dev
https://golang.org/cl/201068

14 years agoUgly hack to provide some mechanism for printing documentation about
Rob Pike [Fri, 5 Feb 2010 21:53:46 +0000 (08:53 +1100)]
Ugly hack to provide some mechanism for printing documentation about
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
https://golang.org/cl/201064

14 years agodashboard: present benchmarks
Russ Cox [Fri, 5 Feb 2010 10:58:40 +0000 (02:58 -0800)]
dashboard: present benchmarks
  * fix bug in benchmark collection: bad benchmark data key
    meant that all the builders collided when writing data.
  * report benchmarks even if make bench exits non-zero.
  * graphical and json presentations

R=agl1
CC=golang-dev
https://golang.org/cl/201065

14 years agoasn1: Fixes and additions to marshalling
Adam Langley [Fri, 5 Feb 2010 10:42:02 +0000 (05:42 -0500)]
asn1: Fixes and additions to marshalling

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
https://golang.org/cl/201049

14 years agocrypto/tls: typo fix
Adam Langley [Fri, 5 Feb 2010 10:39:49 +0000 (05:39 -0500)]
crypto/tls: typo fix

R=rsc
CC=golang-dev
https://golang.org/cl/201047

14 years agopath: make Join variadic
Stephen Weinberg [Fri, 5 Feb 2010 10:39:33 +0000 (02:39 -0800)]
path: make Join variadic

R=rsc, r
CC=golang-dev
https://golang.org/cl/198049

14 years ago5a/6a/8a/5c/6c/8c: remove fixed-size arrays for -I and -D options
Dean Prichard [Fri, 5 Feb 2010 09:40:58 +0000 (01:40 -0800)]
5a/6a/8a/5c/6c/8c: remove fixed-size arrays for -I and -D options

R=rsc
CC=golang-dev
https://golang.org/cl/198044

14 years agomath: special cases for Modf, Frexp and Ldexp; added Modf_386
Charles L. Dorian [Fri, 5 Feb 2010 08:41:30 +0000 (00:41 -0800)]
math: special cases for Modf, Frexp and Ldexp; added Modf_386

Also moved Modf from bits.go into modf.go and added timing tests.

R=rsc
CC=golang-dev
https://golang.org/cl/202042

14 years agoMatch gccgo error messages.
Ian Lance Taylor [Fri, 5 Feb 2010 05:31:30 +0000 (21:31 -0800)]
Match gccgo error messages.

bug121.go:12:3: error: name list not allowed in interface type
bug121.go:16:2: error: expected signature or type name

semi1.go:10:76: error: unexpected semicolon or newline before ‘{’
semi1.go:10:5: error: reference to undefined name ‘x’
semi1.go:10:8: error: reference to undefined name ‘y’
semi1.go:12:3: error: reference to undefined name ‘z’

semi2.go:10:79: error: unexpected semicolon or newline before ‘{’
semi2.go:10:9: error: reference to undefined name ‘x’

semi3.go:10:79: error: unexpected semicolon or newline before ‘{’
semi3.go:10:6: error: reference to undefined name ‘x’
semi3.go:10:9: error: reference to undefined name ‘y’
semi3.go:10:12: error: reference to undefined name ‘z’
semi3.go:12:3: error: reference to undefined name ‘z’

semi4.go:11:2: error: unexpected semicolon or newline before ‘{’
semi4.go:10:6: error: reference to undefined name ‘x’
semi4.go:12:3: error: reference to undefined name ‘z’

semi5.go:10:1: error: unexpected semicolon or newline before ‘{’

semi7.go:11:2: error: unexpected semicolon or newline before ‘else’
semi7.go:10:5: error: reference to undefined name ‘x’

slice.go:9:11: error: missing lower bound in slice expression
slice.go:9:9: error: reference to undefined name ‘y’
slice.go:9:12: error: reference to undefined name ‘z’

R=rsc
CC=golang-dev
https://golang.org/cl/201061

14 years agorelease.2010-02-04
Andrew Gerrand [Fri, 5 Feb 2010 01:39:51 +0000 (17:39 -0800)]
release.2010-02-04

R=rsc
CC=golang-dev
https://golang.org/cl/202055

14 years agorelease.2010-02-04 step one weekly.2010-02-04
Andrew Gerrand [Fri, 5 Feb 2010 01:37:46 +0000 (17:37 -0800)]
release.2010-02-04 step one

R=rsc
CC=golang-dev
https://golang.org/cl/202054

14 years agohandle nils safely in Printf.
Rob Pike [Fri, 5 Feb 2010 00:23:25 +0000 (11:23 +1100)]
handle nils safely in Printf.
add some tests for erroneous formats.

R=rsc
CC=golang-dev
https://golang.org/cl/201058

14 years agoAdded mingw specific build stubs.
Joe Poirier [Thu, 4 Feb 2010 21:09:09 +0000 (13:09 -0800)]
Added mingw specific build stubs.

R=rsc
CC=golang-dev
https://golang.org/cl/198071

14 years agotime: Sleep through interruptions
Christopher Wedgwood [Thu, 4 Feb 2010 21:09:02 +0000 (13:09 -0800)]
time: Sleep through interruptions

R=rsc
CC=golang-dev
https://golang.org/cl/202043

14 years agoFreeBSD: Kill only takes pid & signal
Christopher Wedgwood [Thu, 4 Feb 2010 21:08:54 +0000 (13:08 -0800)]
FreeBSD: Kill only takes pid & signal

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
https://golang.org/cl/202051

14 years agoA+C: Joe Poirier (individual CLA)
Russ Cox [Thu, 4 Feb 2010 21:08:47 +0000 (13:08 -0800)]
A+C: Joe Poirier (individual CLA)

R=adg, adg1
CC=golang-dev
https://golang.org/cl/202044

14 years ago6l: move mapped symbol table lower in memory
Andrew Gerrand [Thu, 4 Feb 2010 20:46:11 +0000 (12:46 -0800)]
6l: move mapped symbol table lower in memory
Allows binary to run on some Linux system.

Fix for issue 365.

R=rsc
CC=golang-dev
https://golang.org/cl/199096

14 years agoAdded Andrew Gerrand to CONTRIBUTORS
Andrew Gerrand [Thu, 4 Feb 2010 19:42:41 +0000 (11:42 -0800)]
Added Andrew Gerrand to CONTRIBUTORS

R=golang-dev
CC=golang-dev
https://golang.org/cl/201041

14 years agoIn draw.Draw, separate the source-point and mask-point.
Nigel Tao [Thu, 4 Feb 2010 10:21:32 +0000 (21:21 +1100)]
In draw.Draw, separate the source-point and mask-point.
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
https://golang.org/cl/193067

14 years agosyscall: on freebsd, darwin, give Kill same signature as on linux
Russ Cox [Thu, 4 Feb 2010 10:06:08 +0000 (02:06 -0800)]
syscall: on freebsd, darwin, give Kill same signature as on linux

R=r, cw
CC=golang-dev
https://golang.org/cl/201043

14 years agoAdd named colors (e.g. image.Blue), suitable for exp/draw.
Nigel Tao [Thu, 4 Feb 2010 09:25:37 +0000 (20:25 +1100)]
Add named colors (e.g. image.Blue), suitable for exp/draw.

R=r, rsc
CC=golang-dev
https://golang.org/cl/198066

14 years agohttp: use ChunkWriter in Request.Write
Petar Maymounkov [Thu, 4 Feb 2010 08:23:01 +0000 (00:23 -0800)]
http: use ChunkWriter in Request.Write

R=rsc
CC=golang-dev
https://golang.org/cl/196079

14 years agoos/signal: send SIGCHLDs to Incoming
Christopher Wedgwood [Thu, 4 Feb 2010 07:24:28 +0000 (23:24 -0800)]
os/signal: send SIGCHLDs to Incoming

R=rsc
CC=golang-dev
https://golang.org/cl/199082

14 years agosearch for runtime.a in the package path instead of hardcoding
Kai Backman [Thu, 4 Feb 2010 06:31:38 +0000 (22:31 -0800)]
search for runtime.a in the package path instead of hardcoding
the location. remove last remnants of broken -l flag.

R=rsc
CC=golang-dev
https://golang.org/cl/201042