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

Issue 9868044: code review 9868044: runtime: refactor gogo (Closed)

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

Description

runtime: refactor gogo Instead of 3 overlapping functions (gogo, gogocall, gogocallfn) introduce 2 non-overlapping functions (gogo, returnto). Required for preemptive scheduler, otherwise it would need to introduce yet another function -- gogo2 (same as gogo, but restores DX instead of AX).

Patch Set 1 #

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

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

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

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

Total comments: 4

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

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

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

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

Total comments: 6

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

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -138 lines) Patch
M src/pkg/runtime/asm_386.s View 1 2 3 4 5 6 7 5 chunks +20 lines, -42 lines 2 comments Download
M src/pkg/runtime/asm_amd64.s View 1 2 3 4 5 6 7 4 chunks +19 lines, -41 lines 0 comments Download
M src/pkg/runtime/asm_arm.s View 1 2 3 4 5 6 7 5 chunks +16 lines, -37 lines 0 comments Download
M src/pkg/runtime/mgc0.c View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/panic.c View 1 1 chunk +1 line, -1 line 0 comments Download
M src/pkg/runtime/proc.c View 1 2 3 4 5 6 7 8 9 5 chunks +35 lines, -4 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -4 lines 0 comments Download
M src/pkg/runtime/stack.c View 1 2 3 4 5 6 7 3 chunks +11 lines, -8 lines 0 comments Download

Messages

Total messages: 23
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 13:17:23 UTC) #1
dvyukov
I absolutely have no idea what I am doing wrt arm. Can somebody please test ...
10 years, 11 months ago (2013-05-30 13:18:11 UTC) #2
iant
I think we need some good docs for gogo and returnto somewhere. https://codereview.appspot.com/9868044/diff/11001/src/pkg/runtime/asm_arm.s File src/pkg/runtime/asm_arm.s ...
10 years, 11 months ago (2013-05-31 22:35:52 UTC) #3
dvyukov
PTAL >I think we need some good docs for gogo and returnto somewhere. I am ...
10 years, 11 months ago (2013-06-01 19:59:18 UTC) #4
iant
On 2013/06/01 19:59:18, dvyukov wrote: > PTAL > > >I think we need some good ...
10 years, 11 months ago (2013-06-03 04:30:20 UTC) #5
dvyukov
On 2013/06/03 04:30:20, iant wrote: > On 2013/06/01 19:59:18, dvyukov wrote: > > PTAL > ...
10 years, 11 months ago (2013-06-03 13:59:33 UTC) #6
iant
https://codereview.appspot.com/9868044/diff/28001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/9868044/diff/28001/src/pkg/runtime/proc.c#newcode30 src/pkg/runtime/proc.c:30: // AX holds return value from C functions and ...
10 years, 11 months ago (2013-06-03 14:58:56 UTC) #7
dvyukov
On 2013/05/30 13:18:11, dvyukov wrote: > I absolutely have no idea what I am doing ...
10 years, 11 months ago (2013-06-03 15:06:15 UTC) #8
dvyukov
https://codereview.appspot.com/9868044/diff/28001/src/pkg/runtime/proc.c File src/pkg/runtime/proc.c (right): https://codereview.appspot.com/9868044/diff/28001/src/pkg/runtime/proc.c#newcode30 src/pkg/runtime/proc.c:30: // AX holds return value from C functions and ...
10 years, 11 months ago (2013-06-03 15:09:27 UTC) #9
capnm
On 2013/06/03 15:06:15, dvyukov wrote: > Can somebody with ARM access please test this? Linux ...
10 years, 11 months ago (2013-06-03 15:46:13 UTC) #10
dvyukov
On 2013/06/03 15:46:13, capnm wrote: > On 2013/06/03 15:06:15, dvyukov wrote: > > Can somebody ...
10 years, 11 months ago (2013-06-03 15:54:32 UTC) #11
rsc
NOT LGTM I don't understand what is going on here. Why is the old API ...
10 years, 11 months ago (2013-06-03 20:33:48 UTC) #12
dvyukov
https://codereview.appspot.com/9868044/diff/29009/src/pkg/runtime/asm_386.s File src/pkg/runtime/asm_386.s (right): https://codereview.appspot.com/9868044/diff/29009/src/pkg/runtime/asm_386.s#newcode156 src/pkg/runtime/asm_386.s:156: // void returnto(Gobuf*, byte*) On 2013/06/03 20:33:49, rsc wrote: ...
10 years, 11 months ago (2013-06-04 10:31:00 UTC) #13
dvyukov
On 2013/06/03 20:33:48, rsc wrote: > NOT LGTM > > I don't understand what is ...
10 years, 11 months ago (2013-06-04 10:59:51 UTC) #14
rsc
Okay, I see what you are getting at. But the naming is confusing, and the ...
10 years, 11 months ago (2013-06-05 14:39:08 UTC) #15
dvyukov
On Wed, Jun 5, 2013 at 6:39 PM, Russ Cox <rsc@golang.org> wrote: > Okay, I ...
10 years, 11 months ago (2013-06-05 14:56:36 UTC) #16
dvyukov
On Wed, Jun 5, 2013 at 6:56 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > On Wed, ...
10 years, 11 months ago (2013-06-05 15:00:13 UTC) #17
rsc
On Wed, Jun 5, 2013 at 11:00 AM, Dmitry Vyukov <dvyukov@google.com> wrote: > On Wed, ...
10 years, 11 months ago (2013-06-05 15:09:02 UTC) #18
dvyukov
On Wed, Jun 5, 2013 at 7:09 PM, Russ Cox <rsc@golang.org> wrote: > On Wed, ...
10 years, 11 months ago (2013-06-05 15:14:20 UTC) #19
rsc
I looked at this CL again after your question about setup being the other way ...
10 years, 11 months ago (2013-06-05 18:05:24 UTC) #20
dvyukov
On Wed, Jun 5, 2013 at 10:05 PM, Russ Cox <rsc@golang.org> wrote: > I looked ...
10 years, 11 months ago (2013-06-06 16:03:19 UTC) #21
ality
Thanks for taking the time to explain the motivation. I enjoyed reading it. Anthony
10 years, 11 months ago (2013-06-06 21:33:03 UTC) #22
dvyukov
10 years, 11 months ago (2013-06-14 14:23:22 UTC) #23
*** Abandoned ***
Sign in to reply to this message.

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