From e4c1fffcb12df2eaca4dc5edd62409901e41b27a Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Sat, 21 Sep 2013 17:53:44 +1000 Subject: [PATCH] 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 --- doc/go1.2.html | 26 ++++++++++++++++++-------- 1 file changed, 18 insertions(+), 8 deletions(-) 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

-- 2.48.1