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

Issue 85430046: code review 85430046: runtime: cache gotraceback setting (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
11 years, 2 months ago by rsc
Modified:
11 years, 2 months ago
Reviewers:
gobot, bradfitz
CC:
golang-codereviews, bradfitz, 0intro
Visibility:
Public.

Description

runtime: cache gotraceback setting On Plan 9 gotraceback calls getenv calls malloc, and we gotraceback on every call to gentraceback, which happens during garbage collection. Honestly I don't even know how this works on Plan 9. I suspect it does not, and that we are getting by because no one has tried to run with $GOTRACEBACK set at all. This will speed up all the other systems by epsilon, since they won't call getenv and atoi repeatedly.

Patch Set 1 #

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

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

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

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -11 lines) Patch
M src/pkg/runtime/proc.c View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M src/pkg/runtime/runtime.c View 1 2 1 chunk +24 lines, -11 lines 0 comments Download

Messages

Total messages: 8
rsc
Hello golang-codereviews@googlegroups.com, I'd like you to review this change to https://code.google.com/p/go/
11 years, 2 months ago (2014-04-08 19:59:01 UTC) #1
bradfitz
LGTM On Apr 8, 2014 12:59 PM, <rsc@golang.org> wrote: > Reviewers: golang-codereviews, > > Message: ...
11 years, 2 months ago (2014-04-08 20:02:39 UTC) #2
0intro
Thanks, this is much better. GOTRACEBACK never worked on Plan 9. It fails on: cpu% ...
11 years, 2 months ago (2014-04-08 20:17:55 UTC) #3
rsc
On Tue, Apr 8, 2014 at 4:17 PM, <0intro@gmail.com> wrote: > Thanks, this is much ...
11 years, 2 months ago (2014-04-08 20:41:38 UTC) #4
rsc
On Tue, Apr 8, 2014 at 4:45 PM, David du Colombier <0intro@gmail.com> wrote: > > ...
11 years, 2 months ago (2014-04-08 20:54:46 UTC) #5
rsc
Or getenv could have a static buffer it uses to read $GOTRACEBACK only.
11 years, 2 months ago (2014-04-08 20:55:13 UTC) #6
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=b4c775ba49be *** runtime: cache gotraceback setting On Plan 9 gotraceback calls getenv ...
11 years, 2 months ago (2014-04-09 02:35:46 UTC) #7
gobot
11 years, 2 months ago (2014-04-09 03:49:35 UTC) #8
Message was sent while issue was closed.
This CL appears to have broken the linux-386 builder.
See http://build.golang.org/log/520f2901a28775df8d4627bdf7370a62213431dc
Sign in to reply to this message.

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