diff options
author | Shenghou Ma <minux.ma@gmail.com> | 2012-03-08 03:56:31 +0800 |
---|---|---|
committer | Shenghou Ma <minux.ma@gmail.com> | 2012-03-08 03:56:31 +0800 |
commit | 6b770f05aded85c6e6eabeef498271cdf5df3c71 (patch) | |
tree | 568d8138a3e7c0603afb05dec4afe0715ccec093 /doc/go_mem.html | |
parent | babbf941c9287843807ea79820c33077b6b2a010 (diff) | |
download | go-6b770f05aded85c6e6eabeef498271cdf5df3c71.tar.gz go-6b770f05aded85c6e6eabeef498271cdf5df3c71.zip |
doc/go_mem: init-created goroutine behavior changes for Go 1
They can start execution even before all init functions end.
R=rsc, r, adg
CC=golang-dev
https://golang.org/cl/5732061
Diffstat (limited to 'doc/go_mem.html')
-rw-r--r-- | doc/go_mem.html | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/doc/go_mem.html b/doc/go_mem.html index a003241581..1d45dceb62 100644 --- a/doc/go_mem.html +++ b/doc/go_mem.html @@ -1,6 +1,6 @@ <!--{ "Title": "The Go Memory Model", - "Subtitle": "Version of June 10, 2011", + "Subtitle": "Version of March 6, 2012" "Path": "/ref/mem" }--> @@ -107,9 +107,9 @@ unspecified order. <h3>Initialization</h3> <p> -Program initialization runs in a single goroutine and -new goroutines created during initialization do not -start running until initialization ends. +Program initialization runs in a single goroutine, +but that goroutine may create other goroutines, +which run concurrently. </p> <p class="rule"> @@ -122,11 +122,6 @@ The start of the function <code>main.main</code> happens after all <code>init</code> functions have finished. </p> -<p class="rule"> -The execution of any goroutines created during <code>init</code> -functions happens after all <code>init</code> functions have finished. -</p> - <h3>Goroutine creation</h3> <p class="rule"> |