From: Rob Pike Date: Sat, 21 Sep 2013 07:53:44 +0000 (+1000) Subject: doc/go1.2.html: pre-emption; cgo and C++ X-Git-Tag: go1.2rc2~152 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e4c1fffcb12df2eaca4dc5edd62409901e41b27a;p=gostls13.git doc/go1.2.html: pre-emption; cgo and C++ These were bullet points that I had neglected to flesh out. R=golang-dev, dvyukov CC=golang-dev https://golang.org/cl/13816043 --- diff --git a/doc/go1.2.html b/doc/go1.2.html index ddaf862ade..38179b126d 100644 --- a/doc/go1.2.html +++ b/doc/go1.2.html @@ -125,15 +125,25 @@ This is a backwards-compatible change that affects no existing programs.

Changes to the implementations and tools

- +

+In prior releases, a goroutine that was looping forever could starve out other +goroutines on the same thread, a serious problem when GOMAXPROCS +provided only one user thread. +In Go1.2, this is partially addressed: The scheduler is invoked occasionally +upon entry to a function. +This means that any loop that includes a (non-inlined) function call can +be pre-empted, allowing other goroutines to run on the same thread. +

+ +

Cgo and C++

+ +

+The cgo command will now invoke the C++ +compiler to build any pieces of the linked-to library that are written in C++; the +documentation has more detail. +

Godoc and vet moved to the go.tools subrepository