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

Issue 927213002: [Oilpan] Set stack limit using estimated sizes (Re-land) (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. On some platforms where such APIs do not work correctly, we set the limit using the old algorithm. --- This CL is re-land of https://codereview.chromium.org/910663002/ with fixing a test. We needed a longer call chain of trace() to expect to use an alternative marking method, because we got wider stack memory area to go eagerly. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190388

Patch Set 1 #

Total comments: 2

Patch Set 2 : Expand the loop #

Total comments: 2

Patch Set 3 : Work for comments #

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

Messages

Total messages: 16 (5 generated)
peria
PTL
5 years, 10 months ago (2015-02-17 04:27:00 UTC) #2
kouhei (in TOK)
One quick question: have you checked the test's execution time?
5 years, 10 months ago (2015-02-17 04:28:37 UTC) #3
peria
On 2015/02/17 04:28:37, kouhei wrote: > One quick question: have you checked the test's execution ...
5 years, 10 months ago (2015-02-17 04:38:46 UTC) #4
kouhei (in TOK)
On 2015/02/17 04:38:46, peria wrote: > On 2015/02/17 04:28:37, kouhei wrote: > > One quick ...
5 years, 10 months ago (2015-02-17 06:00:05 UTC) #5
Hitoshi Yoshida
https://codereview.chromium.org/927213002/diff/1/Source/platform/heap/HeapTest.cpp File Source/platform/heap/HeapTest.cpp (right): https://codereview.chromium.org/927213002/diff/1/Source/platform/heap/HeapTest.cpp#newcode5460 Source/platform/heap/HeapTest.cpp:5460: int calls = ++sTraceCalls; On 2015/02/17 06:00:05, kouhei wrote: ...
5 years, 10 months ago (2015-02-17 10:09:50 UTC) #7
kouhei (in TOK)
On 2015/02/17 10:09:50, Hitoshi Yoshida wrote: > https://codereview.chromium.org/927213002/diff/1/Source/platform/heap/HeapTest.cpp > File Source/platform/heap/HeapTest.cpp (right): > > https://codereview.chromium.org/927213002/diff/1/Source/platform/heap/HeapTest.cpp#newcode5460 ...
5 years, 10 months ago (2015-02-17 13:11:44 UTC) #8
haraken
LGTM https://codereview.chromium.org/927213002/diff/20001/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/927213002/diff/20001/Source/platform/heap/ThreadState.cpp#newcode258 Source/platform/heap/ThreadState.cpp:258: if (underestimatedStackSize > 0) underestimatedStackSize >= sizeof(void*)
5 years, 10 months ago (2015-02-17 14:48:49 UTC) #10
peria
https://codereview.chromium.org/927213002/diff/20001/Source/platform/heap/ThreadState.cpp File Source/platform/heap/ThreadState.cpp (right): https://codereview.chromium.org/927213002/diff/20001/Source/platform/heap/ThreadState.cpp#newcode258 Source/platform/heap/ThreadState.cpp:258: if (underestimatedStackSize > 0) On 2015/02/17 14:48:49, haraken wrote: ...
5 years, 10 months ago (2015-02-18 02:45:59 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/927213002/40001
5 years, 10 months ago (2015-02-18 02:46:56 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001) as https://src.chromium.org/viewvc/blink?view=rev&revision=190388
5 years, 10 months ago (2015-02-18 04:41:52 UTC) #15
yhirano
5 years, 10 months ago (2015-02-18 08:06:38 UTC) #16
Message was sent while issue was closed.
A revert of this CL (patchset #3 id:40001) has been created in
https://codereview.chromium.org/934193002/ by yhirano@chromium.org.

The reason for reverting is: Broke a heap test on Android Nexus4

https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Android%20(Nex...

https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Android%20%28N....

Powered by Google App Engine
This is Rietveld 408576698