]>
Cypherpunks repositories - gostls13.git/log
Ken Thompson [Thu, 19 Nov 2009 23:34:11 +0000 (15:34 -0800)]
put copy into goyacc
R=rsc
https://golang.org/cl/156100
Rob Pike [Thu, 19 Nov 2009 19:51:23 +0000 (11:51 -0800)]
os.ReadAt doesn't return EOF at EOF.
thanks to lionkov for the fix.
Fixes #262.
R=rsc
CC=golang-dev
https://golang.org/cl/156097
Russ Cox [Thu, 19 Nov 2009 19:01:16 +0000 (11:01 -0800)]
runtime: mask signals during signal handler on OS X
Fixes #265.
R=r
CC=golang-dev
https://golang.org/cl/157084
Robert Griesemer [Thu, 19 Nov 2009 08:04:30 +0000 (00:04 -0800)]
bug219: parsing difficulties with 6g
R=r, rsc
https://golang.org/cl/157085
Rob Pike [Thu, 19 Nov 2009 06:26:36 +0000 (22:26 -0800)]
- flip in and out to exercise overlap check a little (could do better)
- actually test the results
R=rsc, ken2
CC=golang-dev
https://golang.org/cl/156094
Rob Pike [Thu, 19 Nov 2009 03:58:32 +0000 (19:58 -0800)]
replace custom findByte with bytes.IndexByte
R=rsc
https://golang.org/cl/156093
Adam Langley [Thu, 19 Nov 2009 03:26:12 +0000 (19:26 -0800)]
big: fix large division.
I missed a case.
R=rsc, agl
CC=golang-dev
https://golang.org/cl/156092
Rob Pike [Thu, 19 Nov 2009 03:23:08 +0000 (19:23 -0800)]
add bytes.IndexByte; common case we can make fast later.
also pick off the special case in strings.Index. don't want strings.IndexByte
because the call site will very rarely need to allocate and we can handle the
test in the code itself. bytes.IndexByte can avoid a common allocation.
R=rsc
CC=golang-dev
https://golang.org/cl/156091
Robert Griesemer [Thu, 19 Nov 2009 03:15:25 +0000 (19:15 -0800)]
Allow optional second expression in slice expressions.
Built-in function copy.
Addresses issue 203.
R=rsc, r, iant
https://golang.org/cl/156089
Russ Cox [Thu, 19 Nov 2009 02:17:11 +0000 (18:17 -0800)]
runtime: fix bug on darwin/amd64 - bad g in bsdthread_start
R=r
https://golang.org/cl/157077
Devon H. O'Dell [Thu, 19 Nov 2009 00:51:59 +0000 (16:51 -0800)]
More FreeBSD-touchups. Thundercats are GOOOOO!
R=rsc
CC=golang-dev
https://golang.org/cl/157074
Adam Langley [Thu, 19 Nov 2009 00:38:30 +0000 (16:38 -0800)]
crypto/x509: RawContents -> RawContent
TBR=rsc
R=rsc
https://golang.org/cl/157075
Adam Langley [Thu, 19 Nov 2009 00:32:44 +0000 (16:32 -0800)]
asn1: add support for RawContent
R=rsc
CC=golang-dev
https://golang.org/cl/157056
Adam Langley [Thu, 19 Nov 2009 00:08:24 +0000 (16:08 -0800)]
crypto/x509: add certificate support.
R=rsc
CC=golang-dev
https://golang.org/cl/156054
Russ Cox [Wed, 18 Nov 2009 23:58:44 +0000 (15:58 -0800)]
6l, 8l: add trivial hash table for dynamic symbols
R=r
https://golang.org/cl/156085
Rob Pike [Wed, 18 Nov 2009 23:31:22 +0000 (15:31 -0800)]
test for copy()
R=rsc, ken2
CC=golang-dev
https://golang.org/cl/156084
Rob Pike [Wed, 18 Nov 2009 23:24:24 +0000 (15:24 -0800)]
remove bytes.Copy
replace all calls with calls to copy
use copy in regexp and bytes.Buffer
R=rsc
CC=golang-dev
https://golang.org/cl/157073
Rob Pike [Wed, 18 Nov 2009 23:00:02 +0000 (15:00 -0800)]
bugs in memmove:
- has arguments (no stack split)
- MOVL does not set condition
R=ken2, rsc
https://golang.org/cl/156086
Russ Cox [Wed, 18 Nov 2009 22:26:28 +0000 (14:26 -0800)]
gc: allow implicit conversion of *[10]int -> []int
when used as arg to copy.
R=ken2
https://golang.org/cl/157071
Russ Cox [Wed, 18 Nov 2009 21:51:05 +0000 (13:51 -0800)]
ld: move interpreter string into first block of ELF file
necessary on freebsd.
R=r, dho
CC=golang-dev
https://golang.org/cl/157069
Rob Pike [Wed, 18 Nov 2009 21:43:48 +0000 (13:43 -0800)]
slicecopy was always using 16 (sizeof slice) for the size instead of size of element.
R=rsc
CC=ken2, golang-dev
https://golang.org/cl/156083
Adam Langley [Wed, 18 Nov 2009 21:18:34 +0000 (13:18 -0800)]
net: remove race condition on Close.
Previously a netFd could be queued for reading/writing in the channel,
but close(2)'ed before pollServer got to it. In this case, the kernel
would consider the descriptor closed and the attempt to add it to the
epoll set would fail and panic.
This patch makes Close a roundtrip to the pollServer, although the
actual close(2) still occurs elsewhere to avoid blocking the
pollServer.
Fixes #143.
R=rsc
CC=golang-dev
https://golang.org/cl/152130
Ian Lance Taylor [Wed, 18 Nov 2009 20:48:48 +0000 (12:48 -0800)]
On 32-bit x86, one should configure with --with-arch=.
R=r
https://golang.org/cl/156080
Eden Li [Wed, 18 Nov 2009 17:59:10 +0000 (09:59 -0800)]
Mangle C struct fields that happen to be named after Go keywords by prefixing them with _. Collisions with existing fields are resolved by prefixing the new Go identifier with _ until it matches nothing else in the struct.
Fixes #36.
R=rsc
https://golang.org/cl/157061
Russ Cox [Wed, 18 Nov 2009 17:54:51 +0000 (09:54 -0800)]
big: implement 386 assembly routines
7x speedup on big and crypto/rsa unit tests.
also dropped useAsm in favor of making the
asm stubs jump to the Go versions.
R=agl1
CC=golang-dev, gri
https://golang.org/cl/157062
William Josephson [Wed, 18 Nov 2009 17:19:29 +0000 (09:19 -0800)]
Remove unnecessary execute bits.
R=rsc
https://golang.org/cl/156077
William Josephson [Wed, 18 Nov 2009 17:18:51 +0000 (09:18 -0800)]
Missing flags for FreeBSD shared link as used by cgo in default build.
R=rsc
https://golang.org/cl/157065
William Josephson [Wed, 18 Nov 2009 17:17:47 +0000 (09:17 -0800)]
Update legal.
R=rsc
https://golang.org/cl/156075
Devon H. O'Dell [Wed, 18 Nov 2009 17:11:39 +0000 (09:11 -0800)]
Add an intptr type to runtime; needed in FreeBSD
In thread.c, we need to cast to whatever the native
size of intptr is on the system, but we only have
uintptr available. They're the same size, but can't
do signed casts without this one :).
R=rsc
CC=golang-dev
https://golang.org/cl/156073
Russ Cox [Wed, 18 Nov 2009 17:11:17 +0000 (09:11 -0800)]
make all.bash finish on FreeBSD
R=dho
CC=golang-dev
https://golang.org/cl/156067
Devon H. O'Dell [Wed, 18 Nov 2009 07:58:51 +0000 (23:58 -0800)]
FreeBSD/i386 work
This patchset gets Go to pretty much the same state that
FreeBSD/amd64 is in.
R=rsc
https://golang.org/cl/157055
Eden Li [Wed, 18 Nov 2009 07:42:21 +0000 (23:42 -0800)]
cgo no longer translates function args that are void* into
unsafe.Pointer.
Fixes #254.
R=rsc
https://golang.org/cl/157060
Eden Li [Wed, 18 Nov 2009 07:42:15 +0000 (23:42 -0800)]
Updated AUTHORS/CONTRIBUTORS files according to
http://golang.org/doc/contribute.html#copyright
R=rsc
https://golang.org/cl/156066
Evan Shaw [Wed, 18 Nov 2009 07:34:08 +0000 (23:34 -0800)]
Added Kate syntax highlighting file.
R=rsc
https://golang.org/cl/155075
Evan Shaw [Wed, 18 Nov 2009 07:34:00 +0000 (23:34 -0800)]
Adding my name to authors/contributors.
R=rsc
https://golang.org/cl/154169
Russ Cox [Wed, 18 Nov 2009 07:23:18 +0000 (23:23 -0800)]
codereview: more attempts at robustness in the face of unexpected exceptions
R=r
https://golang.org/cl/156062
Trevor Strohman [Wed, 18 Nov 2009 07:22:41 +0000 (23:22 -0800)]
Adds Trevor Strohman to CONTRIBUTORS.
Google is my employer so no AUTHORS change is needed.
R=rsc
https://golang.org/cl/154174
Russ Cox [Wed, 18 Nov 2009 06:54:20 +0000 (22:54 -0800)]
runtime: add ARM memmove
R=ken2
https://golang.org/cl/156063
Russ Cox [Wed, 18 Nov 2009 06:16:55 +0000 (22:16 -0800)]
copy tweaks
* move memmove to arch-specific subdirectories
* add memmove for arm
* add copyright notices marking them as copied from Inferno
R=ken2
https://golang.org/cl/156061
Rob Pike [Wed, 18 Nov 2009 06:14:34 +0000 (22:14 -0800)]
add a test for %+v in nested structures.
threw in an embedded one for good measure.
R=rsc
CC=golang-dev
https://golang.org/cl/157058
Ken Thompson [Wed, 18 Nov 2009 06:00:59 +0000 (22:00 -0800)]
allow copy to be used without a return value
R=rsc
https://golang.org/cl/156060
Russ Cox [Wed, 18 Nov 2009 06:00:30 +0000 (22:00 -0800)]
runtime: two trivial but important bug fixes
R=r
https://golang.org/cl/156059
Russ Cox [Wed, 18 Nov 2009 06:00:17 +0000 (22:00 -0800)]
release.2009-11-17: tag as of earlier this evening
R=r
https://golang.org/cl/156058
Ken Thompson [Wed, 18 Nov 2009 04:44:35 +0000 (20:44 -0800)]
bug in copy
R=rsc
https://golang.org/cl/156056
Ken Thompson [Wed, 18 Nov 2009 04:41:44 +0000 (20:41 -0800)]
install copy predefined
did not test 386, but should work
shouldnt matter if copy is not used
R=rsc
https://golang.org/cl/156055
Adam Langley [Wed, 18 Nov 2009 02:21:47 +0000 (18:21 -0800)]
crypto/rsa: add PKCS#1 v1.5 signature support.
R=rsc
CC=golang-dev
https://golang.org/cl/156051
Adam Langley [Wed, 18 Nov 2009 02:09:41 +0000 (18:09 -0800)]
asn1:
* add Marshal
* add BitString.RightAlign
* change to using a *time.Time (from time.Time) since that's what
the time package uses.
* return the unparsed data from Unmarshal.
R=rsc
CC=golang-dev
https://golang.org/cl/156047
Russ Cox [Wed, 18 Nov 2009 00:52:36 +0000 (16:52 -0800)]
codereview: handle spaces and other unexpected chars in nicknames
R=r
https://golang.org/cl/157053
Josh Goebel [Wed, 18 Nov 2009 00:46:58 +0000 (16:46 -0800)]
Let us have side by side git if we want
R=r, rsc
https://golang.org/cl/156046
Josh Goebel [Wed, 18 Nov 2009 00:22:29 +0000 (16:22 -0800)]
Add myself to authors and contributors
R=r
https://golang.org/cl/156045
Russ Cox [Wed, 18 Nov 2009 00:03:14 +0000 (16:03 -0800)]
reflect: document that PkgPath and Name return
empty string for unnamed types.
Fixes #249.
R=r
https://golang.org/cl/156052
Russ Cox [Tue, 17 Nov 2009 22:45:10 +0000 (14:45 -0800)]
http: do not crash accessing r.Form if ParseForm fails
Fixes #233.
R=dsymonds1
https://golang.org/cl/154179
Russ Cox [Tue, 17 Nov 2009 22:42:08 +0000 (14:42 -0800)]
runtime: do not create new threads during malloc.
the signal handling stack is a different size than
the normal stack, so it cannot be allocated using
the backup stack allocator.
Fixes #250.
R=agl1
CC=golang-dev
https://golang.org/cl/157044
Rob Pike [Tue, 17 Nov 2009 22:40:07 +0000 (14:40 -0800)]
explain the situation with unicode and identifiers
R=rsc
CC=golang-dev
https://golang.org/cl/156044
Ken Thompson [Tue, 17 Nov 2009 22:11:50 +0000 (14:11 -0800)]
fix botch
R=rsc
https://golang.org/cl/157046
Ken Thompson [Tue, 17 Nov 2009 21:59:38 +0000 (13:59 -0800)]
change a n^2 algorithm in
data initialization to n*log(n)
R=rsc
https://golang.org/cl/158041
Rob Pike [Tue, 17 Nov 2009 19:44:15 +0000 (11:44 -0800)]
improve documentation of runtime. there was no mention of types.
R=rsc
CC=golang-dev
https://golang.org/cl/157042
Rob Pike [Tue, 17 Nov 2009 19:40:25 +0000 (11:40 -0800)]
case insensitive matching in CONTRIBUTORS file
R=rsc
https://golang.org/cl/157043
Aron Nopanen [Tue, 17 Nov 2009 19:29:02 +0000 (11:29 -0800)]
Make non-errored RPC calls return 'nil' error to caller.
Error information is carried from RPC server to client in the string
'Error' field of rpc.Response. An empty string is sent in the success
case. This empty string was being returned to the caller (of Client.Call
or Client.Go), resulting in a non-nil error response.
This change detects an empty-string Response.Error at the client, and
translates it into a nil value in Call.Error.
Tests updated to check error return in success cases.
R=r, rsc
https://golang.org/cl/154159
Aron Nopanen [Tue, 17 Nov 2009 19:28:54 +0000 (11:28 -0800)]
Add myself to 'AUTHORS' and 'CONTRIBUTORS'
R=rsc, r
https://golang.org/cl/154175
Russ Cox [Tue, 17 Nov 2009 17:08:54 +0000 (09:08 -0800)]
codereview: discard \r characters (sigh)
R=r
https://golang.org/cl/157041
Sergio Luis O. B. Correia [Tue, 17 Nov 2009 17:02:47 +0000 (09:02 -0800)]
cmd/cc: Fix -I switch to handle a path with blankspaces correctly
Currently, -I switch can't deal with a path containing spaces.
This commit simplify setinclude(), by removing the special case
of a string that had spaces. After this change, setinclude() will
merely add the given directories to the include path, if it does
not yet exist, and this approach works.
Will be needed for solving issue 115.
R=agl1, rsc, iant2, r
https://golang.org/cl/155059
Sergio Luis O. B. Correia [Tue, 17 Nov 2009 17:02:41 +0000 (09:02 -0800)]
Add myself to list of AUTHORS/CONTRIBUTORS for Go.
R=rsc
https://golang.org/cl/154180
Russ Cox [Tue, 17 Nov 2009 16:47:48 +0000 (08:47 -0800)]
codereview: add clpatch --ignore_hgpatch_errors.
of limited utility but good for creating the metadata
for an AUTHORS/CONTRIBUTORS change even if
the patch doesn't apply cleanly.
R=r
https://golang.org/cl/154140
Russ Cox [Tue, 17 Nov 2009 16:39:56 +0000 (08:39 -0800)]
math: fix argument names in Atan2
(error introduced converting from arg1, arg2)
Fixes #220.
R=r
https://golang.org/cl/156041
Russ Cox [Tue, 17 Nov 2009 16:39:26 +0000 (08:39 -0800)]
Make.pkg: have "make coverage" invoke 6cov with correct binary
Fixes #239.
R=r
https://golang.org/cl/154176
Russ Cox [Tue, 17 Nov 2009 16:39:17 +0000 (08:39 -0800)]
net: enforce timeouts for ReadFrom/WriteTo
Fixes #153.
R=r
https://golang.org/cl/154177
Russ Cox [Tue, 17 Nov 2009 16:39:04 +0000 (08:39 -0800)]
syscall: use correct pointer in recvfrom/sendto.
linux/386 stack trace: use 32-bit hex.
Fixes #159.
R=r
https://golang.org/cl/154178
Devon H. O'Dell [Tue, 17 Nov 2009 16:32:23 +0000 (08:32 -0800)]
Pass ui into PostMessage to avoid nasty/confusing exception
R=rsc
https://golang.org/cl/155079
Devon H. O'Dell [Tue, 17 Nov 2009 16:20:58 +0000 (08:20 -0800)]
FreeBSD-specific porting work.
cgo/libmach remain unimplemented. However, compilers, runtime,
and packages are 100%. I still need to go through and implement
missing syscalls (at least make sure they're all listed), but
for all shipped functionality, this is done. Ship! ;)
R=rsc, VenkateshSrinivas
https://golang.org/cl/152142
Rob Pike [Tue, 17 Nov 2009 07:32:30 +0000 (23:32 -0800)]
Rework gobs to fix bad bug related to sharing of id's between encoder and decoder side.
Fix is to move all decoder state into the decoder object.
Fixes #215.
R=rsc
CC=golang-dev
https://golang.org/cl/155077
Rob Pike [Tue, 17 Nov 2009 07:32:16 +0000 (23:32 -0800)]
fix bug causing empty strings to be become non-nil errors on client side of rpc connection.
R=rsc
CC=golang-dev
https://golang.org/cl/155078
Rob Pike [Tue, 17 Nov 2009 05:56:38 +0000 (21:56 -0800)]
fix typo in Append return type
R=rsc
https://golang.org/cl/155058
Robert Griesemer [Tue, 17 Nov 2009 01:53:39 +0000 (17:53 -0800)]
bug218.go: testcase for issue 238
R=rsc
https://golang.org/cl/154172
Russ Cox [Tue, 17 Nov 2009 01:51:47 +0000 (17:51 -0800)]
runtime: make signal handler work on 386
R=r
https://golang.org/cl/154171
Russ Cox [Tue, 17 Nov 2009 01:40:47 +0000 (17:40 -0800)]
gc: change "can we const evaluate this" from blacklist to whitelist
R=ken2
https://golang.org/cl/155074
Russ Cox [Tue, 17 Nov 2009 01:40:03 +0000 (17:40 -0800)]
6l: fix divide by zero in glibc linker.
repeats 8l change http://code.google.com/p/go/source/detail?r=
7594e16b5cf9
Fixes #179.
R=iant
https://golang.org/cl/154145
Adam Langley [Mon, 16 Nov 2009 23:39:04 +0000 (15:39 -0800)]
unsafe: documentation typo.
Fixes #236.
R=r
CC=golang-dev
https://golang.org/cl/155072
Robert Griesemer [Mon, 16 Nov 2009 23:25:16 +0000 (15:25 -0800)]
Add id attribute to h2 and h3 tags so that they exist when referring
to generated pages even if Javascript has not introduced them yet.
R=rsc
https://golang.org/cl/154167
Robert Griesemer [Mon, 16 Nov 2009 22:26:29 +0000 (14:26 -0800)]
Don't emit line tags when source code is printed as part of
package documentation using templates. The line tag interferes
with the anchor tag introduces by the template.
This fixes an an issue where some headers lost their ability
to link to the respective source code.
R=rsc
https://golang.org/cl/154166
David Symonds [Mon, 16 Nov 2009 21:39:59 +0000 (13:39 -0800)]
Add some primitive type aliases to exp/iterable and define Iter on them.
R=rsc
https://golang.org/cl/155065
David G. Andersen [Mon, 16 Nov 2009 20:40:01 +0000 (12:40 -0800)]
An asked-for-in #go-nuts extension to quickly create a repeated
copy of a string or a byte array.
strings.Repeat("-", 50)
bytes.Repeat(b, 99)
R=rsc
https://golang.org/cl/155063
David G. Andersen [Mon, 16 Nov 2009 20:39:37 +0000 (12:39 -0800)]
Adding my name to authors/contributors. I'm waiting to hear
back from Carnegie Mellon about whether they're interested in
signing the agreement (do you know if they have already?).
In the meantime, I'm submitting these changes on my own time.
If CMU has already signed the corporate contributor agreement,
please remove my name from the AUTHORS list.
R=rsc
https://golang.org/cl/154161
Kai Backman [Mon, 16 Nov 2009 19:58:28 +0000 (11:58 -0800)]
s/AJMP/AB/ to fix build breakage.
R=rsc
https://golang.org/cl/155069
Adam Langley [Mon, 16 Nov 2009 19:56:18 +0000 (11:56 -0800)]
doc: fix typo.
Fixes #218
R=r
CC=golang-dev
https://golang.org/cl/155067
Robert Griesemer [Mon, 16 Nov 2009 16:58:55 +0000 (08:58 -0800)]
- Clarify that struct composite literal keys are field names not selectors.
- Slight re-phrasing of struct type section since "field name" was not
properly introduced.
Fixes #164.
R=r, rsc, iant
https://golang.org/cl/155061
Robert Griesemer [Mon, 16 Nov 2009 01:42:27 +0000 (17:42 -0800)]
Use ElementType consistently.
Fixes #173.
R=r, rsc, r1
https://golang.org/cl/154156
Russ Cox [Mon, 16 Nov 2009 01:24:14 +0000 (17:24 -0800)]
gc: fix up floating point NaN comparisons
Fixes #167.
R=ken2
https://golang.org/cl/155062
Adam Langley [Sun, 15 Nov 2009 22:00:46 +0000 (14:00 -0800)]
crypto/md5: fix comment typo.
Fixes #210.
R=rsc
CC=golang-dev
https://golang.org/cl/155057
Rob Pike [Sun, 15 Nov 2009 21:09:43 +0000 (13:09 -0800)]
add a paragraph about GOMAXPROCS
R=rsc
CC=golang-dev
https://golang.org/cl/154153
Russ Cox [Sun, 15 Nov 2009 20:57:39 +0000 (12:57 -0800)]
godefs: avoid gcc 4'isms in command line.
Fixes #97.
R=r
https://golang.org/cl/155054
Russ Cox [Sun, 15 Nov 2009 20:57:33 +0000 (12:57 -0800)]
godocs.js: fix bad variable name
Thanks to anno.langen.
Fixes #103.
R=r
https://golang.org/cl/155050
Russ Cox [Sun, 15 Nov 2009 20:57:28 +0000 (12:57 -0800)]
makefiles: use correct gcc order in case --as-needed is in use.
Suggested by eostapets.
Fixes #141.
R=r
https://golang.org/cl/155049
Russ Cox [Sun, 15 Nov 2009 20:57:21 +0000 (12:57 -0800)]
cgo: arrange for English error messages
Fixes #21.
R=r
https://golang.org/cl/155048
Russ Cox [Sun, 15 Nov 2009 20:57:15 +0000 (12:57 -0800)]
runtime: avoid crash in Caller
Fixes #176.
R=r
https://golang.org/cl/154146
Russ Cox [Sun, 15 Nov 2009 20:57:09 +0000 (12:57 -0800)]
gc: five bug fixes, one better error.
* check for struct literal assignment to private fields.
* record, fix crash involving parallel map assignment.
* avoid infinite recursion in exportassignok.
* make floating point bounds check precise.
* avoid crash on invalid receiver.
* add context to error about implicit assignment.
Fixes #86.
Fixes #88.
Fixes #158.
Fixes #174.
Fixes #201.
Fixes #204.
R=ken2
https://golang.org/cl/154144
Russ Cox [Sun, 15 Nov 2009 20:56:50 +0000 (12:56 -0800)]
http.URLEscape: escape all bytes required by RFC 2396
Fixes #125.
R=r
https://golang.org/cl/154143
Russ Cox [Sun, 15 Nov 2009 20:56:39 +0000 (12:56 -0800)]
gotest: show the test file pattern in "no test files" error
Fixes #190.
R=r
https://golang.org/cl/154142
Rob Pike [Sun, 15 Nov 2009 20:09:59 +0000 (12:09 -0800)]
fix some typos in the documentation
Fixes #196.
R=rsc
https://golang.org/cl/154152
Rob Pike [Sun, 15 Nov 2009 20:07:27 +0000 (12:07 -0800)]
fix bug in bytes.Map and add test cases for Map in both strings and bytes packages.
thanks to ulrik.sverdrup for the test case.
Fixes #191.
R=rsc
CC=golang-dev
https://golang.org/cl/155056