Keyboard Shortcuts

File
u :up to issue
m :publish + mail comments
M :edit review message
j / k :jump to file after / before current file
J / K :jump to next file with a comment after / before current file
Side-by-side diff
i :toggle intra-line diffs
e :expand all comments
c :collapse all comments
s :toggle showing all comments
n / p :next / previous diff chunk or comment
N / P :next / previous comment
<Up> / <Down> :next / previous line
<Enter> :respond to / edit current comment
d :mark current comment as done
Issue
u :up to list of issues
m :publish + mail comments
j / k :jump to patch after / before current patch
o / <Enter> :open current patch in side-by-side view
i :open current patch in unified diff view
Issue List
j / k :jump to issue after / before current issue
o / <Enter> :open current issue
# : close issue
Comment/message editing
<Ctrl> + s or <Ctrl> + Enter :save comment
<Esc> :cancel edit
Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(37)
Issues Repositories Search
Open Issues | Closed Issues | All Issues | Sign in with your Google Account to create issues and add comments

Issue 9136045: runtime: preemptive scheduler

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by dvyukov
Modified:
12 years, 6 months ago
Reviewers:
Tw
Visibility:
Public.
runtime: preemptive scheduler

Patch Set 1 #

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

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

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

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

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

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

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

Patch Set 9 : diff -r 673dec3ec845 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 10 : diff -r 673dec3ec845 https://dvyukov%40google.com@code.google.com/p/go/ #

Patch Set 11 : diff -r 673dec3ec845 https://dvyukov%40google.com@code.google.com/p/go/ #

Total comments: 3
Created: 12 years, 7 months ago
Download [raw] [tar.bz2]
Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -46 lines) Patch
M src/pkg/runtime/asm_386.s View 1 2 3 4 5 6 7 3 chunks +18 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_amd64.s View 1 2 3 4 5 6 3 chunks +18 lines, -0 lines 0 comments Download
M src/pkg/runtime/asm_arm.s View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/chan.c View 1 2 3 4 5 4 chunks +0 lines, -11 lines 0 comments Download
M src/pkg/runtime/hashmap.c View 1 2 3 4 5 6 7 3 chunks +0 lines, -8 lines 0 comments Download
M src/pkg/runtime/panic.c View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 5 6 7 8 22 chunks +110 lines, -23 lines 0 comments Download
M src/pkg/runtime/proc_test.go View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 7 8 5 chunks +8 lines, -1 line 0 comments Download
M src/pkg/runtime/stack.h View 1 2 3 1 chunk +5 lines, -0 lines 0 comments Download
M src/pkg/runtime/stack.c View 1 2 3 4 5 6 7 7 chunks +39 lines, -3 lines 3 comments Download
Total messages: 5
|
Tw
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c File src/pkg/runtime/stack.c (right): https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c#newcode279 src/pkg/runtime/stack.c:279: if(gp->stackguard1 != StackPreempt || preempt) here maybe: if(gp->stackguard1 != ...
12 years, 7 months ago (2013年05月29日 15:46:54 UTC) #1
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c
File src/pkg/runtime/stack.c (right):
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c#new...
src/pkg/runtime/stack.c:279: if(gp->stackguard1 != StackPreempt || preempt)
here maybe: 
if(gp->stackguard1 != StackPreempt || !preempt) ??
Sign in to reply to this message.
dvyukov
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c File src/pkg/runtime/stack.c (right): https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c#newcode279 src/pkg/runtime/stack.c:279: if(gp->stackguard1 != StackPreempt || preempt) On 2013年05月29日 15:46:54, tw19881113 ...
12 years, 7 months ago (2013年05月29日 15:53:37 UTC) #2
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c
File src/pkg/runtime/stack.c (right):
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c#new...
src/pkg/runtime/stack.c:279: if(gp->stackguard1 != StackPreempt || preempt)
On 2013年05月29日 15:46:54, tw19881113 wrote:
> here maybe: 
> if(gp->stackguard1 != StackPreempt || !preempt) ??
I think the current condition is correct.
Sign in to reply to this message.
Tw
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c File src/pkg/runtime/stack.c (right): https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c#newcode279 src/pkg/runtime/stack.c:279: if(gp->stackguard1 != StackPreempt || preempt) On 2013年05月29日 15:53:37, dvyukov ...
12 years, 7 months ago (2013年05月29日 16:04:34 UTC) #3
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c
File src/pkg/runtime/stack.c (right):
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c#new...
src/pkg/runtime/stack.c:279: if(gp->stackguard1 != StackPreempt || preempt)
On 2013年05月29日 15:53:37, dvyukov wrote:
> On 2013年05月29日 15:46:54, tw19881113 wrote:
> > here maybe: 
> > if(gp->stackguard1 != StackPreempt || !preempt) ??
> 
> I think the current condition is correct.
Here is what I think:
If preempt == true and arrived here, it says the preemption was requested but
can't preempt right now, so we must let gp->stackguard1 = StackPreempt, and let
it try to preempt next time.
Sign in to reply to this message.
dvyukov
On Wed, May 29, 2013 at 8:04 PM, <tw19881113@gmail.com> wrote: > > https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c > File ...
12 years, 7 months ago (2013年05月29日 16:08:42 UTC) #4
On Wed, May 29, 2013 at 8:04 PM, <tw19881113@gmail.com> wrote:
>
> https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c
> File src/pkg/runtime/stack.c (right):
>
>
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c#new...
> src/pkg/runtime/stack.c:279: if(gp->stackguard1 != StackPreempt ||
> preempt)
> On 2013年05月29日 15:53:37, dvyukov wrote:
>>
>> On 2013年05月29日 15:46:54, tw19881113 wrote:
>> > here maybe:
>> > if(gp->stackguard1 != StackPreempt || !preempt) ??
>
>
>> I think the current condition is correct.
>
> Here is what I think:
> If preempt == true and arrived here, it says the preemption was
> requested but can't preempt right now, so we must let gp->stackguard1 =
> StackPreempt, and let it try to preempt next time.
No, if preempt == true, we will preempt now.
Sign in to reply to this message.
Tw
On 2013年05月29日 16:08:42, dvyukov wrote: > On Wed, May 29, 2013 at 8:04 PM, <mailto:tw19881113@gmail.com> ...
12 years, 7 months ago (2013年05月30日 00:28:46 UTC) #5
On 2013年05月29日 16:08:42, dvyukov wrote:
> On Wed, May 29, 2013 at 8:04 PM, <mailto:tw19881113@gmail.com> wrote:
> >
> > https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c
> > File src/pkg/runtime/stack.c (right):
> >
> >
>
https://codereview.appspot.com/9136045/diff/28002/src/pkg/runtime/stack.c#new...
> > src/pkg/runtime/stack.c:279: if(gp->stackguard1 != StackPreempt ||
> > preempt)
> > On 2013年05月29日 15:53:37, dvyukov wrote:
> >>
> >> On 2013年05月29日 15:46:54, tw19881113 wrote:
> >> > here maybe:
> >> > if(gp->stackguard1 != StackPreempt || !preempt) ??
> >
> >
> >> I think the current condition is correct.
> >
> > Here is what I think:
> > If preempt == true and arrived here, it says the preemption was
> > requested but can't preempt right now, so we must let gp->stackguard1 =
> > StackPreempt, and let it try to preempt next time.
> 
> No, if preempt == true, we will preempt now.
Yeah, you are right, I thought it the wrong way.
Sorry for asking the stupid questions.
Sign in to reply to this message.
|
Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b

AltStyle によって変換されたページ (->オリジナル) /