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

Issue 145570043: code review 145570043: runtime: initialize traceback variables earlier (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 5 months ago by khr
Modified:
10 years, 5 months ago
Reviewers:
rsc
CC:
golang-codereviews, rsc, khr1, bradfitz
Visibility:
Public.

Description

runtime: initialize traceback variables earlier Our traceback code needs to know the PC of several special functions, including goexit, mcall, etc. Make sure that these PCs are initialized before any traceback occurs. Fixes issue 8766

Patch Set 1 #

Patch Set 2 : diff -r 191f9dc7d0392f1d74c48859066e0260740b522f https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 3 : diff -r 191f9dc7d0392f1d74c48859066e0260740b522f https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 4 : diff -r 38cd9f03739fe6cf029acf00a3d178c696c4399f https://khr%40golang.org@code.google.com/p/go/ #

Total comments: 2

Patch Set 5 : diff -r 38cd9f03739fe6cf029acf00a3d178c696c4399f https://khr%40golang.org@code.google.com/p/go/ #

Patch Set 6 : diff -r 6573961dc33e9ed14e548e4db54beda7e862d911 https://khr%40golang.org@code.google.com/p/go/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+31 lines, -10 lines) Patch
M src/runtime/proc.c View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/runtime.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime/traceback.go View 1 2 3 4 2 chunks +29 lines, -10 lines 0 comments Download

Messages

Total messages: 6
khr
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://khr%40golang.org@code.google.com/p/go/
10 years, 5 months ago (2014-09-29 20:42:13 UTC) #1
rsc
LGTM but please add a test
10 years, 5 months ago (2014-09-29 22:59:45 UTC) #2
khr1
That's going to be a pain to test. Everything is correctly initialized by the time ...
10 years, 5 months ago (2014-09-29 23:54:25 UTC) #3
bradfitz
Could make an environment variable (GO_TEST_TRACEBACK=1 ?) trigger an early-init traceback and then have a ...
10 years, 5 months ago (2014-09-30 00:34:39 UTC) #4
rsc
LGTM https://codereview.appspot.com/145570043/diff/60001/src/runtime/traceback.go File src/runtime/traceback.go (right): https://codereview.appspot.com/145570043/diff/60001/src/runtime/traceback.go#newcode48 src/runtime/traceback.go:48: func tracebackinit() { In lieu of a test, ...
10 years, 5 months ago (2014-09-30 01:38:56 UTC) #5
khr
10 years, 5 months ago (2014-09-30 04:21:41 UTC) #6
*** Submitted as https://code.google.com/p/go/source/detail?r=a46889342ac8 ***

runtime: initialize traceback variables earlier

Our traceback code needs to know the PC of several special
functions, including goexit, mcall, etc.  Make sure that
these PCs are initialized before any traceback occurs.

Fixes issue 8766

LGTM=rsc
R=golang-codereviews, rsc, khr, bradfitz
CC=golang-codereviews
https://codereview.appspot.com/145570043
Sign in to reply to this message.

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