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

Issue 9843046: code review 9843046: runtime: introduce preemption function (not used for now) (Closed)

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

Description

runtime: introduce preemption function (not used for now) This is part of preemptive scheduler.

Patch Set 1 #

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

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

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

Total comments: 2

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

Total comments: 9

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

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

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+46 lines, -0 lines) Patch
M src/pkg/runtime/proc.c View 1 2 3 4 5 2 chunks +41 lines, -0 lines 0 comments Download
M src/pkg/runtime/stack.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 1 comment Download

Messages

Total messages: 14
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
10 years, 11 months ago (2013-05-30 10:11:17 UTC) #1
cshapiro1
Can this be part of a change with more context?
10 years, 11 months ago (2013-05-31 04:23:23 UTC) #2
dvyukov
On 2013/05/31 04:23:23, cshapiro1 wrote: > Can this be part of a change with more ...
10 years, 11 months ago (2013-05-31 05:41:59 UTC) #3
iant
https://codereview.appspot.com/9843046/diff/8001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/9843046/diff/8001/src/pkg/runtime/proc.c#newcode2071 src/pkg/runtime/proc.c:2071: preemptall(void) Please add a comment before these new functions ...
10 years, 11 months ago (2013-06-01 00:24:46 UTC) #4
dvyukov
On 2013/06/01 00:24:46, iant wrote: > https://codereview.appspot.com/9843046/diff/8001/src/pkg/runtime/proc.c > File src/pkg/runtime/proc.c (right): > > https://codereview.appspot.com/9843046/diff/8001/src/pkg/runtime/proc.c#newcode2071 > ...
10 years, 11 months ago (2013-06-01 19:36:42 UTC) #5
iant
LGTM https://codereview.appspot.com/9843046/diff/15001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/9843046/diff/15001/src/pkg/runtime/proc.c#newcode2074 src/pkg/runtime/proc.c:2074: // Issue preemption signal to all running goroutines. ...
10 years, 11 months ago (2013-06-03 04:41:44 UTC) #6
dvyukov
https://codereview.appspot.com/9843046/diff/15001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/9843046/diff/15001/src/pkg/runtime/proc.c#newcode2077 src/pkg/runtime/proc.c:2077: // the signal to a wrong goroutine that has ...
10 years, 11 months ago (2013-06-03 09:17:51 UTC) #7
dvyukov
*** Submitted as https://code.google.com/p/go/source/detail?r=01810e5c68e9 *** runtime: introduce preemption function (not used for now) This is ...
10 years, 11 months ago (2013-06-03 09:20:33 UTC) #8
jnj
https://codereview.appspot.com/9843046/diff/28001/src/pkg/runtime/stack.h File src/pkg/runtime/stack.h (right): https://codereview.appspot.com/9843046/diff/28001/src/pkg/runtime/stack.h#newcode112 src/pkg/runtime/stack.h:112: StackPreempt = (uintptr)(intptr)0xfffffade, This line breaks the Plan 9 ...
10 years, 10 months ago (2013-06-04 18:13:37 UTC) #9
iant
On 2013/06/04 18:13:37, jnj wrote: > https://codereview.appspot.com/9843046/diff/28001/src/pkg/runtime/stack.h > File src/pkg/runtime/stack.h (right): > > https://codereview.appspot.com/9843046/diff/28001/src/pkg/runtime/stack.h#newcode112 > ...
10 years, 10 months ago (2013-06-04 18:43:44 UTC) #10
ality
iant@golang.org once said: > The cast to intptr matters because we want to sign extend ...
10 years, 10 months ago (2013-06-04 22:54:44 UTC) #11
rsc
On Tue, Jun 4, 2013 at 2:43 PM, <iant@golang.org> wrote: > The cast to intptr ...
10 years, 10 months ago (2013-06-10 19:30:01 UTC) #12
dvyukov
On Mon, Jun 10, 2013 at 11:29 PM, Russ Cox <rsc@golang.org> wrote: > On Tue, ...
10 years, 10 months ago (2013-06-10 19:38:46 UTC) #13
iant
10 years, 10 months ago (2013-06-10 21:05:13 UTC) #14
On Mon, Jun 10, 2013 at 12:29 PM, Russ Cox <rsc@golang.org> wrote:
>
> If we are on a 64-bit machine, then: 0xfffffade has type unsigned int,
> meaning it is an unsigned 32-bit int, intptr is a signed 64-bit int. A
> conversion of a uint32 to an int64 can be injective, and so it should be,
> meaning that (intptr)0xfffffade has zeros in its high bits. So
> (uintptr)(intptr)0xfffffade == (uintptr)0xfffffade.

Sorry about that.  I hope that was just a bad day.

Ian
Sign in to reply to this message.

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