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

Issue 9196047: code review 9196047: runtime: unset m->locks after actual lock unlock (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 2 months ago by dvyukov
Modified:
12 years, 2 months ago
Reviewers:
CC:
golang-dev, khr, iant
Visibility:
Public.

Description

runtime: unset m->locks after actual lock unlock This is needed for preemptive scheduler, it will preempt only when m->locks==0, and we do not want to be preempted while we have not completely unlocked the lock.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M src/pkg/runtime/lock_futex.c View 1 1 chunk +3 lines, -3 lines 0 comments Download
M src/pkg/runtime/lock_sema.c View 1 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 4
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
12 years, 2 months ago (2013-05-13 10:04:51 UTC) #1
khr
LGTM
12 years, 2 months ago (2013-05-14 22:59:15 UTC) #2
iant
LGTM
12 years, 2 months ago (2013-05-14 23:05:53 UTC) #3
dvyukov
12 years, 2 months ago (2013-05-15 12:48:58 UTC) #4
*** Submitted as https://code.google.com/p/go/source/detail?r=2cb5c773629c ***

runtime: unset m->locks after actual lock unlock
This is needed for preemptive scheduler,
it will preempt only when m->locks==0,
and we do not want to be preempted while
we have not completely unlocked the lock.

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

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