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

Issue 8954044: code review 8954044: runtime: clear the stack frame used in runfinq() (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 7 months ago by atom
Modified:
12 years, 7 months ago
Reviewers:
minux1, gustavo, iant, dave, r, niemeyer
CC:
golang-dev, dvyukov
Visibility:
Public.

Description

runtime: prevent the GC from seeing the content of a frame in runfinq() Fixes issue 5348.

Patch Set 1 #

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

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

Total comments: 4

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

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

Patch Set 6 : diff -r 0c16e97c7587 https://code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -1 line) Patch
M src/pkg/runtime/mgc0.c View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A test/fixedbugs/issue5348.go View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 22
atom
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
12 years, 7 months ago (2013-04-25 09:34:08 UTC) #1
dvyukov
https://codereview.appspot.com/8954044/diff/5001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/8954044/diff/5001/src/pkg/runtime/mgc0.c#newcode2206 src/pkg/runtime/mgc0.c:2206: runtime·memclr(frame, framecap); Just allocate the frame with FlagNoPointers: runtime.mallocgc(framesz, ...
12 years, 7 months ago (2013-04-25 09:59:58 UTC) #2
dvyukov
12 years, 7 months ago (2013-04-25 09:59:59 UTC) #3
atom
https://codereview.appspot.com/8954044/diff/5001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/8954044/diff/5001/src/pkg/runtime/mgc0.c#newcode2206 src/pkg/runtime/mgc0.c:2206: runtime·memclr(frame, framecap); On 2013/04/25 09:59:58, dvyukov wrote: > Just ...
12 years, 7 months ago (2013-04-25 10:52:19 UTC) #4
dvyukov
LGTM
12 years, 7 months ago (2013-04-25 10:55:21 UTC) #5
atom
*** Submitted as https://code.google.com/p/go/source/detail?r=ad3c2ffb16d7 *** runtime: prevent the GC from seeing the content of a ...
12 years, 7 months ago (2013-04-25 11:39:21 UTC) #6
dave_cheney.net
This commit has caused several build breakages, please undo it. On Thu, Apr 25, 2013 ...
12 years, 7 months ago (2013-04-25 12:31:00 UTC) #7
atom
On 2013/04/25 12:31:00, dfc wrote: > This commit has caused several build breakages, please undo ...
12 years, 7 months ago (2013-04-25 12:57:24 UTC) #8
iant
On Thu, Apr 25, 2013 at 5:57 AM, <0xE2.0x9A.0x9B@gmail.com> wrote: > On 2013/04/25 12:31:00, dfc ...
12 years, 7 months ago (2013-04-25 14:25:31 UTC) #9
atom
GC on amd64 found (in a stack frame) an integer value matching the to-be-finalized pointer. ...
12 years, 7 months ago (2013-04-25 14:47:13 UTC) #10
r
Neither adg nor I had signed off on this CL yet. In the runup to ...
12 years, 7 months ago (2013-04-25 14:59:44 UTC) #11
r
Is your suggest that we roll back a fix that has caught a bug in ...
12 years, 7 months ago (2013-04-25 15:04:29 UTC) #12
r
I didn't say that well: You are asking whether we should disable a test that ...
12 years, 7 months ago (2013-04-25 15:05:33 UTC) #13
0xe2.0x9a.0x9b_gmail.com
On Thu, Apr 25, 2013 at 5:05 PM, Rob Pike <r@golang.org> wrote: > I didn't ...
12 years, 7 months ago (2013-04-25 15:10:13 UTC) #14
0xe2.0x9a.0x9b_gmail.com
I will undo the CL, as you suggested. On Thu, Apr 25, 2013 at 5:04 ...
12 years, 7 months ago (2013-04-25 15:11:02 UTC) #15
r
So please roll it back.
12 years, 7 months ago (2013-04-25 15:11:16 UTC) #16
niemeyer
On 2013/04/25 15:04:29, r wrote: > with another. It's not clear to me that the ...
12 years, 7 months ago (2013-04-25 15:22:50 UTC) #17
dvyukov
This prevents at most *one* object from being collected. On Thu, Apr 25, 2013 at ...
12 years, 7 months ago (2013-04-25 15:26:22 UTC) #18
gustavo_niemeyer.net
On Thu, Apr 25, 2013 at 12:26 PM, Dmitry Vyukov <dvyukov@google.com> wrote: > This prevents ...
12 years, 7 months ago (2013-04-25 15:39:57 UTC) #19
gustavo_niemeyer.net
On Thu, Apr 25, 2013 at 12:39 PM, Gustavo Niemeyer <gustavo@niemeyer.net> wrote: > I believe ...
12 years, 7 months ago (2013-04-25 15:51:41 UTC) #20
minux1
On Thu, Apr 25, 2013 at 11:39 PM, Gustavo Niemeyer <gustavo@niemeyer.net>wrote: > On Thu, Apr ...
12 years, 7 months ago (2013-04-25 15:58:54 UTC) #21
r
12 years, 7 months ago (2013-04-25 16:01:54 UTC) #22
It's a rare enough bug that I'm not too concerned about it, especially
as the fix seems more problematical than the bug.

I prefer to visit this issue after Go 1.1 is launched, rather than
delay Go 1.1 with a protracted sequence of fixes to this subtle
problem.

-rob
Sign in to reply to this message.

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