]> Cypherpunks repositories - gostls13.git/log
gostls13.git
14 years agoAdd Vinu Rajashekhar <vinutheraj@gmail.com> as a contributor.
Ian Lance Taylor [Tue, 1 Jun 2010 18:55:55 +0000 (11:55 -0700)]
Add Vinu Rajashekhar <vinutheraj@gmail.com> as a contributor.

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

14 years agodoc/code.html: fix error string format
Andrew Gerrand [Tue, 1 Jun 2010 14:50:16 +0000 (16:50 +0200)]
doc/code.html: fix error string format

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

14 years agoedit simple typos
Joe Poirier [Tue, 1 Jun 2010 14:21:34 +0000 (16:21 +0200)]
edit simple typos

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

14 years agoFix typo in gob docs. They were introduced in revision 3199778baf
Nigel Tao [Tue, 1 Jun 2010 00:35:59 +0000 (17:35 -0700)]
Fix typo in gob docs. They were introduced in revision 3199778baf
"change the encoding of uints...".

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

14 years agovector: undo changes to autogenerated files
Fazlul Shahriar [Mon, 31 May 2010 22:53:55 +0000 (15:53 -0700)]
vector: undo changes to autogenerated files

Also, move Do() to vector.go, so that Do() for IntVector and StringVector
is autogenerated.

The only files edited are Makefile, defs.go, and vector.go. The rest are
autogenerated with "make generate".

R=r
CC=golang-dev, hoisie
https://golang.org/cl/1435041

14 years agofmt: fix end-of-array error in parsenum.
Rob Pike [Mon, 31 May 2010 21:57:32 +0000 (14:57 -0700)]
fmt: fix end-of-array error in parsenum.
Fixes #821.

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

14 years agoIntVector.Do now takes an f(int), and StringVector.Do now takes an f(string).
Michael Hoisie [Mon, 31 May 2010 21:55:30 +0000 (14:55 -0700)]
IntVector.Do now takes an f(int), and StringVector.Do now takes an f(string).

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

14 years agofmt.Scan: refactor the implementation so format-driven and normal scanning use the...
Rob Pike [Mon, 31 May 2010 21:53:15 +0000 (14:53 -0700)]
fmt.Scan: refactor the implementation so format-driven and normal scanning use the same function.
simplifies the code significantly.
Still TODO:
- proper format handling
- strings

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

14 years agofmt.Scan:
Rob Pike [Mon, 31 May 2010 17:56:58 +0000 (10:56 -0700)]
fmt.Scan:
- reimplement integer scanning to handle renamed basic integer types
- start implementation of Fscanf and Scanf; not yet ready for general use.

This intermediate CL is a useful checkpoint. A similar change needs to be
done for float and complex, but it seemed worth getting the approach
reviewed before making those changes.

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

14 years agoimplement os.FileInfo.*time_ns for windows
Alex Brainman [Mon, 31 May 2010 11:43:40 +0000 (13:43 +0200)]
implement os.FileInfo.*time_ns for windows

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

14 years agoCorrect _cgo_free when C ABI does not pass first arg on stack.
Ian Lance Taylor [Mon, 31 May 2010 05:22:47 +0000 (22:22 -0700)]
Correct _cgo_free when C ABI does not pass first arg on stack.

It turns out that _cgo_malloc is used, via cmalloc in
runtime/cgocall.c, which is called by code generated by out.go
for the ·_C_CString function.  I can't find a call to
_cgo_free, but given _cgo_malloc we might as well keep
_cgo_free.  This patch fixes it so that it should work on
amd64.

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

14 years agonet: fix typo
Andrew Gerrand [Mon, 31 May 2010 05:05:41 +0000 (07:05 +0200)]
net: fix typo

Fixes #819.

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

14 years agodoc/code: example package with tests
Andrew Gerrand [Sun, 30 May 2010 17:21:49 +0000 (19:21 +0200)]
doc/code: example package with tests

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

14 years agonetchan: improve closing and shutdown. there's still more to do.
Rob Pike [Sat, 29 May 2010 05:32:29 +0000 (22:32 -0700)]
netchan: improve closing and shutdown. there's still more to do.
Fixes #805.

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

14 years agogo spec: change def. of "type compatibility" to be non-recursive
Robert Griesemer [Fri, 28 May 2010 21:17:30 +0000 (14:17 -0700)]
go spec: change def. of "type compatibility" to be non-recursive
and adjust conversion rules.

Also:
- clarification of type identity (no language change)
- adjust special rules for channel assignment/comparison to
  require identical element types (in correspondence to non-
  recursiveness of type compatibility)

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

14 years agoMake image.Color.RGBA return 16 bit color instead of 32 bit color.
Nigel Tao [Fri, 28 May 2010 19:59:21 +0000 (12:59 -0700)]
Make image.Color.RGBA return 16 bit color instead of 32 bit color.

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

14 years agosyscall: windows SysAlloc should use stdcall_raw not syscall
Alex Brainman [Fri, 28 May 2010 18:47:09 +0000 (11:47 -0700)]
syscall: windows SysAlloc should use stdcall_raw not syscall

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

14 years agosyscall: windows syscall trace to assist debugging
Alex Brainman [Fri, 28 May 2010 18:46:10 +0000 (11:46 -0700)]
syscall: windows syscall trace to assist debugging

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

14 years agofmt.Scan: add Fscan and Fscanln and make Scan and Scanln
Rob Pike [Fri, 28 May 2010 18:29:27 +0000 (11:29 -0700)]
fmt.Scan: add Fscan and Fscanln and make Scan and Scanln
read from standard input.  Add description of scanning to
the package comment.

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

14 years agogo spec: Disallow &a notation to obtain a slice
Robert Griesemer [Fri, 28 May 2010 00:23:25 +0000 (17:23 -0700)]
go spec: Disallow &a notation to obtain a slice
from an array; one needs to write a[0:] instead.

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

14 years agoAdd Rectangle.Eq and Point.In.
Roger Peppe [Fri, 28 May 2010 00:19:47 +0000 (17:19 -0700)]
Add Rectangle.Eq and Point.In.
Fix Rectangle.Clip.
It could return a non-canonical rectangle if its arguments
did not overlap.
e.g. Rect(0, 0, 10, 10).Clip(Rect(0, 20, 10, 30)) -> Rect(0, 20, 10, 10)

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

14 years agorelease.2010-05-27 tag
Andrew Gerrand [Thu, 27 May 2010 23:52:46 +0000 (16:52 -0700)]
release.2010-05-27 tag

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

14 years agorelease.2010-05-27 weekly.2010-05-27
Andrew Gerrand [Thu, 27 May 2010 23:50:31 +0000 (16:50 -0700)]
release.2010-05-27

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

14 years agogolang.org: added Resources page, re-organized left hand panel.
Andrew Gerrand [Thu, 27 May 2010 23:47:42 +0000 (16:47 -0700)]
golang.org: added Resources page, re-organized left hand panel.

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

14 years agochanges &x -> x[0:] for array to slice conversion
Russ Cox [Thu, 27 May 2010 21:51:47 +0000 (14:51 -0700)]
changes &x -> x[0:] for array to slice conversion

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

14 years agofmt.Scan: custom formatters
Rob Pike [Thu, 27 May 2010 01:16:41 +0000 (18:16 -0700)]
fmt.Scan: custom formatters

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

14 years agofmt.Scan: custom formatters
Rob Pike [Thu, 27 May 2010 01:15:09 +0000 (18:15 -0700)]
fmt.Scan: custom formatters

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

14 years agogodoc: collect package comments from all package files, not just the first one found
Robert Griesemer [Wed, 26 May 2010 20:44:27 +0000 (13:44 -0700)]
godoc: collect package comments from all package files, not just the first one found

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

14 years agobig: add ModInverse.
Adam Langley [Wed, 26 May 2010 19:58:58 +0000 (15:58 -0400)]
big: add ModInverse.

ModInverse is just a small wrapper around GcdInt, but it's nice to
have in order to be clear about what one is doing in other code.

R=gri, agl1
CC=golang-dev
https://golang.org/cl/1244045

14 years agofmt: fix 386 build. error strings differ for overflow on 386.
Rob Pike [Wed, 26 May 2010 17:01:52 +0000 (10:01 -0700)]
fmt: fix 386 build. error strings differ for overflow on 386.

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

14 years agofmt.Scan, fmt.Scanln: Start of a simple scanning API in the fmt package.
Rob Pike [Wed, 26 May 2010 04:02:35 +0000 (21:02 -0700)]
fmt.Scan, fmt.Scanln: Start of a simple scanning API in the fmt package.
Still to do:
- composite types
- user-defined scanners
- format-driven scanning
The package comment will be updated when more of the functionality is in place.

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

14 years agospec: Fix link to fallthrough statements
Evan Shaw [Wed, 26 May 2010 01:24:07 +0000 (18:24 -0700)]
spec: Fix link to fallthrough statements

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/1303041

14 years agogodashboard: change behaviour of top button
Andrew Gerrand [Tue, 25 May 2010 21:22:12 +0000 (14:22 -0700)]
godashboard: change behaviour of top button

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

14 years agogo spec: minor fix, to match conversion rules 4 and 5
Robert Griesemer [Tue, 25 May 2010 04:25:01 +0000 (21:25 -0700)]
go spec: minor fix, to match conversion rules 4 and 5

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

14 years agoOptimize exp/draw/x11 flusher inner loop.
Nigel Tao [Tue, 25 May 2010 02:32:42 +0000 (19:32 -0700)]
Optimize exp/draw/x11 flusher inner loop.

On my laptop, time to prepare and write 800x600 pixels over the
socket falls from 125-ish ms to 80-ish ms.

Thanks to Roger Peppe for the suggestion.

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

14 years ago8g: out of register bug
Russ Cox [Tue, 25 May 2010 00:22:51 +0000 (17:22 -0700)]
8g: out of register bug

Fixes #806.

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

14 years agogc: more accurate error description
Russ Cox [Tue, 25 May 2010 00:07:51 +0000 (17:07 -0700)]
gc: more accurate error description

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

14 years agofix build - nacl stubs
Russ Cox [Tue, 25 May 2010 00:00:21 +0000 (17:00 -0700)]
fix build - nacl stubs

TBR=nigeltao
CC=golang-dev
https://golang.org/cl/1259042

14 years agogc: fix shift/reduce conflict in go.y export syntax
Russ Cox [Mon, 24 May 2010 23:55:23 +0000 (16:55 -0700)]
gc: fix shift/reduce conflict in go.y export syntax

Fixes #771.

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

14 years agogc: bug281 - bad overlap in stack copy
Russ Cox [Mon, 24 May 2010 23:54:24 +0000 (16:54 -0700)]
gc: bug281 - bad overlap in stack copy

Fixes #807.

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

14 years agonet: udp, implement BindToDevice
Christopher Wedgwood [Mon, 24 May 2010 23:53:23 +0000 (16:53 -0700)]
net: udp, implement BindToDevice

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

14 years agobig: Rat test improvements
Evan Shaw [Mon, 24 May 2010 23:38:41 +0000 (16:38 -0700)]
big: Rat test improvements

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

14 years ago6g: avoid unnecessary conversion in shift bounds check
Russ Cox [Mon, 24 May 2010 22:30:53 +0000 (15:30 -0700)]
6g: avoid unnecessary conversion in shift bounds check

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

14 years agofix build - forgot golden.out
Russ Cox [Mon, 24 May 2010 22:26:20 +0000 (15:26 -0700)]
fix build - forgot golden.out

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

14 years agogc: bug277 - new conversion syntax
Russ Cox [Mon, 24 May 2010 22:25:30 +0000 (15:25 -0700)]
gc: bug277 - new conversion syntax

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

14 years agogc: bug280
Russ Cox [Mon, 24 May 2010 22:25:09 +0000 (15:25 -0700)]
gc: bug280

Fixes #808.

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

14 years agoFix typo in exp/draw/x11.
Nigel Tao [Mon, 24 May 2010 22:07:47 +0000 (15:07 -0700)]
Fix typo in exp/draw/x11.

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

14 years agogo spec: fix and clarify syntax of conversions
Robert Griesemer [Mon, 24 May 2010 21:58:26 +0000 (14:58 -0700)]
go spec: fix and clarify syntax of conversions

Fixes #803.

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

14 years agocodereview: work better with mq
Peter Williams [Mon, 24 May 2010 21:37:00 +0000 (14:37 -0700)]
codereview: work better with mq

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

14 years agoA+C: add Peter Williams (individual CLA)
Russ Cox [Mon, 24 May 2010 21:32:08 +0000 (14:32 -0700)]
A+C: add Peter Williams (individual CLA)

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

14 years agospec: index of non-addressable array is not addressable
Russ Cox [Mon, 24 May 2010 21:31:43 +0000 (14:31 -0700)]
spec: index of non-addressable array is not addressable

Motivated by:

func f() []int
func g() [10]int

f()[1] = 1  // ok
g()[1] = 1 // ERROR

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

14 years agoruntime: free old hashmap pieces during resizing
Russ Cox [Mon, 24 May 2010 21:31:10 +0000 (14:31 -0700)]
runtime: free old hashmap pieces during resizing

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

14 years agolibmach: skip __nl_symbol_ptr section on OS X
Russ Cox [Mon, 24 May 2010 21:30:51 +0000 (14:30 -0700)]
libmach: skip __nl_symbol_ptr section on OS X

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

14 years agogc: bug278
Russ Cox [Mon, 24 May 2010 21:22:54 +0000 (14:22 -0700)]
gc: bug278

Fixes #804.

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

14 years agogc: fix unsafe.Sizeof on ideal constants
Russ Cox [Mon, 24 May 2010 21:18:15 +0000 (14:18 -0700)]
gc: fix unsafe.Sizeof on ideal constants

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

14 years agobug277: tests for conversion syntax
Robert Griesemer [Mon, 24 May 2010 20:57:34 +0000 (13:57 -0700)]
bug277: tests for conversion syntax

- accepted by gccgo, gofmt
- some not accepted by 6g
- spec revision forthcoming

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

14 years agofix windows build
Alex Brainman [Mon, 24 May 2010 18:48:14 +0000 (11:48 -0700)]
fix windows build

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

14 years agoMake draw/x11 treat $DISPLAY the same way x-go-bindings does.
Nigel Tao [Mon, 24 May 2010 18:44:09 +0000 (11:44 -0700)]
Make draw/x11 treat $DISPLAY the same way x-go-bindings does.
This ought to make draw/x11 work on a Mac.

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

14 years agobig: prevent errors in Exp in the face of aliasing
Adam Langley [Mon, 24 May 2010 18:32:55 +0000 (14:32 -0400)]
big: prevent errors in Exp in the face of aliasing

R=gri
CC=golang-dev, golang-dev
https://golang.org/cl/1244044

14 years agosyscall: update freebsd_amd64
Andrew Gerrand [Mon, 24 May 2010 16:58:59 +0000 (09:58 -0700)]
syscall: update freebsd_amd64

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

14 years agokate: convert isn't a built in function
Evan Shaw [Sun, 23 May 2010 21:33:44 +0000 (14:33 -0700)]
kate: convert isn't a built in function

I have no idea how that got in there.

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

14 years agospec: Fix a code tag
Evan Shaw [Sun, 23 May 2010 18:21:47 +0000 (11:21 -0700)]
spec: Fix a code tag

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/1266042

14 years agoWhen making images, allocate one big buffer instead of many small ones.
Nigel Tao [Sun, 23 May 2010 18:12:00 +0000 (11:12 -0700)]
When making images, allocate one big buffer instead of many small ones.

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

14 years agogo/printer, gofmt: fix printing of labels,
Robert Griesemer [Sat, 22 May 2010 03:25:08 +0000 (20:25 -0700)]
go/printer, gofmt: fix printing of labels,
apply gofmt to src, misc

Fixes #752.

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

14 years agotest/hilbert.go: convert to test case and benchmark for big.Rat
Robert Griesemer [Sat, 22 May 2010 03:20:17 +0000 (20:20 -0700)]
test/hilbert.go: convert to test case and benchmark for big.Rat

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

14 years agoroll back 1193046 - fix build
Russ Cox [Sat, 22 May 2010 01:29:18 +0000 (18:29 -0700)]
roll back 1193046 - fix build

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

14 years agocgo: better error for no C symbols
Devon H. O'Dell [Sat, 22 May 2010 00:31:18 +0000 (17:31 -0700)]
cgo: better error for no C symbols

R=rsc, iant
CC=golang-dev, graeme.perrow
https://golang.org/cl/1193046

14 years agonet: implement raw sockets
Christopher Wedgwood [Sat, 22 May 2010 00:30:40 +0000 (17:30 -0700)]
net: implement raw sockets

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

14 years agobig: Add Rat type
Evan Shaw [Fri, 21 May 2010 23:14:55 +0000 (16:14 -0700)]
big: Add Rat type

Implementations are pretty rough and simple at this point, but it's a start.

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

14 years agoissue 789: keep test case
Robert Griesemer [Fri, 21 May 2010 21:53:54 +0000 (14:53 -0700)]
issue 789: keep test case

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

14 years agoruntime: correct tracebacks for nascent goroutines, even closures
Russ Cox [Fri, 21 May 2010 21:40:21 +0000 (14:40 -0700)]
runtime: correct tracebacks for nascent goroutines, even closures

Fixes #780.

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

14 years agosyscall: add Utimes, Futimes stubs for NaCl - fix build
Russ Cox [Fri, 21 May 2010 21:39:10 +0000 (14:39 -0700)]
syscall: add Utimes, Futimes stubs for NaCl - fix build

TBR=nigeltao
CC=golang-dev
https://golang.org/cl/1262042

14 years agosyscall: regenerate zsyscall_linux_arm.go - fix build
Russ Cox [Fri, 21 May 2010 21:33:17 +0000 (14:33 -0700)]
syscall: regenerate zsyscall_linux_arm.go - fix build

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

14 years agobig: fix Int.SetString comment, simplify implementation,
Robert Griesemer [Fri, 21 May 2010 21:28:34 +0000 (14:28 -0700)]
big: fix Int.SetString comment, simplify implementation,
     always return z for nat.scan

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

14 years agobignum: deprecate by moving into exp directory
Robert Griesemer [Fri, 21 May 2010 21:14:22 +0000 (14:14 -0700)]
bignum: deprecate by moving into exp directory

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

14 years agobig: implemented Int.Binomial (to be used in test/hilbert.go with the
Robert Griesemer [Fri, 21 May 2010 06:10:51 +0000 (23:10 -0700)]
big: implemented Int.Binomial (to be used in test/hilbert.go with the
     forthcoming implementation of big.Rat)

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

14 years agogc: handle use of builtin function outside function call
Russ Cox [Fri, 21 May 2010 05:57:08 +0000 (22:57 -0700)]
gc: handle use of builtin function outside function call
tweaks & tests of last bug fix too.

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

14 years agogc: line number bug fix
Russ Cox [Fri, 21 May 2010 05:19:50 +0000 (22:19 -0700)]
gc: line number bug fix

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

14 years agoclean up bug 275
Ken Thompson [Fri, 21 May 2010 04:01:59 +0000 (21:01 -0700)]
clean up bug 275

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

14 years agofix bug 275
Ken Thompson [Fri, 21 May 2010 03:56:28 +0000 (20:56 -0700)]
fix bug 275

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

14 years agogc: disallow · in Go programs
Russ Cox [Fri, 21 May 2010 00:34:22 +0000 (17:34 -0700)]
gc: disallow · in Go programs

Fixes #793.

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

14 years agofix issue 798
Ken Thompson [Fri, 21 May 2010 00:31:28 +0000 (17:31 -0700)]
fix issue 798
cannot allocate an audomatic temp
while real registers are allocated.
there is a chance that the automatic
will be allocated to one of the
allocated registers. the fix is to
not registerize such variables.

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

14 years agonetFD: fix race between Close and Read/Write
Michael Hoisie [Fri, 21 May 2010 00:13:50 +0000 (17:13 -0700)]
netFD: fix race between Close and Read/Write

Fixes #783.

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

14 years agoFix Rectangle.Canon()
Roger Peppe [Thu, 20 May 2010 21:33:50 +0000 (14:33 -0700)]
Fix Rectangle.Canon()

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

14 years agoFast-ish path for drawing onto an image.RGBA destination.
Nigel Tao [Thu, 20 May 2010 20:57:18 +0000 (13:57 -0700)]
Fast-ish path for drawing onto an image.RGBA destination.

Time to draw.Draw a 200x200 image fell from 18.4ms (and 1 malloc) to
5.6ms (and 0 mallocs). It's still relatively slow since it assumes
nothing about the src or mask images, but it does remove the malloc.
There are existing faster, more specialized paths for copies, fills
and image glyph masks.

Also added a "compare to a slow but obviously correct implementation"
check to draw_test.go.

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

14 years agosyscall: linux, implement BindToDevice
Christopher Wedgwood [Thu, 20 May 2010 16:43:13 +0000 (09:43 -0700)]
syscall: linux, implement BindToDevice

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

14 years agosyscall: bsd, stub BindToDevice
Christopher Wedgwood [Thu, 20 May 2010 16:39:35 +0000 (09:39 -0700)]
syscall: bsd, stub BindToDevice

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

14 years agoruntime: avoid allocation for fixed strings
Russ Cox [Thu, 20 May 2010 04:33:31 +0000 (21:33 -0700)]
runtime: avoid allocation for fixed strings

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

14 years agodashboard: reintroduce Benchmark model
Andrew Gerrand [Thu, 20 May 2010 00:53:41 +0000 (17:53 -0700)]
dashboard: reintroduce Benchmark model

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

14 years agoos: add Chtimes function
Brad Fitzpatrick [Thu, 20 May 2010 00:48:53 +0000 (17:48 -0700)]
os: add Chtimes function

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

14 years agosyscall: add Utimes on Darwin/FreeBSD, add Futimes everywhere
Russ Cox [Thu, 20 May 2010 00:47:57 +0000 (17:47 -0700)]
syscall: add Utimes on Darwin/FreeBSD, add Futimes everywhere

Needed for CL 1103041 and beyond.

R=adg, bradfitzpatrick
CC=bradfitz, golang-dev
https://golang.org/cl/1172042

14 years agobug275: cannot apply real() to a complex array element
Robert Griesemer [Wed, 19 May 2010 20:10:00 +0000 (13:10 -0700)]
bug275: cannot apply real() to a complex array element

R=r, ken2
CC=golang-dev
https://golang.org/cl/1260041

14 years agoruntime: allow large map values
Russ Cox [Wed, 19 May 2010 19:57:47 +0000 (12:57 -0700)]
runtime: allow large map values

Fixes #772.

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

14 years agobig: potential bug fix, cleanups
Robert Griesemer [Wed, 19 May 2010 16:36:50 +0000 (09:36 -0700)]
big: potential bug fix, cleanups

- implemented setWord, use it where setUint64 is wrong
- divLarge: use fast mulWW, divWW; implemented mulWW, divWW
- better assembly code for addMulVVW

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

14 years agofix build - arm tests
Russ Cox [Wed, 19 May 2010 06:27:35 +0000 (23:27 -0700)]
fix build - arm tests

TBR=kaib
CC=golang-dev
https://golang.org/cl/1256042

14 years agofix build - no netchan tests under NaCl
Russ Cox [Wed, 19 May 2010 06:25:07 +0000 (23:25 -0700)]
fix build - no netchan tests under NaCl

TBR=r
CC=golang-dev
https://golang.org/cl/1230042

14 years agobytes: add Trim, TrimLeft, TrimRight, and generic functions
Michael Hoisie [Wed, 19 May 2010 06:01:05 +0000 (23:01 -0700)]
bytes: add Trim, TrimLeft, TrimRight, and generic functions

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

14 years agogc: Better error when computing remainder of non-int
Evan Shaw [Wed, 19 May 2010 05:41:12 +0000 (22:41 -0700)]
gc: Better error when computing remainder of non-int

Previously the compiler would just emit "internal compiler error" when
trying to compute the remainder of floats or complex types.

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

14 years agomath: amd64 versions of fdim, fmax, fmin
Charles L. Dorian [Wed, 19 May 2010 05:33:50 +0000 (22:33 -0700)]
math: amd64 versions of fdim, fmax, fmin

Uses the SSE2 max, min instructions. Also shorter sqrt_amd64.s

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

14 years agomath: signed zero Sqrt special case
Charles L. Dorian [Wed, 19 May 2010 05:16:01 +0000 (22:16 -0700)]
math: signed zero Sqrt special case

IEEE 754 says: sqrt(-0) = -0

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