From 6b770f05aded85c6e6eabeef498271cdf5df3c71 Mon Sep 17 00:00:00 2001 From: Shenghou Ma Date: Thu, 8 Mar 2012 03:56:31 +0800 Subject: [PATCH] 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 --- doc/go_mem.html | 13 ++++--------- 1 file 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 @@ @@ -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

-- 2.50.0