1
0
mirror of https://github.com/golang/go synced 2024-11-24 07:40:17 -07:00
go/doc
Russ Cox 89f185fe8a all: remove 'extern register M *m' from runtime
The runtime has historically held two dedicated values g (current goroutine)
and m (current thread) in 'extern register' slots (TLS on x86, real registers
backed by TLS on ARM).

This CL removes the extern register m; code now uses g->m.

On ARM, this frees up the register that formerly held m (R9).
This is important for NaCl, because NaCl ARM code cannot use R9 at all.

The Go 1 macrobenchmarks (those with per-op times >= 10 µs) are unaffected:

BenchmarkBinaryTree17              5491374955     5471024381     -0.37%
BenchmarkFannkuch11                4357101311     4275174828     -1.88%
BenchmarkGobDecode                 11029957       11364184       +3.03%
BenchmarkGobEncode                 6852205        6784822        -0.98%
BenchmarkGzip                      650795967      650152275      -0.10%
BenchmarkGunzip                    140962363      141041670      +0.06%
BenchmarkHTTPClientServer          71581          73081          +2.10%
BenchmarkJSONEncode                31928079       31913356       -0.05%
BenchmarkJSONDecode                117470065      113689916      -3.22%
BenchmarkMandelbrot200             6008923        5998712        -0.17%
BenchmarkGoParse                   6310917        6327487        +0.26%
BenchmarkRegexpMatchMedium_1K      114568         114763         +0.17%
BenchmarkRegexpMatchHard_1K        168977         169244         +0.16%
BenchmarkRevcomp                   935294971      914060918      -2.27%
BenchmarkTemplate                  145917123      148186096      +1.55%

Minux previous reported larger variations, but these were caused by
run-to-run noise, not repeatable slowdowns.

Actual code changes by Minux.
I only did the docs and the benchmarking.

LGTM=dvyukov, iant, minux
R=minux, josharian, iant, dave, bradfitz, dvyukov
CC=golang-codereviews
https://golang.org/cl/109050043
2014-06-26 11:54:39 -04:00
..
articles doc: say that race detector is supported on freebsd 2014-06-21 20:19:32 +04:00
codewalk doc: fix typo in sharemem codewalk 2014-05-21 14:34:20 -07:00
devel doc: document Go 1.3 2014-06-19 10:26:57 +10:00
gopher
play
progs
asm.html all: remove 'extern register M *m' from runtime 2014-06-26 11:54:39 -04:00
cmd.html
code.html
contrib.html doc/contrib.html: update links, mailing lists and link to 1.3 release note. 2014-06-01 22:48:57 -04:00
contribute.html doc/contribute.html: link to wiki for more code review information 2014-04-25 20:09:04 -07:00
debugging_with_gdb.html doc/debugging_with_gdb.html: add introductory disclaimer 2014-04-26 10:18:17 -06:00
docs.html doc: link to release history from /doc/ 2014-06-12 13:31:13 +10:00
effective_go.html doc/effective_go.html: a little more about errors 2014-05-14 13:46:58 -07:00
gccgo_contribute.html
gccgo_install.html doc: fix broken link to RTEMS Go wiki page 2014-04-28 06:27:22 -07:00
go1.1.html
go1.2.html
go1.3.html doc: add release note for 'godoc -analysis' 2014-06-12 10:08:54 -04:00
go1.4.txt doc/go1.4.txt: text/scanner: IsIdentRune 2014-06-24 11:09:13 -07:00
go1.html doc: link to new downloads page 2014-06-13 16:34:52 +10:00
go1compat.html
go_faq.html doc: replace absolute links to golang.org with relative links 2014-05-07 18:49:13 +04:00
go_mem.html doc: fix happens-before rules for buffered channels 2014-06-05 21:08:28 +04:00
go_spec.html spec: receiver declaration is just a parameter declaration 2014-06-24 16:25:09 -07:00
go-logo-black.png
go-logo-blue.png
go-logo-white.png
help.html doc/help.html: fix typo in word order 2014-04-14 13:03:03 -07:00
ie.css
install-source.html doc/install-source.html: document that GO386 will be auto-detected when building on both 386 and amd64. 2014-06-04 19:53:37 -04:00
install.html doc: link to new downloads page 2014-06-13 16:34:52 +10:00
logo-153x55.png
root.html
share.png
sieve.gif
tos.html