Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(726)

Issue 9311043: code review 9311043: runtime: fix crash in select (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 11 months ago by iant
Modified:
10 years, 11 months ago
Reviewers:
CC:
golang-dev, r
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : diff -r 87762a7629b4 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -9 lines) Patch
M src/pkg/runtime/chan.c View 1 chunk +20 lines, -9 lines 0 comments Download

Messages

Total messages: 3
iant
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://go.googlecode.com/hg/
10 years, 11 months ago (2013-05-08 21:54:41 UTC) #1
r
LGTM
10 years, 11 months ago (2013-05-08 21:57:08 UTC) #2
iant
10 years, 11 months ago (2013-05-08 21:58:38 UTC) #3
*** Submitted as https://code.google.com/p/go/source/detail?r=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 issue 5422.

R=golang-dev, r
CC=golang-dev
https://codereview.appspot.com/9311043
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b