]>
Cypherpunks repositories - gostls13.git/log
Jaroslavas Počepko [Thu, 8 Sep 2011 23:39:23 +0000 (09:39 +1000)]
os: forgotten file of submitted CL
4984051
R=alex.brainman
CC=golang-dev
https://golang.org/cl/
4983053
Robert Griesemer [Thu, 8 Sep 2011 22:35:56 +0000 (15:35 -0700)]
godoc: show packages matching a query at the top
Also: fix layout of textual search results and
fix a field reference in the respective template.
Fixes #1987.
R=rsc, r
CC=golang-dev
https://golang.org/cl/
4962061
Mike Samuel [Thu, 8 Sep 2011 21:18:20 +0000 (07:18 +1000)]
exp/template/html: autoescape actions in HTML style attributes.
This does not wire up <style> elements as that is pending support
for raw text content in CL https://golang.org/cl/
4964045 /
This CL allows actions to appear in contexts like
selectors: {{.Tag}}{{.Class}}{{.Id}}
property names: border-{{.BidiLeadingEdge}}
property values: color: {{.Color}}
strings: font-family: "{{font-name}}"
URL strings: background: "/foo?image={{.ImgQuery}}"
URL literals: background: url("{{.Image}}")
but disallows actions inside CSS comments and disallows
embedding of JS in CSS entirely.
It is based on the CSS3 lexical grammar with affordances for
common browser extensions including line comments.
R=nigeltao
CC=golang-dev
https://golang.org/cl/
4968058
Russ Cox [Thu, 8 Sep 2011 19:00:49 +0000 (15:00 -0400)]
exp/regexp: add MustCompilePOSIX
R=r
CC=golang-dev
https://golang.org/cl/
4962060
Russ Cox [Thu, 8 Sep 2011 18:49:51 +0000 (14:49 -0400)]
exp/regexp: add CompilePOSIX, more tests
R=r
CC=golang-dev
https://golang.org/cl/
4967060
Russ Cox [Thu, 8 Sep 2011 18:18:02 +0000 (14:18 -0400)]
exp/regexp/syntax: import all RE2 parse tests + fix bugs
R=r
CC=golang-dev
https://golang.org/cl/
4952061
Mikio Hara [Thu, 8 Sep 2011 17:59:34 +0000 (13:59 -0400)]
syscall: add route flags for linux
R=golang-dev
CC=golang-dev
https://golang.org/cl/
4956069
Robert Griesemer [Thu, 8 Sep 2011 17:37:26 +0000 (10:37 -0700)]
godoc: fix local link for factory functions
- fix suggested by rodrigo.moraes
Fixes #1755.
R=rsc
CC=golang-dev
https://golang.org/cl/
4977057
Russ Cox [Thu, 8 Sep 2011 14:09:25 +0000 (10:09 -0400)]
exp/regexp: leftmost-longest matching
Not exposed in the API yet, but passes tests.
R=r
CC=golang-dev
https://golang.org/cl/
4967059
Russ Cox [Thu, 8 Sep 2011 14:08:49 +0000 (10:08 -0400)]
codereview: Mercurial 1.9 fix for hg diff @nnn
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
4969063
Dmitriy Vyukov [Thu, 8 Sep 2011 07:58:48 +0000 (11:58 +0400)]
sync/atomic: add 64-bit Load and Store
R=rsc
CC=golang-dev
https://golang.org/cl/
4977054
Jaroslavas Počepko [Thu, 8 Sep 2011 07:27:41 +0000 (17:27 +1000)]
os: os.RemoveAll has to check for 2 error codes on Windows. ENOENT is not enough.
os.Lstat can return ENOTDIR as well.
R=golang-dev, r, alex.brainman
CC=golang-dev, rsc
https://golang.org/cl/
4984051
Paul Lalonde [Thu, 8 Sep 2011 06:32:40 +0000 (16:32 +1000)]
Windows: net, syscall: implement SetsockoptIPMReq(), move to winsock v2.2 for multicast support.
I don't know the protocol regarding the zsyscall files which appear to
be hand-generated, so I've re-done them and added them to the change.
R=rsc, alex.brainman, nigeltao
CC=golang-dev
https://golang.org/cl/
4975060
Nigel Tao [Thu, 8 Sep 2011 06:31:13 +0000 (16:31 +1000)]
A+C: Paul Lalonde (individual CLA).
R=dsymonds
CC=golang-dev
https://golang.org/cl/
4961073
Alex Brainman [Thu, 8 Sep 2011 03:31:40 +0000 (13:31 +1000)]
sync/atomic: do not run TestStoreLoadSeq for too long (fix windows builder)
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
4962057
Andrew Gerrand [Thu, 8 Sep 2011 02:54:35 +0000 (12:54 +1000)]
tag release.r60
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
4973070
Andrew Gerrand [Thu, 8 Sep 2011 02:08:07 +0000 (12:08 +1000)]
doc: release.r60
R=dsymonds, r, rsc
CC=golang-dev
https://golang.org/cl/
4981047
Andrew Gerrand [Thu, 8 Sep 2011 00:03:27 +0000 (10:03 +1000)]
doc: fix date in weekly snapshot history
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
4978057
Andrew Gerrand [Wed, 7 Sep 2011 23:45:47 +0000 (09:45 +1000)]
tag weekly.2011-09-07
R=r
CC=golang-dev
https://golang.org/cl/
4991043
Andrew Gerrand [Wed, 7 Sep 2011 23:43:35 +0000 (09:43 +1000)]
weekly.2011-09-07
R=dsymonds, rsc, r
CC=golang-dev
https://golang.org/cl/
4968070
Robert Griesemer [Wed, 7 Sep 2011 22:19:53 +0000 (15:19 -0700)]
undo CL
4964067 /
661cb84cc6f0
API change. Needs further reflection.
««« original CL description
path/filepath: Simplify Walk interface
The last argument of filepath.Walk was removed, and the Visitor
interface now contains an Error method that is called on errors.
Fixes #2237.
R=golang-dev, gri, r
CC=golang-dev
https://golang.org/cl/
4964067
»»»
R=r
CC=golang-dev
https://golang.org/cl/
4974065
Gustavo Niemeyer [Wed, 7 Sep 2011 21:49:48 +0000 (14:49 -0700)]
path/filepath: Simplify Walk interface
The last argument of filepath.Walk was removed, and the Visitor
interface now contains an Error method that is called on errors.
Fixes #2237.
R=golang-dev, gri, r
CC=golang-dev
https://golang.org/cl/
4964067
Russ Cox [Wed, 7 Sep 2011 19:50:21 +0000 (15:50 -0400)]
gc: add -p flag to catch import cycles earlier
The linker would catch them if gc succeeded,
but too often the cycle manifests as making the
current package and the imported copy of itself
appear as different packages, which result in
type signature mismatches that confuse users.
As a crutch, add the -p flag to say 'if you see an
import of this package, give up early'. Results in
messages like (during gotest in sort):
export_test.go:7: import "sort" while compiling that package (import cycle)
export_test.go:7: import "container/heap": package depends on "sort" (import cycle)
Fixes #2042.
R=ken
CC=bradfitz, dsymonds, golang-dev
https://golang.org/cl/
4972057
Russ Cox [Wed, 7 Sep 2011 19:50:07 +0000 (15:50 -0400)]
net: sync CIDRMask code, doc
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
4961069
Hector Chu [Wed, 7 Sep 2011 19:49:56 +0000 (15:49 -0400)]
5a, 5c, 6a, 6c, 8a, 8c: fix Windows file paths
Verified with objdump -W.
R=alex.brainman, rsc
CC=golang-dev
https://golang.org/cl/
4974061
Russ Cox [Wed, 7 Sep 2011 19:48:06 +0000 (15:48 -0400)]
exp/regexp: bug fixes and RE2 tests
Also add exp/regexp to build (forgot before).
At this point I am very confident in exp/regexp's
behavior. It should be usable as a drop-in
replacement for regexp now.
Later CLs could introduce a CompilePOSIX
to get at traditional POSIX ``extended regular expressions''
as in egrep and also an re.MatchLongest method to
change the matching mode to leftmost longest
instead of leftmost first. On the other hand, I expect
very few people to use either.
R=r, r, gustavo
CC=golang-dev
https://golang.org/cl/
4990041
Mikio Hara [Wed, 7 Sep 2011 18:01:12 +0000 (14:01 -0400)]
net: ParseCIDR returns IPNet instead of IPMask
Note that this CL will break your existing code which uses
ParseCIDR.
This CL changes ParseCIDR("172.16.253.121/28") to return
the IP address "172.16.253.121", the network implied by the
network number "172.16.253.112" and mask "255.255.255.240".
R=rsc, borman
CC=golang-dev
https://golang.org/cl/
4749043
Lucio De Re [Wed, 7 Sep 2011 17:55:48 +0000 (13:55 -0400)]
gc: silence Plan 9 warnings
R=golang-dev
CC=golang-dev, rsc
https://golang.org/cl/
4975055
Ziad Hatahet [Wed, 7 Sep 2011 17:54:33 +0000 (13:54 -0400)]
sort: use heapsort to bail out quicksort
See http://research.swtch.com/2008/01/killing-quicksort.html for more
info.
Fixes #467.
R=r, rsc
CC=golang-dev
https://golang.org/cl/
4591051
Hector Chu [Wed, 7 Sep 2011 17:53:29 +0000 (13:53 -0400)]
gopprof: regexp fixes
Extract Windows filenames correctly.
Don't remove receivers from method names.
Fixes #2227.
R=rsc
CC=golang-dev
https://golang.org/cl/
4969059
Russ Cox [Wed, 7 Sep 2011 17:53:05 +0000 (13:53 -0400)]
A+C: Ziad Hatahet (individual CLA)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
4964066
Dmitriy Vyukov [Wed, 7 Sep 2011 17:50:51 +0000 (21:50 +0400)]
sync/atomic: add Store functions
R=rsc
CC=golang-dev
https://golang.org/cl/
4950060
Russ Cox [Wed, 7 Sep 2011 17:23:16 +0000 (13:23 -0400)]
image/png: check zlib checksum during Decode
R=nigeltao
CC=golang-dev
https://golang.org/cl/
4987041
Luuk van Dijk [Wed, 7 Sep 2011 17:03:11 +0000 (19:03 +0200)]
gc: treat DOTMETH like DOT in escape analysis.
Fixes #2225
R=rsc, nigeltao, dave
CC=bradfitz, golang-dev, mikioh.mikioh
https://golang.org/cl/
4972056
David Symonds [Wed, 7 Sep 2011 04:10:14 +0000 (14:10 +1000)]
weekly.html: remove note about exp/template -> template move.
It actually occurred with the previous weekly snapshot.
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
4961066
Robert Griesemer [Tue, 6 Sep 2011 23:04:55 +0000 (16:04 -0700)]
cleanup: gofmt -s -w src misc
R=r
CC=golang-dev
https://golang.org/cl/
4984052
Rob Pike [Tue, 6 Sep 2011 22:59:21 +0000 (15:59 -0700)]
template: slightly simplify the test for assignability of arguments
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
4951066
Rob Pike [Tue, 6 Sep 2011 22:34:38 +0000 (15:34 -0700)]
template: indirect or dereference function arguments if necessary to match the type of the formal.
Fixes #2235
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
4967056
Robert Griesemer [Tue, 6 Sep 2011 18:48:05 +0000 (11:48 -0700)]
go/parser: accept corner cases of signature syntax
- func f(int,) is a legal signature
- func f(...int,) is a legal signature
Defer checking for correct use of "..." with last
paremeter type to type checker instead of parser.
R=rsc
CC=golang-dev
https://golang.org/cl/
4973059
Robert Griesemer [Tue, 6 Sep 2011 18:27:36 +0000 (11:27 -0700)]
gofmt: indent multi-line signatures
There may be more fine-tuning down the line,
but this CL fixes the most pressing issue at
hand.
Also: gofmt -w src misc
Fixes #1524.
R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/
4975053
Russ Cox [Tue, 6 Sep 2011 16:24:24 +0000 (12:24 -0400)]
url: handle ; in ParseQuery
Most web frameworks allow ; as a synonym for &,
following a recommendation in some versions of
the HTML specification. Do the same.
Remove overuse of Split.
Move ParseQuery tests from package http to package url.
Fixes #2210.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
4973062
Russ Cox [Tue, 6 Sep 2011 14:24:21 +0000 (10:24 -0400)]
gc: unify stack frame layout
allocparams + tempname + compactframe
all knew about how to place stack variables.
Now only compactframe, renamed to allocauto,
does the work. Until the last minute, each PAUTO
variable is in its own space and has xoffset == 0.
This might break 5g. I get failures in concurrent
code running under qemu and I can't tell whether
it's 5g's fault or qemu's. We'll see what the real
ARM builders say.
R=ken2
CC=golang-dev
https://golang.org/cl/
4973057
Alex Brainman [Mon, 5 Sep 2011 23:59:08 +0000 (09:59 +1000)]
os: use GetFileAttributesEx to implement Stat on windows
Fixes #2129.
R=rsc
CC=golang-dev
https://golang.org/cl/
4934049
Russ Cox [Mon, 5 Sep 2011 19:31:22 +0000 (15:31 -0400)]
gc: fix zero-length struct eval
Fixes #2232.
R=ken2
CC=golang-dev
https://golang.org/cl/
4960054
Marcel van Lohuizen [Mon, 5 Sep 2011 17:09:20 +0000 (19:09 +0200)]
exp/norm: performance improvements of quickSpan
- fixed performance bug that could lead to O(n^2) behavior
- performance improvement for ASCII case
R=r, r
CC=golang-dev
https://golang.org/cl/
4956060
Joel Sing [Mon, 5 Sep 2011 17:05:57 +0000 (13:05 -0400)]
runtime: fix openbsd 386 raisesigpipe
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
4950064
Mikio Hara [Mon, 5 Sep 2011 12:11:51 +0000 (08:11 -0400)]
syscall: update routing message attributes handling, fix typo
R=fullung, golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
4986041
Mike Rosset [Mon, 5 Sep 2011 11:48:42 +0000 (07:48 -0400)]
build: clear execute bit from Go files
R=golang-dev, rsc
CC=golang-dev, mike.rosset
https://golang.org/cl/
4950062
Christopher Wedgwood [Mon, 5 Sep 2011 11:40:50 +0000 (07:40 -0400)]
runtime: add test for multiple concurrent channel consumers
There was a time (in the past) when this wasn't robust.
R=rsc, dvyukov
CC=golang-dev
https://golang.org/cl/
4965058
Andrew Gerrand [Mon, 5 Sep 2011 05:03:41 +0000 (15:03 +1000)]
misc/goplay: another template fix
Fixes #2219.
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
4950063
Andrew Gerrand [Mon, 5 Sep 2011 04:48:27 +0000 (14:48 +1000)]
gobuilder: ignore _test.go files when looking for docs, more logging
R=n13m3y3r
CC=golang-dev
https://golang.org/cl/
4918050
Robert Hencke [Mon, 5 Sep 2011 00:56:39 +0000 (10:56 +1000)]
websocket: fix incorrect prints found by govet
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
4963059
Andrew Gerrand [Sun, 4 Sep 2011 23:50:22 +0000 (09:50 +1000)]
misc/goplay: Fix template output
Fixes #2219.
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
4960052
Gustavo Niemeyer [Sat, 3 Sep 2011 19:01:54 +0000 (16:01 -0300)]
gofix: do not convert url in field names
There's some ambiguity in the U{url: url} case as it could be
both a map or a struct literal, but given context it's more
likely a struct, so U{url: url_} rather than U{url_: url_}.
At least that was the case for me.
R=golang-dev, rsc, adg
CC=golang-dev
https://golang.org/cl/
4972052
Hector Chu [Sat, 3 Sep 2011 08:27:16 +0000 (18:27 +1000)]
runtime: implement exception handling on windows/amd64
Fixes #2194.
R=rsc, alex.brainman, vcc.163, jp
CC=golang-dev
https://golang.org/cl/
4977044
Nigel Tao [Sat, 3 Sep 2011 00:30:05 +0000 (10:30 +1000)]
exp/template/html: string replacement refactoring.
R=mikesamuel
CC=golang-dev
https://golang.org/cl/
4968063
Russ Cox [Fri, 2 Sep 2011 19:35:16 +0000 (15:35 -0400)]
gc: introduce temp = nod+tempname
R=ken2
CC=golang-dev
https://golang.org/cl/
4967052
Russ Cox [Fri, 2 Sep 2011 19:11:28 +0000 (15:11 -0400)]
gc: zero stack-allocated slice backing arrays
Fixes Han-Wen's termite bug.
R=lvd
CC=golang-dev
https://golang.org/cl/
4977052
Robert Griesemer [Fri, 2 Sep 2011 17:07:29 +0000 (10:07 -0700)]
godoc: minor tweaks for app-engine use
- read search index files in groutine to avoid
start-up failure on app engine because reading
the files takes too long
- permit usage of search index files and indexer
- minor cosmetic cleanups
R=dsymonds
CC=golang-dev
https://golang.org/cl/
4952050
Marcel van Lohuizen [Fri, 2 Sep 2011 10:39:35 +0000 (12:39 +0200)]
exp/norm: added Reader and Writer and bug fixes to support these.
Needed to ensure that finding the last boundary does not result in O(n^2)-like behavior.
Now prevents lookbacks beyond 31 characters across the board (starter + 30 non-starters).
composition.go:
- maxCombiningCharacters now means exactly that.
- Bug fix.
- Small performance improvement/ made code consistent with other code.
forminfo.go:
- Bug fix: ccc needs to be 0 for inert runes.
normalize.go:
- A few bug fixes.
- Limit the amount of combining characters considered in FirstBoundary.
- Ditto for LastBoundary.
- Changed semantics of LastBoundary to not consider trailing illegal runes a boundary
as long as adding bytes might still make them legal.
trie.go:
- As utf8.UTFMax is 4, we should treat UTF-8 encodings of size 5 or greater as illegal.
This has no impact on the normalization process, but it prevents buffer overflows
where we expect at most UTFMax bytes.
R=r
CC=golang-dev
https://golang.org/cl/
4963041
Rob Pike [Fri, 2 Sep 2011 01:47:15 +0000 (11:47 +1000)]
fmt/fmt_test.go: count mallocs in a few more cases.
Interesting that Fprintf can do zero mallocs.
(Sprintf must allocate the returned string.)
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
4977049
Rob Pike [Fri, 2 Sep 2011 01:00:46 +0000 (11:00 +1000)]
template: fix deadlock.
No need for lexInsideAction to loop.
Fixes #2217.
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
4963054
Mike Samuel [Fri, 2 Sep 2011 00:28:00 +0000 (10:28 +1000)]
exp/template/html: non-semantics changing tweaks to js{,_test}.go
R=nigeltao
CC=golang-dev
https://golang.org/cl/
4962049
Andrew Gerrand [Fri, 2 Sep 2011 00:07:47 +0000 (10:07 +1000)]
goinstall: better usage message
Fixes #2185.
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
4967046
Dmitriy Vyukov [Thu, 1 Sep 2011 19:17:25 +0000 (15:17 -0400)]
sync/atomic: add LoadUintptr
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
4985041
Russ Cox [Thu, 1 Sep 2011 17:44:46 +0000 (13:44 -0400)]
gc: fix label recursion bugs
Was keeping a pointer to the labeled statement in n->right,
which meant that generic traversals of the tree visited it twice.
That combined with aggressive flattening of the block
structure when possible during parsing meant that
the kinds of label: code label: code label: code sequences
generated by yacc were giving the recursion 2ⁿ paths
through the program.
Fixes #2212.
R=lvd
CC=golang-dev
https://golang.org/cl/
4960050
Dave Cheney [Thu, 1 Sep 2011 17:43:03 +0000 (13:43 -0400)]
libmach: fix incorrect use of memset
Fixes #2213.
R=rsc
CC=golang-dev
https://golang.org/cl/
4975047
Nigel Tao [Thu, 1 Sep 2011 07:30:41 +0000 (17:30 +1000)]
tag weekly.2011-09-01
R=r
CC=golang-dev
https://golang.org/cl/
4968057
Mike Rosset [Thu, 1 Sep 2011 07:24:32 +0000 (17:24 +1000)]
sudo.bash: print error/exit if problem with /usr/local/bin
When installing profiling tools on Mac OS X print
message if there is a problem with /usr/local/bin
Fixes #2209.
R=golang-dev, r, adg
CC=golang-dev, mike.rosset
https://golang.org/cl/
4950057
Nigel Tao [Thu, 1 Sep 2011 07:08:53 +0000 (17:08 +1000)]
weekly.2011-09-01
R=r, adg
CC=golang-dev
https://golang.org/cl/
4975046
Mike Samuel [Thu, 1 Sep 2011 02:03:40 +0000 (12:03 +1000)]
exp/template/html: Implement grammar for JS.
This transitions into a JS state when entering any attribute whose
name starts with "on".
It does not yet enter a JS on entry into a <script> element as script
element handling is introduced in another CL.
R=nigeltao
CC=golang-dev
https://golang.org/cl/
4968052
Robert Griesemer [Wed, 31 Aug 2011 22:16:51 +0000 (15:16 -0700)]
go spec: update section on Implementation Differences
R=rsc, r
CC=golang-dev
https://golang.org/cl/
4977046
Mikio Hara [Wed, 31 Aug 2011 21:59:35 +0000 (17:59 -0400)]
unsafe: update doc
changeset: 8812:
3fb3e88d5aa8
gc: unsafe.Alignof, unsafe.Offsetof, unsafe.Sizeof now return uintptr
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
4951051
Russ Cox [Wed, 31 Aug 2011 21:38:41 +0000 (17:38 -0400)]
flag: add Parsed, restore Usage
R=r
CC=golang-dev
https://golang.org/cl/
4973050
Robert Griesemer [Wed, 31 Aug 2011 21:01:58 +0000 (14:01 -0700)]
godoc: more index size reduction
- KindRuns don't need to repeat SpotKind,
it is stored in each Spot
- removed extra indirection from FileRuns
to KindRuns
- slight reduction of written index size
(~500KB)
R=rsc
CC=golang-dev
https://golang.org/cl/
4969052
Dmitriy Vyukov [Wed, 31 Aug 2011 17:07:25 +0000 (13:07 -0400)]
rpc: add benchmark for async rpc calls
Also makes sync benchmark concurrent.
R=r, rsc
CC=golang-dev
https://golang.org/cl/
4911043
Mikio Hara [Wed, 31 Aug 2011 17:05:49 +0000 (13:05 -0400)]
syscall: handle routing entry in ParseRoutingSockaddr on BSD variants
R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/
4972053
Russ Cox [Wed, 31 Aug 2011 12:17:01 +0000 (08:17 -0400)]
cgo: explain how to free something
R=golang-dev, n13m3y3r, r
CC=golang-dev
https://golang.org/cl/
4958053
Russ Cox [Wed, 31 Aug 2011 11:37:14 +0000 (07:37 -0400)]
gc: make static initialization more static
Does as much as possible in data layout instead
of during the init function.
Handles var x = y; var y = z as a special case too,
because it is so prevalent in package unicode
(var Greek = _Greek; var _Greek = []...).
Introduces InitPlan description of initialized data
so that it can be traversed multiple times (for example,
in the copy handler).
Cuts package unicode's init function size by 8x.
All that remains there is map initialization, which
is on the chopping block too.
Fixes sinit.go test case.
Aggregate DATA instructions at end of object file.
Checkpoint. More to come.
R=ken2
CC=golang-dev
https://golang.org/cl/
4969051
Russ Cox [Wed, 31 Aug 2011 11:11:31 +0000 (07:11 -0400)]
runtime: handle string + char literals in goc2c
My string literal was being rewritten from
"runtime.SysReserve(%p, %D) = error %d"
to
"runtime.SysReserve ( %p , %D ) = error %d"
R=iant
CC=golang-dev
https://golang.org/cl/
4972051
Russ Cox [Wed, 31 Aug 2011 11:02:46 +0000 (07:02 -0400)]
runtime: make arm work on Ubuntu Natty qemu
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/
4963050
Gustavo Niemeyer [Wed, 31 Aug 2011 09:44:55 +0000 (06:44 -0300)]
cgo: note that CString result must be freed
R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/
4968054
Jaroslavas Počepko [Wed, 31 Aug 2011 05:39:50 +0000 (15:39 +1000)]
exp/wingui: made compatible with windows/amd64
R=golang-dev, alex.brainman
CC=golang-dev, vcc.163
https://golang.org/cl/
4974041
Brad Fitzpatrick [Wed, 31 Aug 2011 04:47:41 +0000 (21:47 -0700)]
http: add file protocol transport
Off by default (security risk), but users can
wire it up if desired.
Fixes #2113
R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/
4959049
Robert Griesemer [Wed, 31 Aug 2011 01:47:15 +0000 (18:47 -0700)]
godoc index: first step towards reducing index size
- canonicalize package descriptors
- remove duplicate storage of file paths
- reduces (current) written index file by approx 3.5MB
(from
28434237B to
24686643B , or 13%)
- next step: untangle DAG (when serializing, using
gob, the index dag explodes into an index tree)
R=dsymonds
CC=golang-dev
https://golang.org/cl/
4983042
Jaroslavas Počepko [Tue, 30 Aug 2011 22:27:00 +0000 (08:27 +1000)]
image: add PalettedImage interface, and make image/png recognize it.
R=golang-dev, rsc, bradfitz, nigeltao
CC=golang-dev
https://golang.org/cl/
4956046
Gustavo Niemeyer [Tue, 30 Aug 2011 17:33:16 +0000 (14:33 -0300)]
cgo: fix GoBytes
R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/
4956051
Lucio De Re [Tue, 30 Aug 2011 13:40:46 +0000 (09:40 -0400)]
gc: fix for Plan 9 build
R=golang-dev
CC=golang-dev, rsc
https://golang.org/cl/
4977045
Russ Cox [Tue, 30 Aug 2011 13:00:33 +0000 (09:00 -0400)]
dashboard: yet another utf-8 fix
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/
4964052
Russ Cox [Tue, 30 Aug 2011 12:47:28 +0000 (08:47 -0400)]
gc: fix div bug
R=ken2
CC=golang-dev
https://golang.org/cl/
4950052
Jaroslavas Počepko [Tue, 30 Aug 2011 12:02:02 +0000 (22:02 +1000)]
runtime: windows/amd64 callbacks fixed and syscall fixed to allow using it in callbacks
Fixes #2178.
Patch2: Fixed allocating shadow space for stdcall (must be at least 32 bytes in any case)
Patch3: Made allocated chunk smaller.
Patch4: Typo
Patch5: suppress linktime warning "runtime.callbackasm: nosplit stack overflow"
Patch6: added testcase src/pkg/syscall/callback_windows_test.go
Patch7: weakly related files moved to https://golang.org/cl/
4965050 https://golang.org/cl/
4974041 https://golang.org/cl/
4965051
Patch8: reflect changes https://golang.org/cl/
4926042 /
Patch9: reflect comments
R=golang-dev, alex.brainman, vcc.163
CC=golang-dev, hectorchu
https://golang.org/cl/
4958042
Lucio De Re [Tue, 30 Aug 2011 12:00:07 +0000 (08:00 -0400)]
gc: fix for Plan 9 build
R=golang-dev
CC=golang-dev, rsc
https://golang.org/cl/
4975044
Jaroslavas Počepko [Tue, 30 Aug 2011 04:43:54 +0000 (14:43 +1000)]
windows/386: clean stack after syscall (it is necessary after call cdecl functions and does not have an effect after stdcall)
Result of discussion here: http://groups.google.com/group/golang-nuts/browse_thread/thread/
357c806cbb57ca62
R=golang-dev, bradfitz, alex.brainman, hectorchu, rsc
CC=golang-dev
https://golang.org/cl/
4961045
Mike Samuel [Tue, 30 Aug 2011 01:42:30 +0000 (11:42 +1000)]
exp/template/html: Added handling for URL attributes.
1. adds a urlPart field to context
2. implements tURL to figure out the URL part
3. modifies joinContext to allow common context mismatches
around branches to be ignored when not material as in
<a href="/foo{{if .HasQuery}}?q={{.Query}}{{/if}}">
4. adds a pipeline function that filters dynamically inserted
protocols to prevent code injection via URLs.
R=nigeltao
CC=golang-dev
https://golang.org/cl/
4957041
Robert Griesemer [Tue, 30 Aug 2011 00:22:20 +0000 (17:22 -0700)]
godoc: support for reading/writing (splitted) index files.
This CL implements a new godoc feature to save the search
index on disk. Use -write_index to create the search
index file named with -index_files. Use -index_files to
provide a glob pattern specifying index file(s) when
starting godoc; in this case the run-time indexer is not
run.
Known issues:
- saving/restoring full text index is not yet supported
- the list of flags and overall usage logic could use a
cleanup
R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/
4974045
Robert Griesemer [Mon, 29 Aug 2011 23:49:31 +0000 (16:49 -0700)]
godoc: fix bug in zip.go
The result of sort.Search is in the interval [0,n);
specifically, if no entry is found, the result is n
and not -1.
R=dsymonds
CC=golang-dev
https://golang.org/cl/
4982041
Andrew Gerrand [Mon, 29 Aug 2011 23:37:22 +0000 (09:37 +1000)]
goinstall: select the tag that is closest to runtime.Version
release.r50 looks for newest tag <= go.r50
weekly.2010-10-10 looks for newest tag <= go.2010-10-10
Implements behavior for hg, git, and bzr.
R=dsymonds, rsc, n13m3y3r
CC=golang-dev
https://golang.org/cl/
4873057
Brad Fitzpatrick [Mon, 29 Aug 2011 19:46:32 +0000 (12:46 -0700)]
json: add struct tag option to wrap literals in strings
Since JavaScript doesn't have [u]int64 types, some JSON APIs
encode such types as strings to avoid losing precision.
This adds a new struct tag option ",string" to cause
fields to be wrapped in JSON strings on encoding
and unwrapped from strings when decoding.
R=rsc, gustavo
CC=golang-dev
https://golang.org/cl/
4918051
Jaroslavas Počepko [Mon, 29 Aug 2011 19:38:12 +0000 (15:38 -0400)]
doc/progs: fix windows/amd64
R=rsc
CC=alex.brainman, golang-dev, vcc.163
https://golang.org/cl/
4965050
Mateusz Czapliński [Mon, 29 Aug 2011 18:25:43 +0000 (14:25 -0400)]
libmach: support reading symbols from Windows .exe for nm
Fixes #979.
R=rsc, alex.brainman
CC=golang-dev, vcc.163
https://golang.org/cl/
4894051