From: Shenghou Ma Date: Wed, 7 Mar 2012 19:56:31 +0000 (+0800) Subject: doc/go_mem: init-created goroutine behavior changes for Go 1 X-Git-Tag: weekly.2012-03-13~120 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6b770f05aded85c6e6eabeef498271cdf5df3c71;p=gostls13.git 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 --- 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 @@ @@ -107,9 +107,9 @@ unspecified order.

Initialization

-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.

@@ -122,11 +122,6 @@ The start of the function main.main happens after all init functions have finished.

-

-The execution of any goroutines created during init -functions happens after all init functions have finished. -

-

Goroutine creation