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

Issue 130340043: code review 130340043: runtime: convert synchronous semaphores to Go (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by dvyukov
Modified:
10 years, 8 months ago
Reviewers:
rsc
CC:
golang-codereviews, khr, rsc, rlh
Visibility:
Public.

Description

runtime: convert synchronous semaphores to Go

Patch Set 1 #

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

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

Total comments: 5

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

Patch Set 5 : diff -r 01dfd37363e90fcfdb4bd8e84d275709fa7e7f5e https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 1

Patch Set 6 : diff -r 01dfd37363e90fcfdb4bd8e84d275709fa7e7f5e https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 4

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -351 lines) Patch
M src/pkg/runtime/sema.go View 1 2 3 4 5 6 1 chunk +82 lines, -259 lines 0 comments Download
M src/pkg/runtime/sema.goc View 1 2 3 1 chunk +0 lines, -90 lines 0 comments Download
A src/pkg/runtime/thunk.s View 1 2 3 1 chunk +21 lines, -0 lines 0 comments Download
M src/pkg/sync/runtime.go View 1 1 chunk +6 lines, -2 lines 0 comments Download

Messages

Total messages: 9
dvyukov
Hello golang-codereviews@googlegroups.com (cc: khr@golang.org, rlh@golang.org, rsc@golang.org), I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
10 years, 8 months ago (2014-08-20 16:41:16 UTC) #1
khr
You're right about the sudoG-in-G problem. I might need to make the stack copier aware ...
10 years, 8 months ago (2014-08-20 18:12:44 UTC) #2
dvyukov
This change in turn blocked on https://codereview.appspot.com/123640043/ https://codereview.appspot.com/130340043/diff/40001/src/pkg/runtime/sema.goc File src/pkg/runtime/sema.goc (right): https://codereview.appspot.com/130340043/diff/40001/src/pkg/runtime/sema.goc#newcode212 src/pkg/runtime/sema.goc:212: func sync·runtime_Syncsemacquire(s ...
10 years, 8 months ago (2014-08-21 12:19:02 UTC) #3
dvyukov
PTAL https://codereview.appspot.com/130340043/diff/40001/src/pkg/runtime/sema.go File src/pkg/runtime/sema.go (right): https://codereview.appspot.com/130340043/diff/40001/src/pkg/runtime/sema.go#newcode99 src/pkg/runtime/sema.go:99: if sz != unsafe.Sizeof(*(*syncSema)(nil)) { On 2014/08/20 18:12:43, ...
10 years, 8 months ago (2014-08-22 20:56:30 UTC) #4
rsc
https://codereview.appspot.com/130340043/diff/80001/src/pkg/runtime/sema.go File src/pkg/runtime/sema.go (right): https://codereview.appspot.com/130340043/diff/80001/src/pkg/runtime/sema.go#newcode1 src/pkg/runtime/sema.go:1: // Copyright 2014 The Go Authors. All rights reserved. ...
10 years, 8 months ago (2014-08-22 22:55:48 UTC) #5
dvyukov
On 2014/08/22 22:55:48, rsc wrote: > https://codereview.appspot.com/130340043/diff/80001/src/pkg/runtime/sema.go > File src/pkg/runtime/sema.go (right): > > https://codereview.appspot.com/130340043/diff/80001/src/pkg/runtime/sema.go#newcode1 > ...
10 years, 8 months ago (2014-08-23 08:14:22 UTC) #6
rsc
LGTM https://codereview.appspot.com/130340043/diff/100001/src/pkg/runtime/sema.go File src/pkg/runtime/sema.go (right): https://codereview.appspot.com/130340043/diff/100001/src/pkg/runtime/sema.go#newcode86 src/pkg/runtime/sema.go:86: releasetimep := (*int64)(unsafe.Pointer(&wake.releasetime)) // TODO: Remove use of ...
10 years, 8 months ago (2014-08-23 21:21:27 UTC) #7
dvyukov
https://codereview.appspot.com/130340043/diff/100001/src/pkg/runtime/sema.go File src/pkg/runtime/sema.go (right): https://codereview.appspot.com/130340043/diff/100001/src/pkg/runtime/sema.go#newcode86 src/pkg/runtime/sema.go:86: releasetimep := (*int64)(unsafe.Pointer(&wake.releasetime)) On 2014/08/23 21:21:27, rsc wrote: > ...
10 years, 8 months ago (2014-08-24 08:36:26 UTC) #8
dvyukov
10 years, 8 months ago (2014-08-24 08:41:26 UTC) #9
*** Submitted as https://code.google.com/p/go/source/detail?r=bebfeba1e59d ***

runtime: convert synchronous semaphores to Go

LGTM=rsc
R=golang-codereviews, khr, rsc
CC=golang-codereviews, rlh
https://codereview.appspot.com/130340043
Sign in to reply to this message.

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