]>
Cypherpunks repositories - gostls13.git/log
Russ Cox [Wed, 21 Apr 2010 00:03:25 +0000 (17:03 -0700)]
runtime: rename cgo2c, *.cgo to goc2c, *.goc
to avoid confusion with real cgo
R=r
CC=golang-dev
https://golang.org/cl/904046
Russ Cox [Wed, 21 Apr 2010 00:02:08 +0000 (17:02 -0700)]
reflect: implement Set(nil), SetValue(nil) for PtrValue and MapValue
R=r
CC=golang-dev
https://golang.org/cl/823048
Evan Shaw [Tue, 20 Apr 2010 02:07:22 +0000 (19:07 -0700)]
big: Get rid of function pointers and init function
R=rsc, gri
CC=golang-dev
https://golang.org/cl/929041
Andrew Gerrand [Tue, 20 Apr 2010 00:20:15 +0000 (10:20 +1000)]
godashboard: remove obselete data models and conversion code
R=rsc
CC=golang-dev
https://golang.org/cl/919045
Kyle Consalus [Mon, 19 Apr 2010 23:36:50 +0000 (16:36 -0700)]
Added strings.FieldsFunc, a generalization of strings.Fields in style of the strings.Trim*Func functions.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/824051
Andrew Gerrand [Mon, 19 Apr 2010 23:06:57 +0000 (09:06 +1000)]
godashboard: bz2 compress logs in data store
This results in a 10-20x size reduction per record.
(from ~150kb to ~10kb)
This revision has been pushed live, as I'm in the process of
converting Log records to bz2-compresed CompressedLog records.
I would have waited but we're running seriously low on space
and it seemed like a sane (and reversible) move.
R=rsc
CC=golang-dev
https://golang.org/cl/872048
Evan Shaw [Mon, 19 Apr 2010 22:41:40 +0000 (15:41 -0700)]
gc benchmark: Update package list
Some old packages on the list were preventing this benchmark from working.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/820045
Russ Cox [Mon, 19 Apr 2010 16:21:51 +0000 (09:21 -0700)]
gc: cmplx typecheck bug fix
Fixes #729.
R=ken2
CC=golang-dev
https://golang.org/cl/875048
Andrew Gerrand [Mon, 19 Apr 2010 03:12:11 +0000 (13:12 +1000)]
syscall: match linux Setsid function signature to darwin
SETSID does return an errno - any reason why it has been done this
way in zsyscall_linux_* ? Otherwise it should be the same as darwin.
From SETSID(2) on my Linux box:
ERRORS
On error, -1 is returned, and errno is set.
Fixes #730
R=rsc
CC=golang-dev
https://golang.org/cl/878047
Raif S. Naffah [Sun, 18 Apr 2010 22:22:36 +0000 (15:22 -0700)]
reflect: add FieldByNameFunc
xml: add support for XML marshalling embedded structs.
R=rsc
CC=golang-dev
https://golang.org/cl/837042
Michael Hoisie [Sun, 18 Apr 2010 21:46:24 +0000 (14:46 -0700)]
net: fix bugs in packStructValue
packStructValue was cutting off last byte of uint32
in _Dns_msg.Unpack, use packRR for rr types
R=rsc
CC=golang-dev
https://golang.org/cl/844048
Russ Cox [Sun, 18 Apr 2010 21:45:08 +0000 (14:45 -0700)]
json: scanner, Compact, Indent, and tests
This is the first of probably four separate CLs
for the new implementation of the json package.
The scanner is the core of the new implementation.
The other CLs would be the new decoder,
the new encoder, and support for JSON streams.
R=r
CC=golang-dev
https://golang.org/cl/802051
Rob Pike [Fri, 16 Apr 2010 23:17:47 +0000 (16:17 -0700)]
rpc: Add Close() method to rpc.Client to allow graceful connection teardown.
Fixes #675.
R=rsc, msolo
CC=golang-dev
https://golang.org/cl/882049
Kai Backman [Fri, 16 Apr 2010 10:06:45 +0000 (13:06 +0300)]
the android runner script
this is a version synthesized from rsc's, dean's and my
versions. changes and updates:
- embeds the retval script and pushes a new version to the
device if needed
- passes arguments correctly to the program on the device
- export GOARCH, GOTRACEBACK and GOGC from the local
environment to the device.
- added times.out support to run-arm
enabled a few tests that are now passing and moved the
GOGC=off workaround to run-arm.
R=dpx
CC=golang-dev, rsc
https://golang.org/cl/880046
Andrew Gerrand [Fri, 16 Apr 2010 07:40:49 +0000 (17:40 +1000)]
add Sam Thorogood (of Google Inc.) to CONTRIBUTORS
R=r
CC=golang-dev
https://golang.org/cl/890048
Evan Shaw [Fri, 16 Apr 2010 02:53:35 +0000 (19:53 -0700)]
exp/eval: Always read float literals as base 10
We were letting bignum decide, which caused problems with float literals with a leading 0.
R=gri
CC=golang-dev
https://golang.org/cl/816047
Evan Shaw [Fri, 16 Apr 2010 01:06:22 +0000 (18:06 -0700)]
go/ast: Update comment to mention imaginary literals
R=gri
CC=golang-dev
https://golang.org/cl/846050
Evan Shaw [Fri, 16 Apr 2010 01:04:24 +0000 (18:04 -0700)]
exp/eval: Implement x[lo:]
R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/908044
Russ Cox [Thu, 15 Apr 2010 22:25:46 +0000 (15:25 -0700)]
flag: eliminate unnecessary structs
R=r
CC=golang-dev
https://golang.org/cl/872045
Andrei Vieru [Thu, 15 Apr 2010 16:50:37 +0000 (09:50 -0700)]
"godoc -src pkg_name" excludes duplicates entries
$ godoc xml | grep Copy\(\)
func (c CharData) Copy() CharData
func (c Comment) Copy() Comment
func (d Directive) Copy() Directive
func (p ProcInst) Copy() ProcInst
func (e StartElement) Copy() StartElement
--------------------------------------------
$ godoc -src xml | grep Copy\(\)
func (c CharData) Copy() CharData
--------------------------------------------
$ godoc -src xml Copy
func (c CharData) Copy() CharData { return CharData(makeCopy(c)) }
--------------------------------------------
The command "godoc -src pkg_name" should output the interface of the named package, but it excludes all duplicate entries. Also the command "godoc -src pkg_name method_name" will output the source code only for one method even if there are more of them with the same name in the same package. This patch set fixes this issue.
R=gri
CC=golang-dev
https://golang.org/cl/883051
Kai Backman [Thu, 15 Apr 2010 09:47:49 +0000 (12:47 +0300)]
synchronize ARM runner environment variable with run-arm
R=rsc
CC=golang-dev
https://golang.org/cl/912041
Kai Backman [Thu, 15 Apr 2010 09:43:49 +0000 (12:43 +0300)]
support for printing floats:
fmt.Printf("float32 %f\n", float32(1234.56789))
fmt.Printf("float64 %f\n", float64(1234.56789))
->
float32 1234.567871
float64 1234.567890
this is a snapshot. extended instruction support, corner cases
and fixes coming in subseuent cls.
R=rsc
CC=dpx, golang-dev
https://golang.org/cl/876045
Robert Griesemer [Thu, 15 Apr 2010 04:33:34 +0000 (21:33 -0700)]
scanner: implement Peek() to look at the next char w/o advancing
R=rsc
CC=golang-dev
https://golang.org/cl/840045
Russ Cox [Wed, 14 Apr 2010 08:52:56 +0000 (01:52 -0700)]
bytes: shuffle implementation, making WriteByte 50% faster
R=r
CC=golang-dev
https://golang.org/cl/920041
Andrew Gerrand [Wed, 14 Apr 2010 05:48:48 +0000 (15:48 +1000)]
release.2010-04-13 part two
R=rsc, r
CC=golang-dev
https://golang.org/cl/896045
Russ Cox [Wed, 14 Apr 2010 05:31:47 +0000 (22:31 -0700)]
runtime: better trace for fault due to nil pointer call
R=r
CC=golang-dev
https://golang.org/cl/854048
Alex Brainman [Wed, 14 Apr 2010 05:30:41 +0000 (22:30 -0700)]
os, syscall: mingw bug fixes
R=rsc
CC=golang-dev
https://golang.org/cl/815044
Russ Cox [Wed, 14 Apr 2010 03:55:57 +0000 (20:55 -0700)]
go_spec updates
R=r, iant
CC=golang-dev
https://golang.org/cl/921041
Andrew Gerrand [Wed, 14 Apr 2010 01:49:47 +0000 (11:49 +1000)]
release.2010-04-13
R=rsc, r
CC=golang-dev
https://golang.org/cl/902045
Alex Brainman [Tue, 13 Apr 2010 23:30:11 +0000 (16:30 -0700)]
os: mingw version of Readdir() and Stat() implemented
R=rsc
CC=golang-dev
https://golang.org/cl/851045
Evan Shaw [Tue, 13 Apr 2010 23:13:53 +0000 (16:13 -0700)]
8l: add DOS stub to PE binaries
R=rsc
CC=golang-dev
https://golang.org/cl/915041
Rob Pike [Tue, 13 Apr 2010 20:49:42 +0000 (13:49 -0700)]
netchan: allow client to send as well as receive.
much rewriting and improving, but it's still experimental.
R=rsc
CC=golang-dev
https://golang.org/cl/875045
Rob Pike [Tue, 13 Apr 2010 20:28:08 +0000 (13:28 -0700)]
template: use panic/recover to simplify internal error handling.
R=rsc
CC=golang-dev
https://golang.org/cl/824049
Ian Lance Taylor [Tue, 13 Apr 2010 20:05:29 +0000 (13:05 -0700)]
Use the copy function rather than a loop.
R=r
CC=golang-dev
https://golang.org/cl/882047
Christopher Wedgwood [Tue, 13 Apr 2010 01:10:29 +0000 (18:10 -0700)]
test: minor updates to avoid bitrot
R=rsc, r
CC=golang-dev
https://golang.org/cl/854046
Christopher Wedgwood [Tue, 13 Apr 2010 00:51:35 +0000 (10:51 +1000)]
Remove exp/exception as it's no longer relevant
R=gri, adg
CC=golang-dev, r, rsc
https://golang.org/cl/857048
Rob Pike [Tue, 13 Apr 2010 00:14:28 +0000 (17:14 -0700)]
fixes for rpc:
- don't log normal EOF
- fix ServeConn to block as documented
R=rsc, msolo
CC=golang-dev
https://golang.org/cl/886043
Russ Cox [Mon, 12 Apr 2010 21:28:27 +0000 (14:28 -0700)]
gc: zero unnamed return values on entry if func has defer
R=ken2
CC=golang-dev
https://golang.org/cl/891050
Christopher Wedgwood [Mon, 12 Apr 2010 17:28:50 +0000 (10:28 -0700)]
xml: update documentation to match current coding style
R=rsc, r
CC=golang-dev
https://golang.org/cl/891048
Andrei Vieru [Mon, 12 Apr 2010 17:20:06 +0000 (10:20 -0700)]
fmt format verb %b bug
fmt.Printf("%b", int8(-1)) prints 64 ones instead of 8.
This happens only for signed integers (int8, in16 and int32). I guess it's because of the way the conversion between integer types works. From go spec: "Conversions between integer types. If the value is a signed quantity, it is sign extended to implicit infinite precision ....". And there are several conversions to int64 and uint64 in the fmt package. This pathch solves only half of the problem. On a 32 bit system, an fmt.Printf("%b", int(-1)) should still print 64 ones.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/891049
Rob Pike [Mon, 12 Apr 2010 17:11:18 +0000 (10:11 -0700)]
CLA: Andrei Vieru
R=rsc
CC=golang-dev
https://golang.org/cl/890044
Christopher Wedgwood [Mon, 12 Apr 2010 05:09:34 +0000 (22:09 -0700)]
json: update documentation to match current coding style
R=rsc
CC=golang-dev
https://golang.org/cl/888045
Russ Cox [Sun, 11 Apr 2010 22:24:44 +0000 (15:24 -0700)]
gc: compile s == "" as len(s) == 0
R=ken2
CC=golang-dev
https://golang.org/cl/840043
Russ Cox [Sun, 11 Apr 2010 21:52:06 +0000 (14:52 -0700)]
gc: distinguish fatal compiler bug from error+exit
R=ken2
CC=golang-dev
https://golang.org/cl/902044
Russ Cox [Sun, 11 Apr 2010 21:51:35 +0000 (14:51 -0700)]
gc: make sure main.main has correct type
R=ken2
CC=golang-dev
https://golang.org/cl/883049
Evan Shaw [Sun, 11 Apr 2010 21:49:44 +0000 (14:49 -0700)]
debug/elf: Fix doc comments
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/849049
Evan Shaw [Sun, 11 Apr 2010 19:42:19 +0000 (12:42 -0700)]
exp/eval: Fix example and add target to Makefile
R=rsc
CC=golang-dev
https://golang.org/cl/901042
Christopher Wedgwood [Sun, 11 Apr 2010 17:29:07 +0000 (10:29 -0700)]
archive/tar: update documentation to match current coding style
R=rsc, r
CC=golang-dev
https://golang.org/cl/903044
Christopher Wedgwood [Sun, 11 Apr 2010 17:19:32 +0000 (10:19 -0700)]
nacl: update documentation to match current coding style
R=rsc, r
CC=golang-dev
https://golang.org/cl/822047
Christopher Wedgwood [Sun, 11 Apr 2010 17:18:49 +0000 (10:18 -0700)]
testing: update documentation to match current coding style
R=rsc, r
CC=golang-dev
https://golang.org/cl/823045
Christopher Wedgwood [Sun, 11 Apr 2010 17:17:45 +0000 (10:17 -0700)]
godoc: change od.Dir -> os.FileInfo in comments
R=gri, r
CC=golang-dev, rsc
https://golang.org/cl/819042
Andrew Gerrand [Sun, 11 Apr 2010 13:33:25 +0000 (23:33 +1000)]
time: fix comment typo
R=r
CC=golang-dev
https://golang.org/cl/811044
David Symonds [Sat, 10 Apr 2010 08:53:43 +0000 (01:53 -0700)]
codereview: Mention that deleting a CL is a use of 'hg change' in its header.
R=rsc
CC=golang-dev
https://golang.org/cl/903043
Michael Hoisie [Sat, 10 Apr 2010 01:57:03 +0000 (18:57 -0700)]
strings: add IndexRune, Trim, TrimLeft, TrimRight, and the generic equivalents TrimFunc, TrimLeftFunc, TrimRightFunc
R=rsc, r
CC=golang-dev
https://golang.org/cl/799048
Russ Cox [Fri, 9 Apr 2010 22:30:40 +0000 (15:30 -0700)]
runtime: delete malx, skip_depth argument to malloc
remove internal functions from traces in gopprof instead.
R=r
CC=golang-dev
https://golang.org/cl/855046
Russ Cox [Fri, 9 Apr 2010 21:37:53 +0000 (14:37 -0700)]
freebsd: fix build, maybe
R=r
CC=golang-dev
https://golang.org/cl/909041
Charles L. Dorian [Fri, 9 Apr 2010 21:37:33 +0000 (14:37 -0700)]
math: use ** for exponentiation in comments
R=rsc
CC=golang-dev
https://golang.org/cl/908041
Charles L. Dorian [Fri, 9 Apr 2010 21:37:26 +0000 (14:37 -0700)]
cmath: use ** for exponentiation in comments
R=rsc
CC=golang-dev
https://golang.org/cl/831045
Ian Lance Taylor [Fri, 9 Apr 2010 21:15:15 +0000 (14:15 -0700)]
Run initcgo for all amd64 targets, not just GNU/Linux.
This is required to make cgo export work on Darwin. Note that
this corrects the stack alignment when calling initcgo to that
required by gcc on amd64.
R=rsc
CC=golang-dev
https://golang.org/cl/907041
Ian Lance Taylor [Fri, 9 Apr 2010 20:31:26 +0000 (13:31 -0700)]
A test case for cgo //export.
R=rsc
CC=golang-dev
https://golang.org/cl/881043
Ian Lance Taylor [Fri, 9 Apr 2010 20:31:05 +0000 (13:31 -0700)]
Add //export to cgo.
The new //export comment marks a Go function as callable from
C. The syntax is "//export NAME" where NAME is the name of
the function as seen from C. If such a comment is seen, cgo
will generate two new files: _cgo_export.h and _cgo_export.c.
The _cgo_export.h file provides declarations which C code may
use to call Go functions. The _cgo_export.c file contains
wrappers, and is to be compiled with gcc.
The changes to Make.pkg support using this from a Go Makefile,
though it could probably be more convenient.
R=rsc
CC=golang-dev
https://golang.org/cl/853042
Ian Lance Taylor [Fri, 9 Apr 2010 20:30:35 +0000 (13:30 -0700)]
Library support for cgo export.
These functions are used to call from a C function back to a
Go function. This only includes 386 support.
R=rsc
CC=golang-dev
https://golang.org/cl/834045
Ian Lance Taylor [Fri, 9 Apr 2010 20:30:11 +0000 (13:30 -0700)]
Support cgo export on amd64.
R=rsc
CC=golang-dev
https://golang.org/cl/857045
Rob Pike [Fri, 9 Apr 2010 20:22:05 +0000 (13:22 -0700)]
Update roadmap: delete many accomplishments
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/854045
Rob Pike [Fri, 9 Apr 2010 18:36:40 +0000 (11:36 -0700)]
rename os.Dir to os.FileInfo
R=rsc
CC=golang-dev
https://golang.org/cl/902042
Alex Brainman [Fri, 9 Apr 2010 04:16:05 +0000 (21:16 -0700)]
fix bug in os_test.go checkMode
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/872043
Russ Cox [Fri, 9 Apr 2010 04:13:42 +0000 (21:13 -0700)]
runtime: fix build (panic) for FreeBSD
R=adg
CC=golang-dev
https://golang.org/cl/867046
Russ Cox [Fri, 9 Apr 2010 01:15:30 +0000 (18:15 -0700)]
runtime: turn divide by zero, nil dereference into panics
tested on linux/amd64, linux/386, linux/arm, darwin/amd64, darwin/386.
freebsd untested; will finish in a separate CL.
for now all the panics are errorStrings.
richer structures can be added as necessary
once the mechanism is shaked out.
R=r
CC=golang-dev
https://golang.org/cl/906041
Russ Cox [Thu, 8 Apr 2010 20:24:53 +0000 (13:24 -0700)]
runtime: fix bad status throw
when garbage collector sees recovering goroutine
Fixes #711.
R=r
CC=golang-dev
https://golang.org/cl/869045
Russ Cox [Thu, 8 Apr 2010 20:24:37 +0000 (13:24 -0700)]
runtime: work around kernel bug in Snow Leopard signal handling
Could not take a signal on threads other than the main thread.
If you look at the spinning binary with dtrace, you can see a
fault happening over and over:
$ dtrace -n '
fbt::user_trap:entry /execname=="boot32" && self->count < 10/
{
self->count++;
printf("%s %x %x %x %x", probefunc, arg1, arg2, arg3, arg4);
stack();
tracemem(arg4, 256);
}'
dtrace: description 'fbt::user_trap:entry ' matched 1 probe
CPU ID FUNCTION:NAME
1 17015 user_trap:entry user_trap 0 10
79af0a0 79af0a0
mach_kernel`lo_alltraps+0x12a
0 1 2 3 4 5 6 7 8 9 a b c d e f
0123456789abcdef
0: 0e 00 00 00 37 00 00 00 00 00 00 00 1f 00 00 00 ....7...........
10: 1f 00 00 00 a8 33 00 00 00 00 00 01 00 00 00 00 .....3..........
20: 98 ba dc fe 07 09 00 00 00 00 00 00 98 ba dc fe ................
30: 06 00 00 00 0d 00 00 00 34 00 00 00 9e 1c 00 00 ........4.......
40: 17 00 00 00 00 02 00 00 ac 30 00 00 1f 00 00 00 .........0......
50: 00 00 00 00 00 00 00 00 0d 00 00 00 e0 e6 29 00 ..............).
60: 34 00 00 00 00 00 00 00 9e 1c 00 00 00 00 00 00 4...............
70: 17 00 00 00 00 00 00 00 00 02 00 00 00 00 00 00 ................
80: ac 30 00 00 00 00 00 00 1f 00 00 00 00 00 00 00 .0..............
90: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
a0: 48 00 00 00 10 00 00 00 85 00 00 00 a0 f2 29 00 H.............).
b0: 69 01 00 02 00 00 00 00 e6 93 04 82 ff 7f 00 00 i...............
c0: 2f 00 00 00 00 00 00 00 06 02 00 00 00 00 00 00 /...............
d0: 78 ee 42 01 01 00 00 00 1f 00 00 00 00 00 00 00 x.B.............
e0: 00 ed 9a 07 00 00 00 00 00 00 00 00 00 00 00 00 ................
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
...
The memory dump shows a 32-bit exception frame:
x86_saved_state32
gs = 0x37
fs = 0
es = 0x1f
ds = 0x1f
edi = 0x33a8
esi = 0x01000000
ebp = 0
cr2 = 0xfedcba98
ebx = 0x0907
edx = 0
ecx = 0xfedcba98
eax = 0x06
trapno = 0x0d
err = 0x34
eip = 0x1c9e
cs = 0x17
efl = 0x0200
uesp = 0x30ac
ss = 0x1f
The cr2 of 0xfedcba98 is the address that the new thread read
to cause the fault, but note that the trap is now a GP fault with
error code 0x34, meaning it's moved past the cr2 problem and on
to an invaild segment selector. The 0x34 is suspiciously similar
to the 0x37 in gs, and sure enough, OS X forces gs to have
that value in the signal handler, and if your thread hasn't set
up that segment (known as USER_CTHREAD), you'll fault on the IRET
into the signal handler and never be able to handle a signal.
The kernel bug is that it forces segment 0x37 without making sure
it is a valid segment. Leopard also forced 0x37 but had the courtesy
to set it up first.
Since OS X requires us to set up that segment (using the
thread_fast_set_cthread_self system call), we might as well
use it instead of the more complicated i386_set_ldt call to
set up our per-OS thread storage.
Also add some more zeros to bsdthread_register for new arguments
in Snow Leopard (apparently unnecessary, but being careful).
Fixes #510.
R=r
CC=golang-dev
https://golang.org/cl/824046
Charles L. Dorian [Thu, 8 Apr 2010 20:24:04 +0000 (13:24 -0700)]
math: atan2 special cases (negative zero)
Added Signbit(), revised Copysign()
R=rsc
CC=golang-dev
https://golang.org/cl/822045
Russ Cox [Thu, 8 Apr 2010 03:38:02 +0000 (20:38 -0700)]
runtime: use explicit flag when finalizer goroutine is waiting
Avoids spurious wakeups during other sleeping by that goroutine.
Fixes #711.
R=r
CC=golang-dev
https://golang.org/cl/902041
Rob Pike [Thu, 8 Apr 2010 03:30:55 +0000 (20:30 -0700)]
gotest: update URL printed by failure message.
Fixes #677.
R=rsc
CC=golang-dev
https://golang.org/cl/834046
Joe Poirier [Thu, 8 Apr 2010 00:25:57 +0000 (10:25 +1000)]
gp_spec typo fix: code example in the "Handling panics" section
R=rsc, adg
CC=golang-dev
https://golang.org/cl/881047
Rob Pike [Wed, 7 Apr 2010 23:13:14 +0000 (16:13 -0700)]
Language FAQ: editing tweaks after iant.
R=iant
CC=golang-dev
https://golang.org/cl/874043
Rob Pike [Wed, 7 Apr 2010 23:03:12 +0000 (16:03 -0700)]
Language FAQ: update the entry on exceptions.
R=rsc, iant
CC=golang-dev
https://golang.org/cl/824045
Russ Cox [Wed, 7 Apr 2010 01:30:36 +0000 (18:30 -0700)]
arm: fix build, attempt #2
TBR=kaib
CC=golang-dev
https://golang.org/cl/897041
Russ Cox [Wed, 7 Apr 2010 00:56:48 +0000 (17:56 -0700)]
arm: fix build, attempt #1
TBR=kaib
CC=golang-dev
https://golang.org/cl/883046
Ken Thompson [Wed, 7 Apr 2010 00:33:43 +0000 (17:33 -0700)]
another try at clearing
channel recv data.
R=rsc
CC=golang-dev
https://golang.org/cl/896041
Ken Thompson [Tue, 6 Apr 2010 23:58:52 +0000 (16:58 -0700)]
change channel read to clear
data just read from the channel.
this will make it easier to
recognize when to garbage
collect and finalize.
R=rsc
CC=golang-dev
https://golang.org/cl/882043
Russ Cox [Tue, 6 Apr 2010 23:50:27 +0000 (16:50 -0700)]
net: use chan bool instead of chan *netFD to avoid cycle
The cycle is *netFD -> cw chanl *netFD in struct ->
same *netFD in channel read buffer.
Because channels are finalized, the cycle makes them
uncollectable. A better fix is to make channels not
finalized anymore, and that will happen, but this is
an easy, reasonable workaround until then.
Another good fix would be to zero the channel receive
buffer entry after the receive. That too will happen.
R=r
CC=golang-dev
https://golang.org/cl/875043
Rob Pike [Tue, 6 Apr 2010 23:46:52 +0000 (16:46 -0700)]
flags: better tests.
R=rsc
CC=golang-dev
https://golang.org/cl/864044
Russ Cox [Tue, 6 Apr 2010 20:48:31 +0000 (13:48 -0700)]
runtime: two proc bug fixes
1. Fix bug in GOMAXPROCS when trying to cut number of procs
Race could happen on any system but was
manifesting only on Xen hosted Linux.
2. Fix recover on ARM, where FP != caller SP.
R=r
CC=golang-dev
https://golang.org/cl/880043
Roger Peppe [Tue, 6 Apr 2010 20:29:27 +0000 (13:29 -0700)]
Change goyacc to be reentrant.
Instead of calling the package scope Lex function,
Parse now takes an argument which is used to
do the lexing.
I reverted to having the generated switch
code inside Parse rather than a separate function because
the function needs 7 arguments or a context structure,
which seems unnecessary.
I used yyrun(), not the original $A so that
it's possible to run the backquoted code through gofmt.
R=rsc, ken2, ken3
CC=golang-dev
https://golang.org/cl/879041
Kai Backman [Tue, 6 Apr 2010 19:17:24 +0000 (22:17 +0300)]
replace original float instruction with jump to make branches
to float instructions work correctly.
R=rsc
CC=golang-dev
https://golang.org/cl/870044
Rob Pike [Tue, 6 Apr 2010 17:53:48 +0000 (10:53 -0700)]
fix deps.bash. \t does not mean tab in some seds.
also: add /dev/null to the ls args to repair handling of empty dependency lists.
R=rsc
CC=golang-dev
https://golang.org/cl/883045
Giles Lean [Tue, 6 Apr 2010 17:28:55 +0000 (10:28 -0700)]
syscall package: document that errno is zeroed on success
This is a documentation enhancement only, without any code
change.
The rationale for documenting this precisely is that Unix
programmers who "know" that errno's value is undefined after
a successful system call may be surprised otherwise and
search to be sure that a zero errno may be relied upon after
successful calls.
R=r, rsc1, rsc
CC=golang-dev
https://golang.org/cl/812044
Ian Lance Taylor [Tue, 6 Apr 2010 17:23:21 +0000 (10:23 -0700)]
GNU/Linux sed requires \? rather than ?. Just use * instead.
R=rsc, r
CC=golang-dev
https://golang.org/cl/810043
Joe Poirier [Tue, 6 Apr 2010 06:44:05 +0000 (23:44 -0700)]
libcgo: initial mingw port work - builds but untested
R=rsc
CC=golang-dev
https://golang.org/cl/812041
Russ Cox [Tue, 6 Apr 2010 06:36:52 +0000 (23:36 -0700)]
io/ioutil: fix bug in ReadFile when Open succeeds but Stat fails
R=gri
CC=golang-dev
https://golang.org/cl/867044
Russ Cox [Tue, 6 Apr 2010 06:36:37 +0000 (23:36 -0700)]
runtime: fix Caller
log: add test of Caller
New regexp in log test is picky and will require some
maintenance, but it catches off-by-one mistakes too.
Fixes #710.
R=gri
CC=esko.luontola, golang-dev
https://golang.org/cl/887043
Russ Cox [Tue, 6 Apr 2010 05:55:05 +0000 (22:55 -0700)]
http: fix documentation example
R=adg
CC=golang-dev
https://golang.org/cl/813043
Kyle Consalus [Tue, 6 Apr 2010 05:32:36 +0000 (22:32 -0700)]
test/bench: add k-nucleotide-parallel
R=rsc
CC=golang-dev
https://golang.org/cl/881042
Charles L. Dorian [Tue, 6 Apr 2010 05:10:27 +0000 (22:10 -0700)]
cmath: new package
Complex math function package. Still needs more special case checking.
R=rsc
CC=golang-dev
https://golang.org/cl/874041
Russ Cox [Tue, 6 Apr 2010 05:08:07 +0000 (22:08 -0700)]
deps.bash: be less strict about format of x.go lines
R=iant
CC=golang-dev
https://golang.org/cl/862042
David Symonds [Tue, 6 Apr 2010 01:14:44 +0000 (11:14 +1000)]
doc/go_mem: remove semicolons
R=adg
CC=golang-dev
https://golang.org/cl/893041
Russ Cox [Tue, 6 Apr 2010 00:26:59 +0000 (17:26 -0700)]
runtime: handle malloc > 2GB correctly
R=ken2
CC=golang-dev
https://golang.org/cl/821048
Russ Cox [Mon, 5 Apr 2010 21:38:02 +0000 (14:38 -0700)]
crypto/tls: good defaults
R=agl1
CC=golang-dev
https://golang.org/cl/851041
Russ Cox [Mon, 5 Apr 2010 19:51:09 +0000 (12:51 -0700)]
runtime: various arm fixes
* correct symbol table size
* do not reorder functions in output
* traceback
* signal handling
* use same code for go + defer
* handle leaf functions in symbol table
R=kaib, dpx
CC=golang-dev
https://golang.org/cl/884041
Andrew Gerrand [Mon, 5 Apr 2010 08:17:08 +0000 (18:17 +1000)]
programming_faq: added question on T vs *T method sets
Adding this question on Russ' recommendation - not sure if
there is some detail here I'm missing.
The associated discussion was:
http://groups.google.com/group/golang-nuts/t/
ec6b27e332ed7f77
R=rsc, r
CC=golang-dev
https://golang.org/cl/887042