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

Issue 66830043: code review 66830043: runtime: stack allocate Panic structure during runtime.panic (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 4 months ago by dave
Modified:
11 years, 3 months ago
Reviewers:
minux1, gobot, rsc, dvyukov
CC:
r, minux1, rsc, dvyukov, golang-codereviews
Visibility:
Public.

Description

runtime: stack allocate Panic structure during runtime.panic Update issue 7347 When runtime.panic is called the *Panic is malloced from the heap. This can lead to a gc cycle while panicing which can make a bad situation worse. It appears to be possible to stack allocate the Panic and avoid malloc'ing during a panic. Ref: https://groups.google.com/d/topic/golang-dev/OfxqpklGkh0/discussion

Patch Set 1 #

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

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

Total comments: 1

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -10 lines) Patch
M src/pkg/runtime/panic.c View 1 2 3 2 chunks +9 lines, -10 lines 0 comments Download

Messages

Total messages: 9
dave_cheney.net
Hello r@golang.org, minux.ma@gmail.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 4 months ago (2014-02-21 06:19:51 UTC) #1
minux1
LGTM except for one thing. You might wait to wait for others. https://codereview.appspot.com/66830043/diff/40001/src/pkg/runtime/panic.c File src/pkg/runtime/panic.c ...
11 years, 4 months ago (2014-02-21 06:29:30 UTC) #2
dave_cheney.net
> On 21 Feb 2014, at 17:29, minux.ma@gmail.com wrote: > > LGTM except for one ...
11 years, 4 months ago (2014-02-21 06:35:37 UTC) #3
dave_cheney.net
Hello r@golang.org, minux.ma@gmail.com (cc: golang-codereviews@googlegroups.com), I'd like you to review this change to https://code.google.com/p/go
11 years, 4 months ago (2014-02-21 06:55:45 UTC) #4
gobot
R=rsc@golang.org (assigned by dave@cheney.net)
11 years, 4 months ago (2014-02-21 11:36:36 UTC) #5
dvyukov
LGTM
11 years, 4 months ago (2014-02-23 11:15:19 UTC) #6
rsc
LGTM
11 years, 4 months ago (2014-02-24 16:09:07 UTC) #7
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=3cd2d73261f5 *** runtime: stack allocate Panic structure during runtime.panic Update issue 7347 ...
11 years, 4 months ago (2014-02-24 16:09:23 UTC) #8
gobot
11 years, 4 months ago (2014-02-24 23:23:33 UTC) #9
Message was sent while issue was closed.
This CL appears to have broken the windows-amd64 builder.
Sign in to reply to this message.

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