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

Issue 4974043: code review 4974043: runtime: improve locking on openbsd (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by jsing
Modified:
13 years, 5 months ago
Reviewers:
dvyukov
CC:
golang-dev, rsc
Visibility:
Public.

Description

runtime: improve locking on openbsd Implement a locking model based on the current linux model - a tri-state mutex with active spinning, passive spinning and sleeping.

Patch Set 1 : diff -r 06199863489f https://go.googlecode.com/hg/ #

Patch Set 2 : diff -r 06199863489f https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r e3fce1a757cb https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -25 lines) Patch
M src/pkg/runtime/openbsd/386/sys.s View 1 chunk +10 lines, -0 lines 0 comments Download
M src/pkg/runtime/openbsd/amd64/defs.h View 1 chunk +2 lines, -0 lines 0 comments Download
M src/pkg/runtime/openbsd/amd64/sys.s View 1 chunk +10 lines, -10 lines 0 comments Download
M src/pkg/runtime/openbsd/thread.c View 2 chunks +84 lines, -15 lines 0 comments Download

Messages

Total messages: 9
jsing
Hello golang-dev@googlegroups.com (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
13 years, 5 months ago (2011-10-07 14:09:25 UTC) #1
dvyukov
I think it's a dead end to try to optimize all those implementations separately. I ...
13 years, 5 months ago (2011-10-07 14:18:57 UTC) #2
dvyukov
On 2011/10/07 14:18:57, dvyukov wrote: > I think it's a dead end to try to ...
13 years, 5 months ago (2011-10-07 14:38:10 UTC) #3
jsing
On 2011/10/07 14:18:57, dvyukov wrote: > I think it's a dead end to try to ...
13 years, 5 months ago (2011-10-07 14:51:02 UTC) #4
rsc
I agree that it's fine to move forward with this even if Dmitriy is going ...
13 years, 5 months ago (2011-10-07 15:02:19 UTC) #5
jsing
On 2011/10/07 15:02:19, rsc wrote: > I agree that it's fine to move forward with ...
13 years, 5 months ago (2011-10-07 15:15:12 UTC) #6
rsc
LGTM
13 years, 5 months ago (2011-10-07 15:25:59 UTC) #7
jsing
*** Submitted as http://code.google.com/p/go/source/detail?r=3894889d5c1c *** runtime: improve locking on openbsd Implement a locking model based ...
13 years, 5 months ago (2011-10-08 13:56:21 UTC) #8
dvyukov
13 years, 5 months ago (2011-10-10 12:54:47 UTC) #9
On 2011/10/07 14:51:02, jsing wrote:
> On 2011/10/07 14:18:57, dvyukov wrote:
> > I think it's a dead end to try to optimize all those implementations
> separately.
> > I have a patch that unifies all mutex implementations to just 2 (futex and
> > semaphore based):
> > http://codereview.appspot.com/5140043/
> > I think it's better to complete that patch.
> 
> I like the idea of moving to a consistent/shared locking model, rather than
> having one per operating system, however I'm not sure that it should block
this
> change.
> 
> I believe that this change will address the time/scheduling issues that are
> being seen on the openbsd amd64 buildbot. Also, AFAIK OpenBSD does not have
> lightweight semaphores (unless you link against libpthread) or an exact futex
> equivalent, so you'll likely need some of the code/behaviour that is in this
> change anyway.

Agree
Sign in to reply to this message.

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