]>
Cypherpunks repositories - gostls13.git/log
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
Russ Cox [Mon, 5 Apr 2010 06:27:26 +0000 (23:27 -0700)]
gc: good syntax error for defer func() {} - missing final ()
R=ken2
CC=golang-dev
https://golang.org/cl/855044
Conrad Meyer [Mon, 5 Apr 2010 06:23:48 +0000 (23:23 -0700)]
nntp: new package, NNTP client
R=rsc, rsc1
CC=golang-dev
https://golang.org/cl/808041
Andrew Gerrand [Mon, 5 Apr 2010 00:53:38 +0000 (10:53 +1000)]
run.bash: remove MAKEFLAGS=-j4 to prevent crashing on freebsd
R=rsc
CC=golang-dev
https://golang.org/cl/881044
Andrew Gerrand [Sun, 4 Apr 2010 21:34:27 +0000 (07:34 +1000)]
godashboard: fix benchmarks page (first pass)
R=rsc
CC=golang-dev
https://golang.org/cl/844044
Robert Griesemer [Fri, 2 Apr 2010 23:20:47 +0000 (16:20 -0700)]
debug/proc: fix typo in package documentation
R=rsc
CC=golang-dev
https://golang.org/cl/829044
Alex Brainman [Fri, 2 Apr 2010 08:11:17 +0000 (01:11 -0700)]
syscall: implementing some mingw syscalls required by os package
R=rsc
CC=golang-dev
https://golang.org/cl/770041
Russ Cox [Fri, 2 Apr 2010 05:31:27 +0000 (22:31 -0700)]
runtime: turn run time errors checks into panics
R=ken2, r
CC=golang-dev
https://golang.org/cl/871042
Robert Griesemer [Thu, 1 Apr 2010 22:58:10 +0000 (15:58 -0700)]
debug/macho: fix error message format
R=rsc
CC=golang-dev
https://golang.org/cl/836046
Robert Griesemer [Thu, 1 Apr 2010 22:36:44 +0000 (15:36 -0700)]
debug/macho: don't crash when reading non-Mach-O files
R=rsc
CC=golang-dev
https://golang.org/cl/838046
Robert Griesemer [Thu, 1 Apr 2010 19:48:34 +0000 (12:48 -0700)]
go spec: correct clarification of type declaration
R=rsc, r
CC=golang-dev
https://golang.org/cl/855043
Russ Cox [Thu, 1 Apr 2010 18:56:18 +0000 (11:56 -0700)]
runtime: correct memory leak in select
* adds pass 3 to dequeue from channels eagerly
various other cleanup/churn:
* use switch on cas->send in each pass to
factor out common code.
* longer goto labels, commented at target
* be more agressive about can't happen:
throw instead of print + cope.
* use "select" instead of "selectgo" in errors
* use printf for debug prints when possible
R=ken2, ken3
CC=golang-dev, r
https://golang.org/cl/875041
Evan Shaw [Thu, 1 Apr 2010 02:50:27 +0000 (19:50 -0700)]
kate: Update for recent language changes
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/849045
Russ Cox [Thu, 1 Apr 2010 02:48:33 +0000 (19:48 -0700)]
build script tweaks
factor out environment variable checks.
infer $GOROOT etc during build if not set.
it's still necessary to set them for yourself
to use the standard Makefiles.
when running all.bash, don't recompile all the
go packages in run.bash, since make.bash already did.
R=r
CC=golang-dev
https://golang.org/cl/609042
Rob Pike [Thu, 1 Apr 2010 00:57:50 +0000 (17:57 -0700)]
testing/regexp: use recover.
R=rsc
CC=golang-dev
https://golang.org/cl/816042
Andrew Gerrand [Thu, 1 Apr 2010 00:19:37 +0000 (11:19 +1100)]
json: use panic/recover to handle errors in Marshal
R=r, gri
CC=golang-dev
https://golang.org/cl/872041
Robert Griesemer [Wed, 31 Mar 2010 23:37:22 +0000 (16:37 -0700)]
go spec: clarification of type declarations
R=r, rsc
CC=golang-dev
https://golang.org/cl/849044
Nigel Tao [Wed, 31 Mar 2010 23:14:42 +0000 (10:14 +1100)]
Delete xgb from the main repository. It has moved to
http://code.google.com/p/x-go-binding/
R=rsc
CC=golang-dev
https://golang.org/cl/846043
Russ Cox [Wed, 31 Mar 2010 23:04:03 +0000 (16:04 -0700)]
gc: fix alignment on non-amd64
R=ken2
CC=golang-dev
https://golang.org/cl/870041
Robert Griesemer [Wed, 31 Mar 2010 23:01:22 +0000 (16:01 -0700)]
tabwriter: use panic/recover to handle errors
R=rsc, r
CC=golang-dev
https://golang.org/cl/864042
Rob Pike [Wed, 31 Mar 2010 22:58:21 +0000 (15:58 -0700)]
regexp: use panic/recover to handle errors
R=rsc, gri
CC=golang-dev
https://golang.org/cl/821046
Russ Cox [Wed, 31 Mar 2010 22:55:10 +0000 (15:55 -0700)]
runtime: make type assertion a runtime.Error, the first of many
R=r
CC=golang-dev
https://golang.org/cl/805043
Russ Cox [Wed, 31 Mar 2010 18:47:09 +0000 (11:47 -0700)]
test for panic and recover
R=r, adg
CC=golang-dev
https://golang.org/cl/869041
Russ Cox [Wed, 31 Mar 2010 18:46:01 +0000 (11:46 -0700)]
gc: implement panic and recover
R=ken2, r, ken3
CC=golang-dev
https://golang.org/cl/831042
Andrew Gerrand [Wed, 31 Mar 2010 06:01:16 +0000 (17:01 +1100)]
godashboard: new stylesheet, build status pagination
R=rsc, gri, r
CC=golang-dev
https://golang.org/cl/822044
Andrew Gerrand [Wed, 31 Mar 2010 01:38:54 +0000 (12:38 +1100)]
release.2010-03-30 part two
R=rsc
CC=golang-dev
https://golang.org/cl/859042
Rob Pike [Wed, 31 Mar 2010 01:33:06 +0000 (18:33 -0700)]
Unicode: fix stupid typo in comment.
R=rsc
CC=golang-dev
https://golang.org/cl/864041
Rob Pike [Wed, 31 Mar 2010 00:51:03 +0000 (17:51 -0700)]
Unicode: provide an ability to supplement the case-mapping tables
in character and string case mapping routines.
Add a custom mapper for Turkish and Azeri.
A more general solution for deriving the case information from Unicode's
SpecialCasing.txt will require more work.
Fixes #703.
R=rsc, rsc1
CC=golang-dev, mdakin
https://golang.org/cl/824043
Andrew Gerrand [Wed, 31 Mar 2010 00:40:57 +0000 (11:40 +1100)]
release 2010-03-30
R=rsc, gri
CC=golang-dev
https://golang.org/cl/821045
Robert Griesemer [Wed, 31 Mar 2010 00:37:42 +0000 (17:37 -0700)]
godoc: support for title and subtitle headers when serving .html docs
and use it to show version (date) of go spec
Fixes #68.
R=rsc
CC=golang-dev, r
https://golang.org/cl/848042
Russ Cox [Wed, 31 Mar 2010 00:00:27 +0000 (17:00 -0700)]
runtime: fix arm build, slightly.
R=r
CC=golang-dev
https://golang.org/cl/842042
Robert Griesemer [Tue, 30 Mar 2010 23:49:51 +0000 (16:49 -0700)]
go/printer: follow-up on CL 802043
- more test cases
- comment fixes
- minor unrelated changes as part of investigation of issue 702
R=rsc
CC=golang-dev
https://golang.org/cl/860041
Russ Cox [Tue, 30 Mar 2010 21:54:32 +0000 (14:54 -0700)]
time: do not segment time strings by character class.
instead use pure substring matching to find template values.
this makes stdZulu unnecessary and allows formats
like "
20060102 030405" (used in some internet protocols).
this makes Parse not handle years < 0000 or > 9999 anymore.
that seems like an okay price to pay, trading hypothetical
functionality for real functionality.
also changed the comments on the Time struct to use the
same reference date as the format and parse routines.
R=r
CC=golang-dev
https://golang.org/cl/833045
Russ Cox [Tue, 30 Mar 2010 21:32:59 +0000 (14:32 -0700)]
syscall: add IPV6 constants
R=r
CC=golang-dev
https://golang.org/cl/848041
Russ Cox [Tue, 30 Mar 2010 20:15:16 +0000 (13:15 -0700)]
single argument panic on non-darwin and in comments
R=r
CC=golang-dev
https://golang.org/cl/800042
Risto Jaakko Saarelma [Tue, 30 Mar 2010 18:46:21 +0000 (11:46 -0700)]
Gofmt preserves newlines in multiline selector expressions.
This is for making the fluent interface idiom usable with gofmt.
R=gri
CC=golang-dev
https://golang.org/cl/802043
Robert Griesemer [Tue, 30 Mar 2010 18:46:06 +0000 (11:46 -0700)]
contributors, authors: add Risto Saarelma
R=rsc
CC=golang-dev
https://golang.org/cl/836043
Rob Pike [Tue, 30 Mar 2010 18:21:50 +0000 (11:21 -0700)]
Effective Go: update maps description regarding lookup of nonexistent entry.
R=rsc, gri, iant
CC=golang-dev
https://golang.org/cl/821044
Robert Griesemer [Tue, 30 Mar 2010 18:19:58 +0000 (11:19 -0700)]
godoc: don't print package clause in -src command-line mode with filtering
R=rsc
CC=golang-dev
https://golang.org/cl/844041
Russ Cox [Tue, 30 Mar 2010 17:53:16 +0000 (10:53 -0700)]
gc: add panic and recover (still unimplemented in runtime)
main semantic change is to enforce single argument to panic.
runtime: change to 1-argument panic.
use String method on argument if it has one.
R=ken2, r
CC=golang-dev
https://golang.org/cl/812043