]> Cypherpunks repositories - gostls13.git/log
gostls13.git
13 years agotag weekly.2011-10-06
Andrew Gerrand [Thu, 6 Oct 2011 23:01:57 +0000 (16:01 -0700)]
tag weekly.2011-10-06

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5231041

13 years agoweekly.2011-10-06 weekly.2011-10-06
Andrew Gerrand [Thu, 6 Oct 2011 22:56:02 +0000 (15:56 -0700)]
weekly.2011-10-06

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5207044

13 years agotemplate: fix comments with different delimiters.
Rob Pike [Thu, 6 Oct 2011 22:21:56 +0000 (15:21 -0700)]
template: fix comments with different delimiters.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5208042

13 years agotemplate: add method Delims to allow alternate action delimiters.
Rob Pike [Thu, 6 Oct 2011 20:30:50 +0000 (13:30 -0700)]
template: add method Delims to allow alternate action delimiters.

R=golang-dev, rsc, dsymonds
CC=golang-dev
https://golang.org/cl/5209045

13 years agodoc: remove errant console.log from godocs.js
Andrew Gerrand [Thu, 6 Oct 2011 20:12:11 +0000 (13:12 -0700)]
doc: remove errant console.log from godocs.js

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5211045

13 years agogo/doc, godoc, gotest: support for reading example documentation
Andrew Gerrand [Thu, 6 Oct 2011 18:56:17 +0000 (11:56 -0700)]
go/doc, godoc, gotest: support for reading example documentation

This CL introduces the go.Example type and go.Examples functions that
are used to represent and extract code samples from Go source.

They should be of the form:

// Output of this function.
func ExampleFoo() {
        fmt.Println("Output of this function.")
}

It also modifies godoc to read example code from _test.go files,
and include them in the HTML output with JavaScript-driven toggles.

It also implements testing of example functions with gotest.
The stdout/stderr is compared against the output comment on the
function.

This CL includes examples for the sort.Ints function and the
sort.SortInts type. After patching this CL in and re-building go/doc
and godoc, try
        godoc -http=localhost:6060
and visit http://localhost:6060/pkg/sort/

R=gri, r, rsc
CC=golang-dev
https://golang.org/cl/5137041

13 years agoexec: add Command.ExtraFiles
Brad Fitzpatrick [Thu, 6 Oct 2011 18:00:02 +0000 (11:00 -0700)]
exec: add Command.ExtraFiles

Allows passing extra fds to the child process.

Fixes #2329

R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/5162050

13 years agoEffective Go: IntArray -> IntSlice
Rob Pike [Thu, 6 Oct 2011 17:46:18 +0000 (10:46 -0700)]
Effective Go: IntArray -> IntSlice
Fixes #2336.

R=golang-dev, dsymonds, rsc
CC=golang-dev
https://golang.org/cl/5222042

13 years agogotest: document -test.parallel
Rob Pike [Thu, 6 Oct 2011 17:41:52 +0000 (10:41 -0700)]
gotest: document -test.parallel

R=golang-dev, bradfitz, dsymonds, gri
CC=golang-dev
https://golang.org/cl/5223043

13 years agotesting: Add support for running tests in parallel (t.Parallel API).
Miki Tebeka [Thu, 6 Oct 2011 16:58:36 +0000 (09:58 -0700)]
testing: Add support for running tests in parallel (t.Parallel API).

See discussion at https://groups.google.com/d/topic/golang-dev/RAKiqi44GEU/discussion

R=golang-dev, bradfitz, dvyukov, rogpeppe, r, r, borman
CC=golang-dev
https://golang.org/cl/5071044

13 years agoC+A: Miki Tebeka miki.tebeka@gmail.com
Rob Pike [Thu, 6 Oct 2011 16:54:39 +0000 (09:54 -0700)]
C+A: Miki Tebeka miki.tebeka@gmail.com

R=golang-dev, gri
CC=golang-dev, miki.tebeka
https://golang.org/cl/5225042

13 years agoruntime: faster finalizers
Dmitriy Vyukov [Thu, 6 Oct 2011 15:42:51 +0000 (18:42 +0300)]
runtime: faster finalizers

Linux/amd64, 2 x Intel Xeon E5620, 8 HT cores, 2.40GHz
benchmark                    old ns/op    new ns/op    delta
BenchmarkFinalizer              420.00       261.00  -37.86%
BenchmarkFinalizer-2            985.00       201.00  -79.59%
BenchmarkFinalizer-4           1077.00       244.00  -77.34%
BenchmarkFinalizer-8           1155.00       180.00  -84.42%
BenchmarkFinalizer-16          1182.00       184.00  -84.43%

BenchmarkFinalizerRun          2128.00      1378.00  -35.24%
BenchmarkFinalizerRun-2        1655.00      1418.00  -14.32%
BenchmarkFinalizerRun-4        1634.00      1522.00   -6.85%
BenchmarkFinalizerRun-8        2213.00      1581.00  -28.56%
BenchmarkFinalizerRun-16       2424.00      1599.00  -34.03%

Darwin/amd64, Intel L9600, 2 cores, 2.13GHz
benchmark                    old ns/op    new ns/op    delta
BenchmarkChanCreation          1451.00       926.00  -36.18%
BenchmarkChanCreation-2        3124.00      1412.00  -54.80%
BenchmarkChanCreation-4        6121.00      2628.00  -57.07%

BenchmarkFinalizer              684.00       420.00  -38.60%
BenchmarkFinalizer-2          11195.00       398.00  -96.44%
BenchmarkFinalizer-4          15862.00       654.00  -95.88%

BenchmarkFinalizerRun          2025.00      1397.00  -31.01%
BenchmarkFinalizerRun-2        3920.00      1447.00  -63.09%
BenchmarkFinalizerRun-4        9471.00      1545.00  -83.69%

R=golang-dev, cw, rsc
CC=golang-dev
https://golang.org/cl/4963057

13 years agoruntime: fix malloc sampling bug
Russ Cox [Thu, 6 Oct 2011 15:30:48 +0000 (11:30 -0400)]
runtime: fix malloc sampling bug

The malloc sample trigger was not being set in a
new m, so the first allocation in each new m - the
goroutine structure - was being sampled with
probability 1 instead of probability sizeof(G)/rate,
an oversampling of about 5000x for the default
rate of 1 MB.  This bug made pprof graphs show
far more G allocations than there actually were.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5224041

13 years agoruntime: fix spurious deadlock reporting
Dmitriy Vyukov [Thu, 6 Oct 2011 15:10:14 +0000 (18:10 +0300)]
runtime: fix spurious deadlock reporting
Fixes #2337.
Unfortunate sequence of events is:
1. maxcpu=2, mcpu=1, grunning=1
2. starttheworld creates an extra M:
   maxcpu=2, mcpu=2, grunning=1
4. the goroutine calls runtime.GOMAXPROCS(1)
   maxcpu=1, mcpu=2, grunning=1
5. since it sees mcpu>maxcpu, it calls gosched()
6. schedule() deschedules the goroutine:
   maxcpu=1, mcpu=1, grunning=0
7. schedule() call getnextandunlock() which
   fails to pick up the goroutine again,
   because canaddcpu() fails, because mcpu==maxcpu
8. then it sees that grunning==0,
   reports deadlock and terminates

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5191044

13 years agobuild: clear execute bit from source files
Mikio Hara [Thu, 6 Oct 2011 09:33:13 +0000 (18:33 +0900)]
build: clear execute bit from source files

R=golang-dev, alex.brainman
CC=golang-dev
https://golang.org/cl/5201042

13 years agocgo: support for mingw-w64 4.5.1 and newer
Wei Guangjing [Thu, 6 Oct 2011 06:22:48 +0000 (07:22 +0100)]
cgo: support for mingw-w64 4.5.1 and newer

R=rsc, jp, hectorchu
CC=golang-dev
https://golang.org/cl/4962051

13 years agoexp/norm: LastBoundary is used in preparation for an append operation. It seems
Marcel van Lohuizen [Wed, 5 Oct 2011 21:36:02 +0000 (14:36 -0700)]
exp/norm: LastBoundary is used in preparation for an append operation. It seems
therefore unlikely that there is a good use for its string version
LastBoundaryInString. Yet, the implemenation of this method would complicate
things a bit as it would require the introduction for another interface and
some duplication of code. Removing it seems a better choice.

R=r
CC=golang-dev
https://golang.org/cl/5182044

13 years agotag release.r60.2
Andrew Gerrand [Wed, 5 Oct 2011 21:33:18 +0000 (14:33 -0700)]
tag release.r60.2

R=bradfitz
CC=golang-dev
https://golang.org/cl/5208041

13 years agodoc: document r60.2
Andrew Gerrand [Wed, 5 Oct 2011 20:59:39 +0000 (13:59 -0700)]
doc: document r60.2

R=rsc, dsymonds
CC=golang-dev
https://golang.org/cl/5204041

13 years agoencoding/binary: added benchmarks
Robert Griesemer [Wed, 5 Oct 2011 20:04:43 +0000 (13:04 -0700)]
encoding/binary: added benchmarks

binary.BenchmarkPutUvarint32 20000000  85.6 ns/op
binary.BenchmarkPutUvarint64 10000000 299   ns/op

R=rsc
CC=golang-dev
https://golang.org/cl/5148049

13 years agodoc: link to Czech translation of The Laws of Reflection
Andrew Gerrand [Wed, 5 Oct 2011 19:45:56 +0000 (12:45 -0700)]
doc: link to Czech translation of The Laws of Reflection

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5190045

13 years agodoc: link to A Tour of Go
Andrew Gerrand [Wed, 5 Oct 2011 18:12:07 +0000 (11:12 -0700)]
doc: link to A Tour of Go

R=golang-dev, rsc, r
CC=golang-dev
https://golang.org/cl/5181045

13 years agowebsocket: add hybi-13 support
Fumitoshi Ukai [Wed, 5 Oct 2011 17:50:29 +0000 (10:50 -0700)]
websocket: add hybi-13 support

Major changes between hybi-08 and hybi-13
- hybi-08 uses Sec-WebSocket-Origin, but hybi-13 uses Origin
- hybi-13 introduces new close status codes.

hybi-17 spec (editorial changes of hybi-13) mentions
- if a server doesn't support the requested version, it MUST respond
  with Sec-WebSocket-Version headers containing all available versions.
- client MUST close the connection upon receiving a masked frame
- server MUST close the connection upon receiving a non-masked frame
note that hybi-17 still uses "Sec-WebSocket-Version: 13"

see http://code.google.com/p/pywebsocket/wiki/WebSocketProtocolSpec
for changes between spec drafts.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5147043

13 years agodocumentation: Debugging Go code with GDB tutorial.
Luuk van Dijk [Wed, 5 Oct 2011 17:49:23 +0000 (10:49 -0700)]
documentation: Debugging Go code with GDB tutorial.

R=adg, cw, lvd
CC=golang-dev
https://golang.org/cl/5168046

13 years agoexp/norm: introduced input interface to implement string versions
Marcel van Lohuizen [Wed, 5 Oct 2011 17:44:11 +0000 (10:44 -0700)]
exp/norm: introduced input interface to implement string versions
of methods.

R=r, mpvl
CC=golang-dev
https://golang.org/cl/5166045

13 years agoebnf: use scanner instead of go/scanner
Robert Griesemer [Wed, 5 Oct 2011 17:34:01 +0000 (10:34 -0700)]
ebnf: use scanner instead of go/scanner

R=rsc, r
CC=golang-dev
https://golang.org/cl/5192043

13 years agoruntime: set runtime ncpu on openbsd
Joel Sing [Wed, 5 Oct 2011 17:16:43 +0000 (13:16 -0400)]
runtime: set runtime ncpu on openbsd

Set the runtime ncpu based on the hw.ncpu sysctl.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5191043

13 years agogob: when possible, allow sequential decoders on the same input stream.
Rob Pike [Wed, 5 Oct 2011 16:47:09 +0000 (09:47 -0700)]
gob: when possible, allow sequential decoders on the same input stream.
This can work only if there is no type info required to initialize the decoder,
but it's easy and gains a few percent in the basic benchmarks by avoiding
bufio when it's a bytes.Buffer - a testing-only scenario, I admit.
Add a comment about what Decode expects from the input.

R=rsc
CC=golang-dev
https://golang.org/cl/5165048

13 years agomisc/emacs: fix indent bug
Russ Cox [Wed, 5 Oct 2011 16:27:23 +0000 (12:27 -0400)]
misc/emacs: fix indent bug

Must use case-sensitive search to identify keywords.

Fixes #2287.

R=bradfitz
CC=golang-dev
https://golang.org/cl/5182043

13 years agocodereview: fix for Mercurial 1.9.2
Russ Cox [Wed, 5 Oct 2011 16:08:41 +0000 (12:08 -0400)]
codereview: fix for Mercurial 1.9.2

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5127052

13 years agogc: limit helper threads based on ncpu
Joel Sing [Wed, 5 Oct 2011 16:08:28 +0000 (12:08 -0400)]
gc: limit helper threads based on ncpu

When ncpu < 2, work.nproc is always 1 which results in infinite helper
threads being created if gomaxprocs > 1 and MaxGcproc > 1. Avoid this
by using the same limits as imposed helpgc().

R=golang-dev, rsc, dvyukov
CC=golang-dev
https://golang.org/cl/5176044

13 years agoruntime: fix Plan 9 build
Anthony Martin [Wed, 5 Oct 2011 16:07:44 +0000 (12:07 -0400)]
runtime: fix Plan 9 build

This change adds the osyield and usleep
functions and code to read the number of
processors from /dev/sysstat.

I also changed SysAlloc to return nil
when brk fails (it was returning -1).

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5177049

13 years agocodereview: fix hg change in Windows console
Yasuhiro Matsumoto [Wed, 5 Oct 2011 16:07:13 +0000 (12:07 -0400)]
codereview: fix hg change in Windows console

lib/codereview: Unable to use vim for 'hg change' from windows console
reload(sys) break workaround for windows.
see:
http://mercurial.selenic.com/bts/issue2888
http://mercurial.selenic.com/bts/issue1452
Also does not work with backslash paths.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5150054

13 years ago5l/6l/8l: add a DT_DEBUG dynamic tag to a dynamic ELF binary
Ian Lance Taylor [Wed, 5 Oct 2011 04:25:11 +0000 (21:25 -0700)]
5l/6l/8l: add a DT_DEBUG dynamic tag to a dynamic ELF binary

This requires making the .dynamic section writable, as the
dynamic linker will change the value of the DT_DEBUG tag at
runtime.  The DT_DEBUG tag is used by gdb to find all loaded
shared libraries.

R=rsc
CC=golang-dev
https://golang.org/cl/5189044

13 years agopkg/syscall: add Mkfifo for linux platforms
Paul Borman [Tue, 4 Oct 2011 20:58:31 +0000 (13:58 -0700)]
pkg/syscall: add Mkfifo for linux platforms

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5131055

13 years agowebsocket: better error message in a test
Brad Fitzpatrick [Tue, 4 Oct 2011 20:46:03 +0000 (13:46 -0700)]
websocket: better error message in a test

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5185045

13 years agotime: make month/day name comparisons case insenstive
Paul Borman [Tue, 4 Oct 2011 19:52:30 +0000 (12:52 -0700)]
time: make month/day name comparisons case insenstive

Fixes #2324.

R=r, r
CC=golang-dev
https://golang.org/cl/5180044

13 years ago5g, 6g, 8g: fix loop finding bug, squash jmps
Russ Cox [Tue, 4 Oct 2011 19:06:16 +0000 (15:06 -0400)]
5g, 6g, 8g: fix loop finding bug, squash jmps

The loop recognizer uses the standard dominance
frontiers but gets confused by dead code, which
has a (not explicitly set) rpo number of 0, meaning it
looks like the head of the function, so it dominates
everything.  If the loop recognizer encounters dead
code while tracking backward through the graph
it fails to recognize where it started as a loop, and
then the optimizer does not registerize values loaded
inside that loop.  Fix by checking rpo against rpo2r.

Separately, run a quick pass over the generated
code to squash JMPs to JMP instructions, which
are convenient to emit during code generation but
difficult to read when debugging the -S output.
A side effect of this pass is to eliminate dead code,
so the output files may be slightly smaller and the
optimizer may have less work to do.
There is no semantic effect, because the linkers
flatten JMP chains and delete dead instructions
when laying out the final code.  Doing it here too
just makes the -S output easier to read and more
like what the final binary will contain.

The "dead code breaks loop finding" bug is thus
fixed twice over.  It seemed prudent to fix loopit
separately just in case dead code ever sneaks back
in for one reason or another.

R=ken2
CC=golang-dev
https://golang.org/cl/5190043

13 years agopath/filepath: added Rel as the complement of Abs
Gustavo Niemeyer [Tue, 4 Oct 2011 14:27:06 +0000 (11:27 -0300)]
path/filepath: added Rel as the complement of Abs

R=golang-dev, rsc, gustavo, r, borman
CC=golang-dev
https://golang.org/cl/4981049

13 years agocgo: allow Window's specific path characters in flag directives.
Joe Poirier [Tue, 4 Oct 2011 04:07:28 +0000 (15:07 +1100)]
cgo: allow Window's specific path characters in flag directives.

Example: #cgo windows LDFLAGS: -LC:\\WINDOWS\\system32

R=alex.brainman, go.peter.90, golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5154042

13 years agoFix build, disabling flaky registerization test.
Brad Fitzpatrick [Tue, 4 Oct 2011 00:25:55 +0000 (17:25 -0700)]
Fix build, disabling flaky registerization test.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5179045

13 years agoimage: spin off a new color package out of the image package.
Nigel Tao [Tue, 4 Oct 2011 00:09:03 +0000 (11:09 +1100)]
image: spin off a new color package out of the image package.

The spin-off renames some types. The new names are simply better:
image.Color              -> color.Color
image.ColorModel         -> color.Model
image.ColorModelFunc     -> color.ModelFunc
image.PalettedColorModel -> color.Palette
image.RGBAColor          -> color.RGBA
image.RGBAColorModel     -> color.RGBAModel
image.RGBA64Color        -> color.RGBA64
image.RGBA64ColorModel   -> color.RGBA64Model
(similarly for NRGBAColor, GrayColorModel, etc)

The image.ColorImage type stays in the image package, but is renamed:
image.ColorImage -> image.Uniform

The image.Image implementations (image.RGBA, image.RGBA64, image.NRGBA,
image.Alpha, etc) do not change their name, and gain a nice symmetry:
an image.RGBA is an image of color.RGBA, etc.

The image.Black, image.Opaque uniform images remain unchanged (although
their type is renamed from image.ColorImage to image.Uniform). The
corresponding color types (color.Black, color.Opaque, etc) are new.

Nothing in the image/ycbcr is renamed yet. The ycbcr.YCbCrColor and
ycbcr.YCbCrImage types will eventually migrate to color.YCbCr and
image.YCbCr, but that will be a separate CL.

R=r, bsiegert
CC=golang-dev
https://golang.org/cl/5132048

13 years agodoc: update tutorial.
Rob Pike [Mon, 3 Oct 2011 23:18:47 +0000 (16:18 -0700)]
doc: update tutorial.
Fix for new regexp library ($ isn't end of line any more).
Don't assume . is in PATH.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5175052

13 years agostrings: implement a faster byte->string Replacer
Brad Fitzpatrick [Mon, 3 Oct 2011 22:19:04 +0000 (15:19 -0700)]
strings: implement a faster byte->string Replacer

This implements a replacer for when all old strings are single
bytes, but new values are not.

BenchmarkHTMLEscapeNew   1000000   1090 ns/op
BenchmarkHTMLEscapeOld   1000000   2049 ns/op

R=rsc
CC=golang-dev
https://golang.org/cl/5176043

13 years ago5g, 6g, 8g: registerize variables again
Russ Cox [Mon, 3 Oct 2011 21:46:36 +0000 (17:46 -0400)]
5g, 6g, 8g: registerize variables again

My previous CL:

changeset:   9645:ce2e5f44b310
user:        Russ Cox <rsc@golang.org>
date:        Tue Sep 06 10:24:21 2011 -0400
summary:     gc: unify stack frame layout

introduced a bug wherein no variables were
being registerized, making Go programs 2-3x
slower than they had been before.

This CL fixes that bug (along with some others
it was hiding) and adds a test that optimization
makes at least one test case faster.

R=ken2
CC=golang-dev
https://golang.org/cl/5174045

13 years agostrings: implement a faster byte->byte Replacer
Brad Fitzpatrick [Mon, 3 Oct 2011 20:12:01 +0000 (13:12 -0700)]
strings: implement a faster byte->byte Replacer

When all old & new string values are single bytes,
byteReplacer is now used, instead of the generic
algorithm.

BenchmarkGenericMatch       10000  102519 ns/op
BenchmarkByteByteMatch    1000000    2178 ns/op

fast path, when nothing matches:
BenchmarkByteByteNoMatch  1000000    1109 ns/op

comparisons to multiple Replace calls:
BenchmarkByteByteReplaces  100000   16164 ns/op

comparison to strings.Map:
BenchmarkByteByteMap       500000    5454 ns/op

R=rsc
CC=golang-dev
https://golang.org/cl/5175050

13 years agoruntime: fix usleep on linux/386 and re-enable parallel gc
Hector Chu [Mon, 3 Oct 2011 18:08:59 +0000 (19:08 +0100)]
runtime: fix usleep on linux/386 and re-enable parallel gc

R=golang-dev, jsing, alex.brainman, cw, rsc
CC=golang-dev
https://golang.org/cl/5166047

13 years agoruntime: implement runtime usleep for openbsd
Joel Sing [Sat, 1 Oct 2011 18:58:36 +0000 (11:58 -0700)]
runtime: implement runtime usleep for openbsd

R=golang-dev, mikioh.mikioh, hectorchu
CC=golang-dev
https://golang.org/cl/5173043

13 years agoruntime: fix map memory leak
Russ Cox [Sat, 1 Oct 2011 17:00:53 +0000 (13:00 -0400)]
runtime: fix map memory leak

The map implementation was using the C idiom of using
a pointer just past the end of its table as a limit pointer.
Unfortunately, the garbage collector sees that pointer as
pointing at the block adjacent to the map table, pinning
in memory a block that would otherwise be freed.

Fix by making limit pointer point at last valid entry, not
just past it.

Reviewed by Mike Burrows.

R=golang-dev, bradfitz, lvd, r
CC=golang-dev
https://golang.org/cl/5158045

13 years agosyscall: update multicast socket options for darwin, freebsd, linux, openbsd
Mikio Hara [Sat, 1 Oct 2011 09:45:06 +0000 (18:45 +0900)]
syscall: update multicast socket options for darwin, freebsd, linux, openbsd

R=golang-dev, dave
CC=golang-dev
https://golang.org/cl/5137042

13 years agofreebsd: Add stubs for runtime·osyield and runtime·usleep.
David Symonds [Fri, 30 Sep 2011 23:39:10 +0000 (16:39 -0700)]
freebsd: Add stubs for runtime·osyield and runtime·usleep.

These don't do anything useful; they are just here to fix the build.

R=golang-dev
TBR=r
CC=golang-dev
https://golang.org/cl/5154048

13 years agoio: rename Copyn to CopyN.
David Symonds [Fri, 30 Sep 2011 20:13:39 +0000 (13:13 -0700)]
io: rename Copyn to CopyN.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5157045

13 years agoruntime: disable parallel gc
Russ Cox [Fri, 30 Sep 2011 18:59:46 +0000 (14:59 -0400)]
runtime: disable parallel gc

Breaks on Linux/386 during parallel sync tests.

TBR=r
CC=golang-dev
https://golang.org/cl/5168044

13 years agoruntime: fix windows build
Hector Chu [Fri, 30 Sep 2011 18:33:13 +0000 (11:33 -0700)]
runtime: fix windows build

Add osyield and usleep as required by recent GC changes.

R=golang-dev, r, dsymonds, rsc, r
CC=golang-dev
https://golang.org/cl/5156042

13 years agoindex/suffixarray: 4.5x faster index serialization (to memory)
Robert Griesemer [Fri, 30 Sep 2011 18:31:28 +0000 (11:31 -0700)]
index/suffixarray: 4.5x faster index serialization (to memory)

Benchmark results (best of 3 runs):

old: suffixarray.BenchmarkSaveRestore        1 1931909000 ns/op   28.21 MB/s
new: suffixarray.BenchmarkSaveRestore        5  429721800 ns/op  117.14 MB/s

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5161043

13 years agoruntime: fix darwin build
Rob Pike [Fri, 30 Sep 2011 17:52:36 +0000 (10:52 -0700)]
runtime: fix darwin build
Add place holder for runtime.osyield.

R=golang-dev
CC=golang-dev
https://golang.org/cl/5149049

13 years agoruntime: parallelize garbage collector mark + sweep
Russ Cox [Fri, 30 Sep 2011 13:40:01 +0000 (09:40 -0400)]
runtime: parallelize garbage collector mark + sweep

Running test/garbage/parser.out.

On a 4-core Lenovo X201s (Linux):
31.12u 0.60s 31.74r   1 cpu, no atomics
32.27u 0.58s 32.86r   1 cpu, atomic instructions
33.04u 0.83s 27.47r   2 cpu

On a 16-core Xeon (Linux):
33.08u 0.65s 33.80r   1 cpu, no atomics
34.87u 1.12s 29.60r   2 cpu
36.00u 1.87s 28.43r   3 cpu
36.46u 2.34s 27.10r   4 cpu
38.28u 3.85s 26.92r   5 cpu
37.72u 5.25s 26.73r  6 cpu
39.63u 7.11s 26.95r  7 cpu
39.67u 8.10s 26.68r  8 cpu

On a 2-core MacBook Pro Core 2 Duo 2.26 (circa 2009, MacBookPro5,5):
39.43u 1.45s 41.27r   1 cpu, no atomics
43.98u 2.95s 38.69r   2 cpu

On a 2-core Mac Mini Core 2 Duo 1.83 (circa 2008; Macmini2,1):
48.81u 2.12s 51.76r   1 cpu, no atomics
57.15u 4.72s 51.54r   2 cpu

The handoff algorithm is really only good for two cores.
Beyond that we will need to so something more sophisticated,
like have each core hand off to the next one, around a circle.
Even so, the code is a good checkpoint; for now we'll limit the
number of gc procs to at most 2.

R=dvyukov
CC=golang-dev
https://golang.org/cl/4641082

13 years agoexp/template/html: avoid redundant escaping directives.
Mike Samuel [Fri, 30 Sep 2011 04:31:41 +0000 (21:31 -0700)]
exp/template/html: avoid redundant escaping directives.

This is a possible optimization.  I'm not sure the complexity is worth it.
The new benchmark in escape_test is 46us without and 35us with the optimization.

R=nigeltao
CC=golang-dev
https://golang.org/cl/5168041

13 years agodoc: link to image/draw blog post.
Nigel Tao [Fri, 30 Sep 2011 03:11:20 +0000 (13:11 +1000)]
doc: link to image/draw blog post.

R=adg
TBR=adg
CC=golang-dev
https://golang.org/cl/5154046

13 years agoexp/template/html: simplify URL filtering
Mike Samuel [Fri, 30 Sep 2011 01:09:11 +0000 (18:09 -0700)]
exp/template/html: simplify URL filtering

This removes a few cases from escapeAction and clarifies the
responsibilities of urlFilter which no longer does any
escaping or normalization.  It is now solely a filter.

R=nigeltao
CC=golang-dev
https://golang.org/cl/5162043

13 years agoexp/sql{,/driver}: new database packages
Brad Fitzpatrick [Thu, 29 Sep 2011 23:12:21 +0000 (16:12 -0700)]
exp/sql{,/driver}: new database packages

R=gustavo, rsc, borman, dave, kevlar, nigeltao, dvyukov, kardianos, fw, r, r, david.crawshaw
CC=golang-dev
https://golang.org/cl/4973055

13 years agoio/ioutil: add a comment on why devNull is a ReaderFrom
Brad Fitzpatrick [Thu, 29 Sep 2011 22:35:01 +0000 (15:35 -0700)]
io/ioutil: add a comment on why devNull is a ReaderFrom

... protects this optimization from future well-meaning
Gophers looking to delete unused code. :)

R=gri
CC=golang-dev
https://golang.org/cl/5165041

13 years agogo spec: remove notes about gccgo limitations, now fixed
Ian Lance Taylor [Thu, 29 Sep 2011 21:50:55 +0000 (14:50 -0700)]
go spec: remove notes about gccgo limitations, now fixed

R=gri
CC=golang-dev
https://golang.org/cl/5164041

13 years agoruntime: gdb support, fix pretty printing of channels.
Luuk van Dijk [Thu, 29 Sep 2011 19:07:38 +0000 (12:07 -0700)]
runtime: gdb support, fix pretty printing of channels.

The type to cast the elements to was stolen from a field
that's no longer there.

R=rsc
CC=golang-dev
https://golang.org/cl/5143050

13 years agofmt: replace channel cache with slice.
Rob Pike [Thu, 29 Sep 2011 18:23:06 +0000 (11:23 -0700)]
fmt: replace channel cache with slice.
Simpler concept, and it turns a queue into a stack.
Speeds up benchmarks noticeably.

Before:
fmt_test.BenchmarkSprintfEmpty 10000000        282 ns/op
fmt_test.BenchmarkSprintfString  2000000        910 ns/op
fmt_test.BenchmarkSprintfInt  5000000        723 ns/op
fmt_test.BenchmarkSprintfIntInt  1000000       1071 ns/op
fmt_test.BenchmarkSprintfPrefixedInt  1000000       1108 ns/op
fmt_test.BenchmarkScanInts     1000    2239510 ns/op
fmt_test.BenchmarkScanRecursiveInt     1000    2365432 ns/op

After:
fmt_test.BenchmarkSprintfEmpty 10000000        232 ns/op
fmt_test.BenchmarkSprintfString  2000000        837 ns/op
fmt_test.BenchmarkSprintfInt  5000000        590 ns/op
fmt_test.BenchmarkSprintfIntInt  2000000        910 ns/op
fmt_test.BenchmarkSprintfPrefixedInt  2000000        996 ns/op
fmt_test.BenchmarkScanInts     1000    2210715 ns/op
fmt_test.BenchmarkScanRecursiveInt     1000    2367800 ns/op

R=rsc, r
CC=golang-dev
https://golang.org/cl/5151044

13 years agomath: remove the leading F from Fabs etc.
Rob Pike [Thu, 29 Sep 2011 16:54:20 +0000 (09:54 -0700)]
math: remove the leading F from Fabs etc.
The letter is a holdover from C and unnecessary in Go.
Gofix module included.
Fixes #2306.

R=golang-dev, gri, dsymonds
CC=golang-dev
https://golang.org/cl/5158043

13 years agoencoding/binary: PutX functions require buffer of sufficient size.
Robert Griesemer [Thu, 29 Sep 2011 16:40:59 +0000 (09:40 -0700)]
encoding/binary: PutX functions require buffer of sufficient size.

R=rsc
CC=golang-dev
https://golang.org/cl/5163041

13 years ago5g: fix -f()
Russ Cox [Thu, 29 Sep 2011 16:09:46 +0000 (12:09 -0400)]
5g: fix -f()

R=ken2
CC=golang-dev
https://golang.org/cl/5161041

13 years agoencoding/binary: support for varint encoding
Robert Griesemer [Thu, 29 Sep 2011 05:36:52 +0000 (22:36 -0700)]
encoding/binary: support for varint encoding

R=rsc, r, nigeltao, r, dsymonds
CC=golang-dev
https://golang.org/cl/5146048

13 years agogo: skeleton implementation
Russ Cox [Thu, 29 Sep 2011 00:07:21 +0000 (20:07 -0400)]
go: skeleton implementation

R=golang-dev, bradfitz, r
CC=golang-dev
https://golang.org/cl/5141051

13 years agoexp/template/html: handle custom attrs and HTML5 embedded elements.
Mike Samuel [Wed, 28 Sep 2011 21:07:48 +0000 (14:07 -0700)]
exp/template/html: handle custom attrs and HTML5 embedded elements.

HTML5 allows embedded SVG and MathML.
Code searches show SVG is used for graphing.

This changes transition to deal with constructs like
   <svg xmlns:xlink="http://www.w3.org/1999/xlink">
It changes attr and clients to call a single function that combines
the name lookup and "on" prefix check to determine an attribute
value type given an attribute name.

That function uses heuristics to recognize that
     xlink:href and svg:href
have URL content, and that data-url is likely contains URL content,
since "javascript:" injection is such a problem.

I did a code search over a closure templates codebase to determine
patterns of custom attribute usage.  I did something like

$ find . -name \*.soy | \
    xargs egrep perl -ne 'while (s/\b((data-|\w+:)\w+)\s*=//) { print "$1\n"; }' | \
    sort | uniq

to produce the list at the bottom.

Filtering that by egrep -i 'src|url|uri' produces

data-docConsumptionUri
data-docIconUrl
data-launchUrl
data-lazySrc
data-pageUrl
data-shareurl
data-suggestServerUrl
data-tweetUrl
g:secondaryurls
g:url

which seem to match all the ones that are likely URL content.
There are some short words that match that heuristic, but I still think it decent since
any custom attribute that has a numeric or enumerated keyword value will be unaffected by
the URL assumption.
Counterexamples from /usr/share/dict:
during, hourly, maturity, nourish, purloin, security, surly

Custom attributes present in existing closure templates codebase:
buzz:aid
data-a
data-action
data-actor
data-allowEqualityOps
data-analyticsId
data-bid
data-c
data-cartId
data-categoryId
data-cid
data-command
data-count
data-country
data-creativeId
data-cssToken
data-dest
data-docAttribution
data-docConsumptionUri
data-docCurrencyCode
data-docIconUrl
data-docId
data-docPrice
data-docPriceMicros
data-docTitle
data-docType
data-docid
data-email
data-entityid
data-errorindex
data-f
data-feature
data-fgid
data-filter
data-fireEvent
data-followable
data-followed
data-hashChange
data-height
data-hover
data-href
data-id
data-index
data-invitable
data-isFree
data-isPurchased
data-jid
data-jumpid
data-launchUrl
data-lazySrc
data-listType
data-maxVisiblePages
data-name
data-nid
data-nodeid
data-numItems
data-numPerPage
data-offerType
data-oid
data-opUsesEquality
data-overflowclass
data-packageName
data-pageId
data-pageUrl
data-pos
data-priceBrief
data-profileIds
data-query
data-rating
data-ref
data-rentalGrantPeriodDays
data-rentalactivePeriodHours
data-reviewId
data-role
data-score
data-shareurl
data-showGeLe
data-showLineInclude
data-size
data-sortval
data-suggestServerType
data-suggestServerUrl
data-suggestionIndex
data-tabBarId
data-tabBarIndex
data-tags
data-target
data-textColor
data-theme
data-title
data-toggletarget
data-tooltip
data-trailerId
data-transactionId
data-transition
data-ts
data-tweetContent
data-tweetUrl
data-type
data-useAjax
data-value
data-width
data-x
dm:index
dm:type
g:aspects
g:decorateusingsecondary
g:em
g:entity
g:groups
g:id
g:istoplevel
g:li
g:numresults
g:oid
g:parentId
g:pl
g:pt
g:rating_override
g:secondaryurls
g:sortby
g:startindex
g:target
g:type
g:url
g:value
ga:barsize
ga:css
ga:expandAfterCharsExceed
ga:initialNumRows
ga:nocancelicon
ga:numRowsToExpandTo
ga:type
ga:unlockwhenrated
gw:address
gw:businessname
gw:comment
gw:phone
gw:source
ng:controller
xlink:href
xml:lang
xmlns:atom
xmlns:dc
xmlns:jstd
xmlns:ng
xmlns:og
xmlns:webstore
xmlns:xlink

R=nigeltao
CC=golang-dev
https://golang.org/cl/5119041

13 years agoexp/template/html: don't normalize '<' in doctypes.
Mike Samuel [Wed, 28 Sep 2011 20:32:56 +0000 (13:32 -0700)]
exp/template/html: don't normalize '<' in doctypes.

The normalization that prevents element name and comment injection in
  <{{.}}
by converting it to
  &lt;{{.}}
breaks
  <!DOCTYPE html>

Instead of splitting states to have a start of document state and a text
state, I whitelist <!DOCTYPE.

R=nigeltao
CC=golang-dev
https://golang.org/cl/5131051

13 years agogo: documentation for new command
Russ Cox [Wed, 28 Sep 2011 20:00:12 +0000 (16:00 -0400)]
go: documentation for new command

*** This is a design review, not a code review. ***
Feel free to reply to the mail instead of picking out
individual lines to comment on in Rietveld.

This command, go, will replace both gomake/make and goinstall.
Make will stick around only for building our C commands
and perhaps package runtime.

In normal use while developing you'd run commands like

        go compile
        go test
        go clean
        go install

which apply to the package in the current directory.

To operate on code written by others, you add an explicit
package path:

        go get gopath.googlecode.com/hg/oauth
        go test gopath.googlecode.com/hg/oauth

The script.txt file is a script showing the output of
the various help commands that the command has.
(Right now, all the command can do is print help messages.)

R=golang-dev, bradfitz, kevlar, r, edsrzf, gri, adg, rogpeppe, r
CC=golang-dev
https://golang.org/cl/5019045

13 years agostrings: add Replacer, NewReplacer
Brad Fitzpatrick [Wed, 28 Sep 2011 16:34:26 +0000 (09:34 -0700)]
strings: add Replacer, NewReplacer

This is just a new API to do many replacements at once.

While the point of this API is to be faster than doing replacements one
at a time, the implementation in this CL has the optimizations removed
and may actually be slower.

Future CLs will bring back & add optimizations.

R=r, rsc, rogpeppe
CC=golang-dev
https://golang.org/cl/5081042

13 years agohttp: don't send a 400 Bad Request after a client shutdown
Brad Fitzpatrick [Wed, 28 Sep 2011 16:27:11 +0000 (09:27 -0700)]
http: don't send a 400 Bad Request after a client shutdown

Fixes #2312

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/5143049

13 years agojson: use strings.EqualFold instead of strings.ToLower.
Russ Cox [Wed, 28 Sep 2011 16:00:45 +0000 (12:00 -0400)]
json: use strings.EqualFold instead of strings.ToLower.

R=golang-dev, bradfitz, iant
CC=golang-dev
https://golang.org/cl/5127043

13 years agoregexp: speedups
Russ Cox [Wed, 28 Sep 2011 16:00:31 +0000 (12:00 -0400)]
regexp: speedups

MatchEasy0_1K        500000        4207 ns/op   243.35 MB/s
MatchEasy0_1K_Old    500000        4625 ns/op   221.40 MB/s
MatchEasy0_1M           500     3948932 ns/op   265.53 MB/s
MatchEasy0_1M_Old       500     3943926 ns/op   265.87 MB/s
MatchEasy0_32K        10000      122974 ns/op   266.46 MB/s
MatchEasy0_32K_Old    10000      123270 ns/op   265.82 MB/s
MatchEasy0_32M           10   127265400 ns/op   263.66 MB/s
MatchEasy0_32M_Old       10   127123500 ns/op   263.95 MB/s
MatchEasy1_1K        500000        5637 ns/op   181.63 MB/s
MatchEasy1_1K_Old     10000      100690 ns/op    10.17 MB/s
MatchEasy1_1M           200     7683150 ns/op   136.48 MB/s
MatchEasy1_1M_Old        10   145774000 ns/op     7.19 MB/s
MatchEasy1_32K        10000      239887 ns/op   136.60 MB/s
MatchEasy1_32K_Old      500     4508182 ns/op     7.27 MB/s
MatchEasy1_32M           10   247103500 ns/op   135.79 MB/s
MatchEasy1_32M_Old        1  4660191000 ns/op     7.20 MB/s
MatchMedium_1K        10000      160567 ns/op     6.38 MB/s
MatchMedium_1K_Old    10000      158367 ns/op     6.47 MB/s
MatchMedium_1M           10   162928000 ns/op     6.44 MB/s
MatchMedium_1M_Old       10   159699200 ns/op     6.57 MB/s
MatchMedium_32K         500     5090758 ns/op     6.44 MB/s
MatchMedium_32K_Old     500     5005800 ns/op     6.55 MB/s
MatchMedium_32M           1  5233973000 ns/op     6.41 MB/s
MatchMedium_32M_Old       1  5109676000 ns/op     6.57 MB/s
MatchHard_1K          10000      249087 ns/op     4.11 MB/s
MatchHard_1K_Old       5000      364569 ns/op     2.81 MB/s
MatchHard_1M              5   256050000 ns/op     4.10 MB/s
MatchHard_1M_Old          5   372446400 ns/op     2.82 MB/s
MatchHard_32K           200     7944525 ns/op     4.12 MB/s
MatchHard_32K_Old       100    11609380 ns/op     2.82 MB/s
MatchHard_32M             1  8144503000 ns/op     4.12 MB/s
MatchHard_32M_Old         1 11885434000 ns/op     2.82 MB/s

R=r, bradfitz
CC=golang-dev
https://golang.org/cl/5134049

13 years agohgpatch: do not use hg exit status
Yasuhiro Matsumoto [Wed, 28 Sep 2011 16:00:17 +0000 (12:00 -0400)]
hgpatch: do not use hg exit status

Fixes #2243.

R=rsc
CC=golang-dev
https://golang.org/cl/5146041

13 years agonet: add shutdown: TCPConn.CloseWrite and CloseRead
Brad Fitzpatrick [Wed, 28 Sep 2011 15:12:38 +0000 (08:12 -0700)]
net: add shutdown: TCPConn.CloseWrite and CloseRead

R=golang-dev, rsc, iant
CC=golang-dev
https://golang.org/cl/5136052

13 years agoexp/template/html: do not escape the RHS of assignments
Mike Samuel [Wed, 28 Sep 2011 05:08:14 +0000 (22:08 -0700)]
exp/template/html: do not escape the RHS of assignments

In

  {{$x := . | foo}}
  {{$x}}

the first action is a variable assignment that contributes
nothing to the output while the first is a use that needs
to be escaped.

This CL fixes escapeAction to distinguish assignments from
interpolations and to only modify interpolations.

R=nigeltao, r
CC=golang-dev
https://golang.org/cl/5143048

13 years agoindex/suffixarray: revert change from int -> int32
Robert Griesemer [Tue, 27 Sep 2011 23:21:28 +0000 (16:21 -0700)]
index/suffixarray: revert change from int -> int32

CL 5040041 (https://golang.org/cl/5040041)
changed the use of []int to []int32 internally so
that encoding/binary could be used. This is no
longer needed (gobs can encode ints), and using
[]int is more in sync w/ the semantics of the data
structure (the index elements are indices which are
ints). Changing it back.

R=r
CC=golang-dev
https://golang.org/cl/5141049

13 years agoexp/template/html: add doc comments for undocumented Err... constants.
Mike Samuel [Tue, 27 Sep 2011 20:22:01 +0000 (13:22 -0700)]
exp/template/html: add doc comments for undocumented Err... constants.

Does some TODOs and changes the term "div" in an error message
to "division" to avoid confusion with "<div>".

R=nigeltao, r
CC=golang-dev
https://golang.org/cl/5141047

13 years agoexp/ssh: update tag usage to new convention.
Rob Pike [Tue, 27 Sep 2011 17:22:42 +0000 (10:22 -0700)]
exp/ssh: update tag usage to new convention.

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/5136047

13 years agoarchive/zip: fix Fatal call
Rob Pike [Tue, 27 Sep 2011 16:33:26 +0000 (09:33 -0700)]
archive/zip: fix Fatal call
Error found by govet.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/5142048

13 years agocrypto/elliptic: use %x consistently in error print
Russ Cox [Tue, 27 Sep 2011 13:40:01 +0000 (09:40 -0400)]
crypto/elliptic: use %x consistently in error print

Fixes #2308.

R=agl, gri
CC=golang-dev
https://golang.org/cl/5121052

13 years agotest: fix windows build
Russ Cox [Tue, 27 Sep 2011 13:13:00 +0000 (09:13 -0400)]
test: fix windows build

TBR=bradfitz
CC=golang-dev
https://golang.org/cl/5124049

13 years agoruntime: check for nil value pointer in select syncsend case
Ian Lance Taylor [Tue, 27 Sep 2011 03:46:37 +0000 (20:46 -0700)]
runtime: check for nil value pointer in select syncsend case

Fixes #2309.

R=rsc, bradfitz
CC=golang-dev
https://golang.org/cl/5128053

13 years agoexp/norm: fix benchmark bug
Robert Griesemer [Tue, 27 Sep 2011 01:23:21 +0000 (18:23 -0700)]
exp/norm: fix benchmark bug

- don't use range over string to copy string bytes
- some code simplification

R=mpvl
CC=golang-dev
https://golang.org/cl/5144044

13 years agowebsocket: remove use of container/vector
Russ Cox [Mon, 26 Sep 2011 23:52:34 +0000 (19:52 -0400)]
websocket: remove use of container/vector

R=golang-dev, r
CC=golang-dev, ukai
https://golang.org/cl/5140046

13 years agobytes: add EqualFold
Russ Cox [Mon, 26 Sep 2011 23:35:32 +0000 (19:35 -0400)]
bytes: add EqualFold

R=golang-dev, r, r
CC=golang-dev
https://golang.org/cl/5123047

13 years agotest: silence/coalesce some tests
Russ Cox [Mon, 26 Sep 2011 23:35:21 +0000 (19:35 -0400)]
test: silence/coalesce some tests

Add copyright notice to nilptr.go.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5139048

13 years agogob: protect against invalid message length
Rob Pike [Mon, 26 Sep 2011 22:58:01 +0000 (15:58 -0700)]
gob: protect against invalid message length
Fixes #2301.

R=golang-dev, gri
CC=golang-dev
https://golang.org/cl/5134048

13 years agoregexp: move to old/regexp, replace with exp/regexp
Russ Cox [Mon, 26 Sep 2011 22:33:13 +0000 (18:33 -0400)]
regexp: move to old/regexp, replace with exp/regexp

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5127042

13 years agostrings: add EqualFold
Russ Cox [Mon, 26 Sep 2011 22:32:51 +0000 (18:32 -0400)]
strings: add EqualFold

Case-insensitive strcmp without using ToLower.
(Using ToLower is not always correct, and it allocates.)

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5143044

13 years agocodereview: extra repo sanity check
Russ Cox [Mon, 26 Sep 2011 22:32:16 +0000 (18:32 -0400)]
codereview: extra repo sanity check

Also work around Mercurial issue 3023.

If anyone has local changes in their repo (due to
patch queues or whatever) stop them from leaking
into the main repository.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5144043

13 years agostrconv: faster Unquote in common case
Russ Cox [Mon, 26 Sep 2011 17:59:12 +0000 (13:59 -0400)]
strconv: faster Unquote in common case

Also reject literal newline in " and ' quoted strings.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5139045

13 years agotest: merge nilptr/* into one test
Russ Cox [Mon, 26 Sep 2011 17:59:01 +0000 (13:59 -0400)]
test: merge nilptr/* into one test

The 512 MB array causes load delays on some systems.
Now that we have recover, we can do all the tests in
one binary, so that the delay is incurred just once.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/5142044

13 years agotest: disable sigchld test on Windows
Russ Cox [Mon, 26 Sep 2011 17:11:22 +0000 (13:11 -0400)]
test: disable sigchld test on Windows

Alex Brainman reports that this is the only test
that keeps us from running test/run.

R=alex.brainman, lucio.dere, bradfitz, hectorchu
CC=golang-dev
https://golang.org/cl/4777043

13 years agounicode: fix make tables
Russ Cox [Mon, 26 Sep 2011 17:10:16 +0000 (13:10 -0400)]
unicode: fix make tables

R=r
CC=golang-dev
https://golang.org/cl/5131044

13 years agodoc: fix memory model read visibility bug
Russ Cox [Mon, 26 Sep 2011 16:54:30 +0000 (12:54 -0400)]
doc: fix memory model read visibility bug

Fixes #2277.

R=dvyukov, r
CC=golang-dev
https://golang.org/cl/5083044