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

Issue 910663002: [Oilpan] Set stack limit using estimated sizes (Closed)

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

Description

Set the stack limit size based on estimated sizes. To check if the stack memory has enough room for recursive calls, we tried to allocate a large object and assumed the size. This CL estimate the real thread stack limit using APIs. In some cases which such APIs do not work correctly, we set the limit using the old algorithm. (AFAIK ChromeOS and MacOSX need the old method.) BUG=420515, 457982 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190239

Patch Set 1 #

Patch Set 2 : Add a small memory space to call few functions #

Patch Set 3 : Remove try-and-error estimation #

Patch Set 4 : Remove unused function #

Patch Set 5 : Fallback if stach size is not estimated #

Total comments: 8

Patch Set 6 : Work for comments #

Total comments: 8

Patch Set 7 : #

Total comments: 1

Patch Set 8 : #

Patch Set 9 : Revert on Mac OSX #

Patch Set 10 : Fix an issue on MacOSX #

Total comments: 2

Patch Set 11 : Add FIXME #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -7 lines) Patch
M Source/platform/heap/StackFrameDepth.cpp View 1 2 3 4 5 6 7 8 9 10 3 chunks +42 lines, -6 lines 0 comments Download
M Source/platform/heap/ThreadState.cpp View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 21 (5 generated)
peria
PTL.
5 years, 10 months ago (2015-02-10 06:41:47 UTC) #2
haraken
https://codereview.chromium.org/910663002/diff/80001/Source/platform/heap/StackFrameDepth.cpp File Source/platform/heap/StackFrameDepth.cpp (left): https://codereview.chromium.org/910663002/diff/80001/Source/platform/heap/StackFrameDepth.cpp#oldcode46 Source/platform/heap/StackFrameDepth.cpp:46: // in these platforms. Update this comment instead of ...
5 years, 10 months ago (2015-02-10 08:53:22 UTC) #3
peria
https://codereview.chromium.org/910663002/diff/80001/Source/platform/heap/StackFrameDepth.cpp File Source/platform/heap/StackFrameDepth.cpp (left): https://codereview.chromium.org/910663002/diff/80001/Source/platform/heap/StackFrameDepth.cpp#oldcode46 Source/platform/heap/StackFrameDepth.cpp:46: // in these platforms. On 2015/02/10 08:53:22, haraken wrote: ...
5 years, 10 months ago (2015-02-10 12:05:29 UTC) #5
haraken
https://codereview.chromium.org/910663002/diff/80001/Source/platform/heap/StackFrameDepth.cpp File Source/platform/heap/StackFrameDepth.cpp (right): https://codereview.chromium.org/910663002/diff/80001/Source/platform/heap/StackFrameDepth.cpp#newcode33 Source/platform/heap/StackFrameDepth.cpp:33: size_t stackSize = getUnderestimatedStackSize(); On 2015/02/10 08:53:22, haraken wrote: ...
5 years, 10 months ago (2015-02-10 12:15:09 UTC) #6
kouhei (in TOK)
https://codereview.chromium.org/910663002/diff/120001/Source/platform/heap/StackFrameDepth.cpp File Source/platform/heap/StackFrameDepth.cpp (right): https://codereview.chromium.org/910663002/diff/120001/Source/platform/heap/StackFrameDepth.cpp#newcode20 Source/platform/heap/StackFrameDepth.cpp:20: const int StackFrameDepth::kStackRoomSize = 1024; On 2015/02/10 12:15:09, haraken ...
5 years, 10 months ago (2015-02-10 12:35:38 UTC) #7
peria
https://codereview.chromium.org/910663002/diff/80001/Source/platform/heap/StackFrameDepth.cpp File Source/platform/heap/StackFrameDepth.cpp (right): https://codereview.chromium.org/910663002/diff/80001/Source/platform/heap/StackFrameDepth.cpp#newcode33 Source/platform/heap/StackFrameDepth.cpp:33: size_t stackSize = getUnderestimatedStackSize(); On 2015/02/10 12:15:09, haraken wrote: ...
5 years, 10 months ago (2015-02-12 02:31:58 UTC) #8
kouhei (in TOK)
lgtm https://codereview.chromium.org/910663002/diff/140001/Source/platform/heap/StackFrameDepth.cpp File Source/platform/heap/StackFrameDepth.cpp (right): https://codereview.chromium.org/910663002/diff/140001/Source/platform/heap/StackFrameDepth.cpp#newcode32 Source/platform/heap/StackFrameDepth.cpp:32: static const int kStackRoomSize= 1024; space
5 years, 10 months ago (2015-02-12 03:46:05 UTC) #9
kouhei (in TOK)
Also, please summarize the change in CL description.
5 years, 10 months ago (2015-02-12 03:47:52 UTC) #10
peria
I checked the behavior in https://codereview.chromium.org/918883003/ and found ChromeOS and MacOSX needs more investigation. PTAL ...
5 years, 10 months ago (2015-02-16 07:47:00 UTC) #12
haraken
LGTM https://codereview.chromium.org/910663002/diff/200001/Source/platform/heap/StackFrameDepth.cpp File Source/platform/heap/StackFrameDepth.cpp (right): https://codereview.chromium.org/910663002/diff/200001/Source/platform/heap/StackFrameDepth.cpp#newcode50 Source/platform/heap/StackFrameDepth.cpp:50: size_t StackFrameDepth::getUnderestimatedStackSize() Add a FIXME about MacOSX and ...
5 years, 10 months ago (2015-02-16 08:15:24 UTC) #13
peria
https://codereview.chromium.org/910663002/diff/200001/Source/platform/heap/StackFrameDepth.cpp File Source/platform/heap/StackFrameDepth.cpp (right): https://codereview.chromium.org/910663002/diff/200001/Source/platform/heap/StackFrameDepth.cpp#newcode50 Source/platform/heap/StackFrameDepth.cpp:50: size_t StackFrameDepth::getUnderestimatedStackSize() On 2015/02/16 08:15:24, haraken wrote: > > ...
5 years, 10 months ago (2015-02-16 08:45:17 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910663002/220001
5 years, 10 months ago (2015-02-16 08:45:39 UTC) #17
commit-bot: I haz the power
Committed patchset #11 (id:220001) as https://src.chromium.org/viewvc/blink?view=rev&revision=190239
5 years, 10 months ago (2015-02-16 10:03:29 UTC) #18
kouhei (in TOK)
still lgtm
5 years, 10 months ago (2015-02-16 10:08:31 UTC) #19
tkent
A revert of this CL (patchset #11 id:220001) has been created in https://codereview.chromium.org/921083003/ by tkent@chromium.org. ...
5 years, 10 months ago (2015-02-16 10:40:44 UTC) #20
peria
5 years, 10 months ago (2015-02-16 12:58:38 UTC) #21
Message was sent while issue was closed.
lgtm

I had to expand that loop, because we can go deeper eagerly.

Powered by Google App Engine
This is Rietveld 408576698