]> Cypherpunks repositories - gostls13.git/log
gostls13.git
15 years agogo_spec updates weekly.2010-04-13
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

15 years agorelease.2010-04-13
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

15 years agoos: mingw version of Readdir() and Stat() implemented
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

15 years ago8l: add DOS stub to PE binaries
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

15 years agonetchan: allow client to send as well as receive.
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

15 years agotemplate: use panic/recover to simplify internal error handling.
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

15 years agoUse the copy function rather than a loop.
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

15 years agotest: minor updates to avoid bitrot
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

15 years agoRemove exp/exception as it's no longer relevant
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

15 years agofixes for rpc:
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

15 years agogc: zero unnamed return values on entry if func has defer
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

15 years agoxml: update documentation to match current coding style
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

15 years agofmt format verb %b bug
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

15 years agoCLA: Andrei Vieru
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

15 years agojson: update documentation to match current coding style
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

15 years agogc: compile s == "" as len(s) == 0
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

15 years agogc: distinguish fatal compiler bug from error+exit
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

15 years agogc: make sure main.main has correct type
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

15 years agodebug/elf: Fix doc comments
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

15 years agoexp/eval: Fix example and add target to Makefile
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

15 years agoarchive/tar: update documentation to match current coding style
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

15 years agonacl: update documentation to match current coding style
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

15 years agotesting: update documentation to match current coding style
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

15 years agogodoc: change od.Dir -> os.FileInfo in comments
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

15 years agotime: fix comment typo
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

15 years agocodereview: Mention that deleting a CL is a use of 'hg change' in its header.
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

15 years agostrings: add IndexRune, Trim, TrimLeft, TrimRight, and the generic equivalents TrimFu...
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

15 years agoruntime: delete malx, skip_depth argument to malloc
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

15 years agofreebsd: fix build, maybe
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

15 years agomath: use ** for exponentiation in comments
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

15 years agocmath: use ** for exponentiation in comments
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

15 years agoRun initcgo for all amd64 targets, not just GNU/Linux.
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

15 years agoA test case for cgo //export.
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

15 years agoAdd //export to cgo.
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

15 years agoLibrary support for cgo export.
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

15 years agoSupport cgo export on amd64.
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

15 years agoUpdate roadmap: delete many accomplishments
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

15 years agorename os.Dir to os.FileInfo
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

15 years agofix bug in os_test.go checkMode
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

15 years agoruntime: fix build (panic) for FreeBSD
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

15 years agoruntime: turn divide by zero, nil dereference into panics
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

15 years agoruntime: fix bad status throw
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

15 years agoruntime: work around kernel bug in Snow Leopard signal handling
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

15 years agomath: atan2 special cases (negative zero)
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

15 years agoruntime: use explicit flag when finalizer goroutine is waiting
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

15 years agogotest: update URL printed by failure message.
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

15 years agogp_spec typo fix: code example in the "Handling panics" section
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

15 years agoLanguage FAQ: editing tweaks after iant.
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

15 years agoLanguage FAQ: update the entry on exceptions.
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

15 years agoarm: fix build, attempt #2
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

15 years agoarm: fix build, attempt #1
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

15 years agoanother try at clearing
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

15 years agochange channel read to clear
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

15 years agonet: use chan bool instead of chan *netFD to avoid cycle
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

15 years agoflags: better tests.
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

15 years agoruntime: two proc bug fixes
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

15 years agoChange goyacc to be reentrant.
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

15 years agoreplace original float instruction with jump to make branches
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

15 years agofix deps.bash. \t does not mean tab in some seds.
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

15 years agosyscall package: document that errno is zeroed on success
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

15 years agoGNU/Linux sed requires \? rather than ?. Just use * instead.
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

15 years agolibcgo: initial mingw port work - builds but untested
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

15 years agoio/ioutil: fix bug in ReadFile when Open succeeds but Stat fails
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

15 years agoruntime: fix Caller
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

15 years agohttp: fix documentation example
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

15 years agotest/bench: add k-nucleotide-parallel
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

15 years agocmath: new package
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

15 years agodeps.bash: be less strict about format of x.go lines
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

15 years agodoc/go_mem: remove semicolons
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

15 years agoruntime: handle malloc > 2GB correctly
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

15 years agocrypto/tls: good defaults
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

15 years agoruntime: various arm fixes
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

15 years agoprogramming_faq: added question on T vs *T method sets
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

15 years agogc: good syntax error for defer func() {} - missing final ()
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

15 years agonntp: new package, NNTP client
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

15 years agorun.bash: remove MAKEFLAGS=-j4 to prevent crashing on freebsd
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

15 years agogodashboard: fix benchmarks page (first pass)
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

15 years agodebug/proc: fix typo in package documentation
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

15 years agosyscall: implementing some mingw syscalls required by os package
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

15 years agoruntime: turn run time errors checks into panics
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

15 years agodebug/macho: fix error message format
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

15 years agodebug/macho: don't crash when reading non-Mach-O files
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

15 years agogo spec: correct clarification of type declaration
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

15 years agoruntime: correct memory leak in select
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

15 years agokate: Update for recent language changes
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

15 years agobuild script tweaks
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

15 years agotesting/regexp: use recover.
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

15 years agojson: use panic/recover to handle errors in Marshal
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

15 years agogo spec: clarification of type declarations
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

15 years agoDelete xgb from the main repository. It has moved to
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

15 years agogc: fix alignment on non-amd64
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

15 years agotabwriter: use panic/recover to handle errors
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

15 years agoregexp: use panic/recover to handle errors
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

15 years agoruntime: make type assertion a runtime.Error, the first of many
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

15 years agotest for panic and recover
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

15 years agogc: implement panic and recover
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

15 years agogodashboard: new stylesheet, build status pagination
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

15 years agorelease.2010-03-30 part two
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

15 years agoUnicode: fix stupid typo in comment.
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

15 years agoUnicode: provide an ability to supplement the case-mapping tables
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