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

Issue 8455043: code review 8455043: runtime: poor man's heap type info checker (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 11 months ago by dvyukov
Modified:
11 years, 11 months ago
Reviewers:
CC:
golang-dev, iant, 0xe2.0x9a.0x9b_gmail.com, r
Visibility:
Public.

Description

runtime: poor man's heap type info checker It's not trivial to make a comprehensive check due to inferior pointers, reflect, gob, etc. But this is essentially what I've used to debug the GC issues. Update issue 5193.

Patch Set 1 #

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

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

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

Total comments: 4

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

Total comments: 2

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

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

Messages

Total messages: 9
dvyukov
Hello golang-dev@googlegroups.com, I'd like you to review this change to https://dvyukov%40google.com@code.google.com/p/go/
11 years, 11 months ago (2013-04-07 01:13:20 UTC) #1
iant
LGTM But it would be nice if somebody else looked at this too. https://codereview.appspot.com/8455043/diff/5001/src/pkg/runtime/mgc0.c File ...
11 years, 11 months ago (2013-04-07 03:17:08 UTC) #2
dvyukov
https://codereview.appspot.com/8455043/diff/5001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/8455043/diff/5001/src/pkg/runtime/mgc0.c#newcode556 src/pkg/runtime/mgc0.c:556: // Sanity check for the derived type info objti. ...
11 years, 11 months ago (2013-04-07 03:33:26 UTC) #3
dvyukov
On 2013/04/07 03:17:08, iant wrote: > LGTM > > But it would be nice if ...
11 years, 11 months ago (2013-04-08 18:00:13 UTC) #4
atom
LGTM
11 years, 11 months ago (2013-04-08 18:19:38 UTC) #5
r
LGTM but i think you want one more print statement https://codereview.appspot.com/8455043/diff/10001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/8455043/diff/10001/src/pkg/runtime/mgc0.c#newcode586 ...
11 years, 11 months ago (2013-04-08 18:30:20 UTC) #6
dvyukov
https://codereview.appspot.com/8455043/diff/10001/src/pkg/runtime/mgc0.c File src/pkg/runtime/mgc0.c (right): https://codereview.appspot.com/8455043/diff/10001/src/pkg/runtime/mgc0.c#newcode586 src/pkg/runtime/mgc0.c:586: runtime·throw("invalid gc type info"); On 2013/04/08 18:30:20, r wrote: ...
11 years, 11 months ago (2013-04-08 18:42:03 UTC) #7
r
Fair enough. LGTM as is
11 years, 11 months ago (2013-04-08 18:42:59 UTC) #8
dvyukov
11 years, 11 months ago (2013-04-08 20:36:48 UTC) #9
*** Submitted as https://code.google.com/p/go/source/detail?r=e95933d23b2f ***

runtime: poor man's heap type info checker
It's not trivial to make a comprehensive check
due to inferior pointers, reflect, gob, etc.
But this is essentially what I've used to debug
the GC issues.
Update issue 5193.

R=golang-dev, iant, 0xe2.0x9a.0x9b, r
CC=golang-dev
https://codereview.appspot.com/8455043
Sign in to reply to this message.

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