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

Issue 2127453002: Oilpan: Introduce memory pool for CallbackStacks (Closed)

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

Description

Oilpan: Introduce memory pool for CallbackStacks Once we enable per-thread heaps, we will end up with having CallbackStacks per thread. To prevent the memory bloat, this CL introduces a memory pool for CallbackStacks shared among all threads. 256 KB is pre-allocated for the memory pool. BUG= Committed: https://crrev.com/d55ec436ad893ebace1f22b7f43bf98c6dba6e46 Cr-Commit-Position: refs/heads/master@{#404381}

Patch Set 1 #

Total comments: 10

Patch Set 2 : temp #

Total comments: 5

Patch Set 3 : temp #

Patch Set 4 : temp #

Patch Set 5 : temp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -64 lines) Patch
M third_party/WebKit/Source/platform/heap/CallbackStack.h View 1 5 chunks +31 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/CallbackStack.cpp View 1 2 3 4 5 chunks +85 lines, -44 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Heap.h View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/Heap.cpp View 1 6 chunks +16 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.h View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/heap/ThreadState.cpp View 1 3 chunks +3 lines, -8 lines 0 comments Download

Messages

Total messages: 26 (10 generated)
haraken
PTAL
4 years, 5 months ago (2016-07-05 04:45:43 UTC) #2
sof
Some windows compilation failures being reported. https://codereview.chromium.org/2127453002/diff/1/third_party/WebKit/Source/platform/heap/CallbackStack.cpp File third_party/WebKit/Source/platform/heap/CallbackStack.cpp (right): https://codereview.chromium.org/2127453002/diff/1/third_party/WebKit/Source/platform/heap/CallbackStack.cpp#newcode18 third_party/WebKit/Source/platform/heap/CallbackStack.cpp:18: MutexLocker locker(m_mutex); Do ...
4 years, 5 months ago (2016-07-05 14:19:02 UTC) #3
haraken
Thanks for the careful review! Addressed all the comments. https://codereview.chromium.org/2127453002/diff/1/third_party/WebKit/Source/platform/heap/CallbackStack.cpp File third_party/WebKit/Source/platform/heap/CallbackStack.cpp (right): https://codereview.chromium.org/2127453002/diff/1/third_party/WebKit/Source/platform/heap/CallbackStack.cpp#newcode37 third_party/WebKit/Source/platform/heap/CallbackStack.cpp:37: ...
4 years, 5 months ago (2016-07-06 01:58:11 UTC) #4
haraken
https://codereview.chromium.org/2127453002/diff/20001/third_party/WebKit/Source/platform/heap/CallbackStack.cpp File third_party/WebKit/Source/platform/heap/CallbackStack.cpp (left): https://codereview.chromium.org/2127453002/diff/20001/third_party/WebKit/Source/platform/heap/CallbackStack.cpp#oldcode10 third_party/WebKit/Source/platform/heap/CallbackStack.cpp:10: size_t const CallbackStack::kMinimalBlockSize = WTF::kPageAllocationGranularity / sizeof(CallbackStack::Item); I noticed ...
4 years, 5 months ago (2016-07-06 02:01:38 UTC) #5
sof
https://codereview.chromium.org/2127453002/diff/20001/third_party/WebKit/Source/platform/heap/CallbackStack.cpp File third_party/WebKit/Source/platform/heap/CallbackStack.cpp (left): https://codereview.chromium.org/2127453002/diff/20001/third_party/WebKit/Source/platform/heap/CallbackStack.cpp#oldcode10 third_party/WebKit/Source/platform/heap/CallbackStack.cpp:10: size_t const CallbackStack::kMinimalBlockSize = WTF::kPageAllocationGranularity / sizeof(CallbackStack::Item); On 2016/07/06 ...
4 years, 5 months ago (2016-07-06 06:03:22 UTC) #6
sof
I apologize for the delay - lgtm % addressing bot failures. https://codereview.chromium.org/2127453002/diff/1/third_party/WebKit/Source/platform/heap/ThreadState.cpp File third_party/WebKit/Source/platform/heap/ThreadState.cpp (right): ...
4 years, 5 months ago (2016-07-06 13:22:17 UTC) #7
haraken
https://codereview.chromium.org/2127453002/diff/20001/third_party/WebKit/Source/platform/heap/CallbackStack.cpp File third_party/WebKit/Source/platform/heap/CallbackStack.cpp (right): https://codereview.chromium.org/2127453002/diff/20001/third_party/WebKit/Source/platform/heap/CallbackStack.cpp#newcode47 third_party/WebKit/Source/platform/heap/CallbackStack.cpp:47: CallbackStack::Item* memory = static_cast<CallbackStack::Item*>(WTF::allocPages(nullptr, kBlockBytes, WTF::kPageAllocationGranularity, WTF::PageAccessible)); On 2016/07/06 ...
4 years, 5 months ago (2016-07-06 13:27:29 UTC) #8
sof
https://codereview.chromium.org/2127453002/diff/20001/third_party/WebKit/Source/platform/heap/CallbackStack.cpp File third_party/WebKit/Source/platform/heap/CallbackStack.cpp (right): https://codereview.chromium.org/2127453002/diff/20001/third_party/WebKit/Source/platform/heap/CallbackStack.cpp#newcode47 third_party/WebKit/Source/platform/heap/CallbackStack.cpp:47: CallbackStack::Item* memory = static_cast<CallbackStack::Item*>(WTF::allocPages(nullptr, kBlockBytes, WTF::kPageAllocationGranularity, WTF::PageAccessible)); On 2016/07/06 ...
4 years, 5 months ago (2016-07-06 13:33:07 UTC) #9
haraken
On 2016/07/06 13:33:07, sof wrote: > https://codereview.chromium.org/2127453002/diff/20001/third_party/WebKit/Source/platform/heap/CallbackStack.cpp > File third_party/WebKit/Source/platform/heap/CallbackStack.cpp (right): > > https://codereview.chromium.org/2127453002/diff/20001/third_party/WebKit/Source/platform/heap/CallbackStack.cpp#newcode47 > ...
4 years, 5 months ago (2016-07-07 09:52:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127453002/40001
4 years, 5 months ago (2016-07-07 09:53:04 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/187131) linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 5 months ago (2016-07-07 10:09:23 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127453002/60001
4 years, 5 months ago (2016-07-08 03:02:05 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/227702)
4 years, 5 months ago (2016-07-08 03:15:21 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2127453002/80001
4 years, 5 months ago (2016-07-08 04:32:06 UTC) #23
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 5 months ago (2016-07-08 14:31:00 UTC) #24
commit-bot: I haz the power
4 years, 5 months ago (2016-07-08 14:32:50 UTC) #26
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/d55ec436ad893ebace1f22b7f43bf98c6dba6e46
Cr-Commit-Position: refs/heads/master@{#404381}

Powered by Google App Engine
This is Rietveld 408576698