]>
Cypherpunks repositories - gostls13.git/log
Charles L. Dorian [Tue, 27 Apr 2010 05:44:39 +0000 (22:44 -0700)]
math: more special cases for signed zero
R=rsc
CC=golang-dev
https://golang.org/cl/937042
Russ Cox [Tue, 27 Apr 2010 05:35:27 +0000 (22:35 -0700)]
gc: more specific error for statements at top level
R=ken2, r, ken3
CC=golang-dev
https://golang.org/cl/
1006041
Russ Cox [Tue, 27 Apr 2010 05:35:12 +0000 (22:35 -0700)]
godoc: add codewalk support
R=adg, gri
CC=golang-dev, r
https://golang.org/cl/
1008042
Russ Cox [Tue, 27 Apr 2010 05:19:04 +0000 (22:19 -0700)]
crypto/tls: simpler implementation of record layer
Depends on CL 957045, 980043,
1004043 .
Fixes #715.
R=agl1, agl
CC=golang-dev
https://golang.org/cl/943043
Russ Cox [Tue, 27 Apr 2010 05:15:25 +0000 (22:15 -0700)]
net: introduce net.Error interface
Adds two more methods, Timeout and Temporary.
Implemented by os.Errno too. The intent is to make
the checks for os.EAGAIN a little less clunky.
It should also let us clean up a bug that Mike Solomon
pointed out: if a network server gets an "out of file descriptors"
error from Accept, the listener should not stop.
It will be able to check this because that error would
have Temporary() == true.
Also clean up some underscore names.
Fixes #442.
R=r
CC=golang-dev, msolo
https://golang.org/cl/957045
Andrew Gerrand [Tue, 27 Apr 2010 00:24:17 +0000 (10:24 +1000)]
doc/root.html: remove key from jsapi src
R=rsc, r
CC=golang-dev
https://golang.org/cl/
1010041
Russ Cox [Mon, 26 Apr 2010 17:36:05 +0000 (10:36 -0700)]
net: add Pipe
R=r
CC=golang-dev
https://golang.org/cl/
1004043
Russ Cox [Mon, 26 Apr 2010 17:02:01 +0000 (10:02 -0700)]
bytes: add Next method to Buffer, simplify Read.
R=r
CC=golang-dev
https://golang.org/cl/980043
Russ Cox [Mon, 26 Apr 2010 17:01:33 +0000 (10:01 -0700)]
xml: fix innerxml handling of & escapes
R=r
CC=golang-dev
https://golang.org/cl/
1009041
Russ Cox [Mon, 26 Apr 2010 17:01:13 +0000 (10:01 -0700)]
template: fix handling of pointer inside interface
R=r
CC=golang-dev
https://golang.org/cl/982043
Russ Cox [Mon, 26 Apr 2010 17:00:18 +0000 (10:00 -0700)]
regexp: allow escaping of any punctuation
More in line with other regexp packages
and egrep; accommodates overzealous escapers.
R=r
CC=golang-dev
https://golang.org/cl/
1008041
Russ Cox [Mon, 26 Apr 2010 08:09:19 +0000 (01:09 -0700)]
libmach: disassemble MOVLQZX correctly
R=ken2
CC=golang-dev
https://golang.org/cl/
1007041
Russ Cox [Fri, 23 Apr 2010 00:52:22 +0000 (17:52 -0700)]
runtime: closures, defer bug fix for Native Client
Enable package tests for Native Client build.
R=r
CC=golang-dev
https://golang.org/cl/957042
Rob Pike [Fri, 23 Apr 2010 00:04:28 +0000 (17:04 -0700)]
os/stat_freebsd.go: maybe fix build for freebsd
R=rsc
CC=golang-dev
https://golang.org/cl/970042
Andrew Gerrand [Fri, 23 Apr 2010 00:02:10 +0000 (10:02 +1000)]
go_faq: typo fix
R=rsc
CC=golang-dev
https://golang.org/cl/962043
Evan Shaw [Thu, 22 Apr 2010 23:57:29 +0000 (16:57 -0700)]
big: Create type nat
Changed most of the functions in nat.go to methods on nat.
R=gri
CC=golang-dev
https://golang.org/cl/976041
Rob Pike [Thu, 22 Apr 2010 21:01:33 +0000 (14:01 -0700)]
FileInfo: regularize the types of some fields.
Uid, Gid become int.
File size info becomes int64.
Times become int64.
R=rsc, cw
CC=golang-dev
https://golang.org/cl/968042
Evan Shaw [Thu, 22 Apr 2010 17:14:53 +0000 (10:14 -0700)]
spec: Fix run-time panic header id
Everything was linking to "Run_time_panics", but the id was "Run_time_errors".
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/961042
Evan Shaw [Thu, 22 Apr 2010 14:43:59 +0000 (00:43 +1000)]
vector: Don't always regenerate {int,string}vector.go
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/917042
Evan Shaw [Thu, 22 Apr 2010 00:12:36 +0000 (17:12 -0700)]
big: Add some tests
R=rsc, gri
CC=golang-dev
https://golang.org/cl/967041
Russ Cox [Wed, 21 Apr 2010 23:40:53 +0000 (16:40 -0700)]
json: Marshal, Unmarshal using new scanner
R=r
CC=golang-dev
https://golang.org/cl/953041
Russ Cox [Wed, 21 Apr 2010 23:27:41 +0000 (16:27 -0700)]
runtime: switch state back to Grunning after recovery
Fixes #733.
R=r
CC=golang-dev
https://golang.org/cl/958041
Russ Cox [Wed, 21 Apr 2010 23:27:31 +0000 (16:27 -0700)]
xml: new "innerxml" tag to collect inner XML
R=r
CC=golang-dev
https://golang.org/cl/971041
Russ Cox [Wed, 21 Apr 2010 23:27:18 +0000 (16:27 -0700)]
utf16: add DecodeRune, EncodeRune
R=r
CC=golang-dev
https://golang.org/cl/970041
Andrew Gerrand [Wed, 21 Apr 2010 23:15:35 +0000 (09:15 +1000)]
faq: more up-to-date info about the Windows port
R=r
CC=golang-dev
https://golang.org/cl/961041
Rob Pike [Wed, 21 Apr 2010 21:54:19 +0000 (14:54 -0700)]
test/bench: reenable chameneosredux for gccgo.
run reverse-complement only once. (garbage is no longer an issue)
R=rsc
CC=golang-dev
https://golang.org/cl/968041
Russ Cox [Wed, 21 Apr 2010 05:51:48 +0000 (22:51 -0700)]
big: fix build - start with zero in scanN
R=gri, eds
CC=golang-dev
https://golang.org/cl/947042
Kyle Consalus [Wed, 21 Apr 2010 05:18:26 +0000 (22:18 -0700)]
strings: add ReadRune to Reader
R=rsc
CC=golang-dev
https://golang.org/cl/940041
Evan Shaw [Wed, 21 Apr 2010 04:41:58 +0000 (21:41 -0700)]
big: eliminate redundant array lookups
This gives about a 6% performance improvement to pidigits.
Thanks to Russ for the suggestion.
R=rsc, gri
CC=golang-dev
https://golang.org/cl/957041
Evan Shaw [Wed, 21 Apr 2010 04:24:07 +0000 (21:24 -0700)]
big: reduce the number of allocations
There was a bug in makeN that caused lots of unnecessary
allocations. Fixing this exposed a few bugs in other
functions which worked when makeN allocated a new slice, but
failed when it simply resized an existing slice. The result
is a pretty big performance improvement. When running
pidigits, here were the numbers I got on amd64:
Before this change:
pidigits 10000
gcc -O2 pidigits.c -lgmp 2.09u 0.02s 2.11r
gc pidigits 12.68u 0.04s 12.72r
gc_B pidigits 12.71u 0.03s 12.75r
After:
pidigits 10000
gcc -O2 pidigits.c -lgmp 2.09u 0.00s 2.10r
gc pidigits 6.82u 0.00s 6.85r
gc_B pidigits 6.55u 0.01s 6.59r
R=rsc, gri
CC=golang-dev
https://golang.org/cl/953042
Andrew Gerrand [Wed, 21 Apr 2010 04:00:56 +0000 (14:00 +1000)]
go_faq: add question: Why does Go perform badly on benchmark X?
R=r, cw
CC=golang-dev
https://golang.org/cl/895043
Russ Cox [Wed, 21 Apr 2010 03:39:55 +0000 (20:39 -0700)]
6l, 8l: include ELF header in PT_LOAD mapping for text segment
Due to page boundary rounding, the header would have
been loaded as part of the text segment already, but this
change placates the "paxctl" tool on so-called hardened
Linux distributions (as if normal distributions weren't already
hard enough to use).
R=r
CC=golang-dev
https://golang.org/cl/954041
Evan Shaw [Wed, 21 Apr 2010 03:39:36 +0000 (20:39 -0700)]
big: Add Lsh and Value; convert pidigits to use big
This yields a pretty significant performance boost to pidigits and there are still some improvements to be made. Here are my numbers:
amd64 w/ bignum:
pidigits 10000
gcc -O2 pidigits.c -lgmp 2.10u 0.00s 2.10r
gc pidigits 22.92u 0.02s 22.97r
gc_B pidigits 22.62u 0.00s 22.65r
amd64 w/ big:
pidigits 10000
gcc -O2 pidigits.c -lgmp 2.09u 0.02s 2.11r
gc pidigits 12.68u 0.04s 12.72r
gc_B pidigits 12.71u 0.03s 12.75r
386 w/ bignum:
pidigits 10000
gcc -O2 pidigits.c -lgmp 2.09u 0.00s 2.09r
gc pidigits 44.30u 0.01s 44.35r
gc_B pidigits 44.29u 0.03s 44.35r
386 w/ big:
pidigits 10000
gcc -O2 pidigits.c -lgmp 2.10u 0.00s 2.10r
gc pidigits 22.70u 0.06s 22.79r
gc_B pidigits 22.80u 0.09s 22.91r
R=rsc, gri
CC=golang-dev
https://golang.org/cl/881050
Russ Cox [Wed, 21 Apr 2010 00:39:31 +0000 (17:39 -0700)]
gc: print x[y:] correctly
R=ken2
CC=golang-dev
https://golang.org/cl/955041
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