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

Issue 8459043: code review 8459043: runtime: fix deadlock in network poller (Closed)

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

Description

runtime: fix deadlock in network poller The invariant is that there must be at least one running P or a thread polling network. It was broken. Fixes issue 5216.

Patch Set 1 #

Patch Set 2 : diff -r 86d6b4b66fb6 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 3 : diff -r 86d6b4b66fb6 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 2

Patch Set 4 : diff -r 78a5faa22bbf https://dvyukov%40google.com@code.google.com/p/go/ #

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

Messages

Total messages: 5
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years ago (2013-04-07 03:41:26 UTC) #1
bradfitz
https://codereview.appspot.com/8459043/diff/3/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/8459043/diff/3/src/pkg/runtime/proc.c#newcode881 src/pkg/runtime/proc.c:881: runtime·unlock(&runtime·sched); same block of code as the one above, ...
11 years ago (2013-04-07 03:49:47 UTC) #2
dvyukov
https://codereview.appspot.com/8459043/diff/3/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/8459043/diff/3/src/pkg/runtime/proc.c#newcode881 src/pkg/runtime/proc.c:881: runtime·unlock(&runtime·sched); Yes, that was the intent. The conditions and ...
11 years ago (2013-04-07 03:55:43 UTC) #3
r
LGTM
11 years ago (2013-04-07 05:10:11 UTC) #4
dvyukov
11 years ago (2013-04-07 05:28:15 UTC) #5
*** Submitted as https://code.google.com/p/go/source/detail?r=34f14e209a2e ***

runtime: fix deadlock in network poller
The invariant is that there must be at least one running P or a thread polling
network.
It was broken.
Fixes issue 5216.

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

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