Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Issue 783513002: Oilpan: add eager tracing stack depth checks. (Closed)

Created:
6 years ago by sof
Modified:
6 years ago
Reviewers:
haraken
CC:
blink-reviews, haraken, oilpan-reviews, kouhei+heap_chromium.org, Mads Ager (chromium)
Project:
blink
Visibility:
Public.

Description

Oilpan: add eager tracing stack depth checks. To prevent runaway system stack use due to too eager unrolling of trace() calls during marking, add tracking of recursive depth and fall back to using the explicit mark stack if a limit is exceeded. Eager tracing isn't currenty enabled by default, so no extra overhead for Oilpan trunk added. Set ENABLE_EAGER_TRACING_BY_DEFAULT to 1 to near-universally enable eager tracing. R= BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186553

Patch Set 1 #

Patch Set 2 : Remove redundant empty line #

Total comments: 10

Patch Set 3 : Review updates #

Patch Set 4 : trace depth check is LIKELY() true #

Patch Set 5 : Adjust visibility of trace depth methods to help MSVC #

Unified diffs Side-by-side diffs Delta from patch set Stats (+33 lines, -6 lines) Patch
M Source/platform/heap/HeapTest.cpp View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
M Source/platform/heap/Visitor.h View 1 2 3 4 3 chunks +30 lines, -3 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
haraken
LGTM https://codereview.chromium.org/783513002/diff/20001/Source/platform/heap/Visitor.h File Source/platform/heap/Visitor.h (right): https://codereview.chromium.org/783513002/diff/20001/Source/platform/heap/Visitor.h#newcode535 Source/platform/heap/Visitor.h:535: // The maximum depth of eager, unrolled trace() ...
6 years ago (2014-12-04 15:45:09 UTC) #2
sof
https://codereview.chromium.org/783513002/diff/20001/Source/platform/heap/Visitor.h File Source/platform/heap/Visitor.h (right): https://codereview.chromium.org/783513002/diff/20001/Source/platform/heap/Visitor.h#newcode535 Source/platform/heap/Visitor.h:535: // The maximum depth of eager, unrolled trace() calls ...
6 years ago (2014-12-04 20:15:44 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/783513002/80001
6 years ago (2014-12-04 22:53:15 UTC) #5
commit-bot: I haz the power
6 years ago (2014-12-04 23:50:12 UTC) #6
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186553

Powered by Google App Engine
This is Rietveld 408576698