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

Issue 11374044: code review 11374044: runtime: use new frame argument size information (Closed)

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

Description

runtime: use new frame argument size information With this CL, I believe the runtime always knows the frame size during the gc walk. There is no fallback to "assume entire stack frame of caller" anymore.

Patch Set 1 #

Patch Set 2 : diff -r 8b12d6f12155 https://code.google.com/p/go/ #

Patch Set 3 : diff -r 0796c8d8af24 https://code.google.com/p/go/ #

Patch Set 4 : diff -r 0796c8d8af24 https://code.google.com/p/go/ #

Total comments: 4

Patch Set 5 : diff -r 47ec7a68b1a2 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -92 lines) Patch
M src/pkg/runtime/arch_386.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/runtime/arch_amd64.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/runtime/arch_arm.h View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/pkg/runtime/panic.c View 1 2 3 4 1 chunk +6 lines, -1 line 0 comments Download
M src/pkg/runtime/proc.c View 1 1 chunk +9 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/pkg/runtime/softfloat_arm.c View 1 2 3 4 1 chunk +4 lines, -1 line 0 comments Download
M src/pkg/runtime/symtab.c View 1 2 3 6 chunks +42 lines, -20 lines 0 comments Download
M src/pkg/runtime/traceback_arm.c View 1 2 3 4 4 chunks +57 lines, -39 lines 0 comments Download
M src/pkg/runtime/traceback_x86.c View 1 2 3 4 chunks +52 lines, -28 lines 0 comments Download

Messages

Total messages: 10
rsc
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
10 years, 9 months ago (2013-07-16 20:25:56 UTC) #1
khr
https://codereview.appspot.com/11374044/diff/8001/src/pkg/runtime/panic.c File src/pkg/runtime/panic.c (right): https://codereview.appspot.com/11374044/diff/8001/src/pkg/runtime/panic.c#newcode161 src/pkg/runtime/panic.c:161: runtime·deferreturn(uintptr arg0, ...) Why is this necessary? Deferreturn's argument ...
10 years, 9 months ago (2013-07-16 20:58:53 UTC) #2
cshapiro1
There were a number of changes related to this one that have gone by. I ...
10 years, 9 months ago (2013-07-16 21:04:18 UTC) #3
rsc
On 2013/07/16 21:04:18, cshapiro1 wrote: > There were a number of changes related to this ...
10 years, 9 months ago (2013-07-16 21:14:53 UTC) #4
rsc
Not sure what this one didn't send. https://codereview.appspot.com/11374044/diff/8001/src/pkg/runtime/panic.c File src/pkg/runtime/panic.c (right): https://codereview.appspot.com/11374044/diff/8001/src/pkg/runtime/panic.c#newcode161 src/pkg/runtime/panic.c:161: runtime·deferreturn(uintptr arg0, ...
10 years, 9 months ago (2013-07-16 21:15:34 UTC) #5
cshapiro1
On 2013/07/16 21:14:53, rsc wrote: > On 2013/07/16 21:04:18, cshapiro1 wrote: > > There were ...
10 years, 9 months ago (2013-07-16 21:35:01 UTC) #6
dvyukov
LGTM https://codereview.appspot.com/11374044/diff/8001/src/pkg/runtime/panic.c File src/pkg/runtime/panic.c (right): https://codereview.appspot.com/11374044/diff/8001/src/pkg/runtime/panic.c#newcode161 src/pkg/runtime/panic.c:161: runtime·deferreturn(uintptr arg0, ...) please add a comment https://codereview.appspot.com/11374044/diff/8001/src/pkg/runtime/softfloat_arm.c ...
10 years, 9 months ago (2013-07-17 09:17:16 UTC) #7
rsc
I commented both. sfloat2 is a different reason: the actual arguments are uint32 r0, uint32 ...
10 years, 9 months ago (2013-07-17 16:43:26 UTC) #8
rsc
Or I should say, used nothing instead, but I am adding the ... to make ...
10 years, 9 months ago (2013-07-17 16:43:43 UTC) #9
rsc
10 years, 9 months ago (2013-07-17 16:47:21 UTC) #10
*** Submitted as https://code.google.com/p/go/source/detail?r=c31a59b119ad ***

runtime: use new frame argument size information

With this CL, I believe the runtime always knows
the frame size during the gc walk. There is no fallback
to "assume entire stack frame of caller" anymore.

R=golang-dev, khr, cshapiro, dvyukov
CC=golang-dev
https://codereview.appspot.com/11374044
Sign in to reply to this message.

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