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

Issue 6938073: code review 6938073: cmd/gc: add GOEXPERIMENT=zerostack to clear stack on fu... (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 5 months ago by rsc
Modified:
12 years, 5 months ago
CC:
ken2, golang-dev
Visibility:
Public.

Description

cmd/gc: add GOEXPERIMENT=zerostack to clear stack on function entry This is expensive but it might be useful in cases where people are suffering from false positives during garbage collection and are willing to trade the CPU time for getting rid of the false positives. On the other hand it only eliminates false positives caused by other function calls, not false positives caused by dead temporaries stored in the current function call. The 5g/6g/8g changes were pulled out of the history, from the last time we needed to do this (to work around a goto bug). The code in go.h, lex.c, pgen.c is new but tiny.

Patch Set 1 #

Patch Set 2 : diff -r 7ea3674ce4b5 https://go.googlecode.com/hg/ #

Patch Set 3 : diff -r 7ea3674ce4b5 https://go.googlecode.com/hg/ #

Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -0 lines) Patch
M src/cmd/5g/gsubr.c View 1 1 chunk +58 lines, -0 lines 0 comments Download
M src/cmd/6g/gsubr.c View 1 1 chunk +38 lines, -0 lines 0 comments Download
M src/cmd/8g/gsubr.c View 1 1 chunk +38 lines, -0 lines 0 comments Download
M src/cmd/gc/go.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M src/cmd/gc/lex.c View 1 1 chunk +1 line, -0 lines 0 comments Download
M src/cmd/gc/pgen.c View 1 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 6
rsc
Hello ken2 (cc: golang-dev@googlegroups.com), I'd like you to review this change to https://go.googlecode.com/hg/
12 years, 5 months ago (2012-12-17 19:32:23 UTC) #1
rsc
*** Submitted as https://code.google.com/p/go/source/detail?r=1542912cf09d *** cmd/gc: add GOEXPERIMENT=zerostack to clear stack on function entry This ...
12 years, 5 months ago (2012-12-17 19:35:07 UTC) #2
remyoudompheng
Did you mean on function exit rather than on function entry? I think I got ...
12 years, 5 months ago (2012-12-19 21:32:12 UTC) #3
rsc
On Wed, Dec 19, 2012 at 4:32 PM, Rémy Oudompheng <remyoudompheng@gmail.com> wrote: > Did you ...
12 years, 5 months ago (2012-12-20 00:49:58 UTC) #4
bradfitz
FWIW $ ~/go/misc/benchcmp pre after benchmark old ns/op new ns/op delta BenchmarkBinaryTree17 6609304439 7628303665 +15.42% ...
12 years, 5 months ago (2012-12-20 19:27:22 UTC) #5
rsc
12 years, 5 months ago (2012-12-22 15:16:33 UTC) #6
That's about what I expected as far as slowdown. JSON, Gob, and
Template are the highly recursive ones.
Sign in to reply to this message.

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