]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.1] runtime: fix crash in select
authorAndrew Gerrand <adg@golang.org>
Wed, 8 May 2013 23:02:59 +0000 (16:02 -0700)
committerAndrew Gerrand <adg@golang.org>
Wed, 8 May 2013 23:02:59 +0000 (16:02 -0700)
commit91504a0e0d170b284e460c665235eaa2a041322d
tree320c02eef735ebfa8dcffbd40956ef43fb9bb504
parent836b670612f8cd5f7fe5455a90b8d0f3abde6d65
[release-branch.go1.1] runtime: fix crash in select

««« CL 9311043 / 53bc96b4c0c7
runtime: fix crash in select
runtime.park() can access freed select descriptor
due to a racing free in another thread.
See the comment for details.

Slightly modified version of dvyukov's CL 9259045.

No test yet.  Before this CL, the test described in issue 5422
would fail about every 40 times for me.  With this CL, I ran
the test 5900 times with no failures.

Fixes #5422.

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/9311043
»»»

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/9304044
src/pkg/runtime/chan.c