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

Issue 1673543002: Split out fallback stack limit determination. (Closed)

Created:
4 years, 10 months ago by sof
Modified:
4 years, 10 months ago
Reviewers:
oilpan-reviews, haraken
CC:
chromium-reviews, oilpan-reviews, Mads Ager (chromium), blink-reviews, kinuko+watch, kouhei+heap_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split out fallback stack limit determination. In case we're unable to get an estimate of the stack size for a platform thread, a small stack size is assumed and its effective upper bound is then probed and computed. Do that in a separate method to avoid compiler-injected stack exhaustion checks (MSVC's _chkstk()) from being always run for StackFrameDepth::enableStackLimit(). This also facilitates running GCs when up against stack pressure on Windows platforms. R=haraken BUG=582819 Committed: https://crrev.com/19cfc3ef242d1af45f6d26115828db83db87b161 Cr-Commit-Position: refs/heads/master@{#373787}

Patch Set 1 #

Patch Set 2 : rebased #

Total comments: 4

Patch Set 3 : comment improvements #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -20 lines) Patch
M third_party/WebKit/Source/platform/heap/StackFrameDepth.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp View 1 2 2 chunks +26 lines, -20 lines 0 comments Download

Messages

Total messages: 17 (8 generated)
sof
please take a look. The reorg here _might_ allow GCs to run under high stack ...
4 years, 10 months ago (2016-02-05 07:21:48 UTC) #3
haraken
LGTM https://codereview.chromium.org/1673543002/diff/20001/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp File third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp (right): https://codereview.chromium.org/1673543002/diff/20001/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp#newcode38 third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp:38: // Allocate a 32KB object on stack and ...
4 years, 10 months ago (2016-02-05 09:05:57 UTC) #5
sof
https://codereview.chromium.org/1673543002/diff/20001/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp File third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp (right): https://codereview.chromium.org/1673543002/diff/20001/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp#newcode38 third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp:38: // Allocate a 32KB object on stack and query ...
4 years, 10 months ago (2016-02-05 09:13:02 UTC) #6
haraken
https://codereview.chromium.org/1673543002/diff/20001/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp File third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp (right): https://codereview.chromium.org/1673543002/diff/20001/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp#newcode60 third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp:60: if (!stackSize) { It would be worth having a ...
4 years, 10 months ago (2016-02-05 09:19:02 UTC) #7
haraken
On 2016/02/05 09:13:02, sof wrote: > https://codereview.chromium.org/1673543002/diff/20001/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp > File third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp (right): > > https://codereview.chromium.org/1673543002/diff/20001/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp#newcode38 > ...
4 years, 10 months ago (2016-02-05 09:19:05 UTC) #8
sof
https://codereview.chromium.org/1673543002/diff/20001/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp File third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp (right): https://codereview.chromium.org/1673543002/diff/20001/third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp#newcode60 third_party/WebKit/Source/platform/heap/StackFrameDepth.cpp:60: if (!stackSize) { On 2016/02/05 09:19:02, haraken wrote: > ...
4 years, 10 months ago (2016-02-05 10:09:34 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1673543002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1673543002/40001
4 years, 10 months ago (2016-02-05 10:10:29 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-05 11:22:44 UTC) #15
commit-bot: I haz the power
4 years, 10 months ago (2016-02-05 11:23:25 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/19cfc3ef242d1af45f6d26115828db83db87b161
Cr-Commit-Position: refs/heads/master@{#373787}

Powered by Google App Engine
This is Rietveld 408576698