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

Issue 1046123002: Oilpan: Split completeSweep() in idle tasks into chunks (Closed)

Created:
5 years, 8 months ago by haraken
Modified:
5 years, 8 months ago
CC:
blink-reviews, oilpan-reviews, kouhei+heap_chromium.org, Mads Ager (chromium)
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Oilpan: Split completeSweep() in idle tasks into chunks Currently completeSweep() is executed in an idle task in one go. This is problematic because it can violate the deadline. This CL splits the completeSweep() into chunks so that each sweeping task meets the deadline. To avoid the overhead of calling WTF::currentTimeMS() too frequently, we check the current time every time we sweep 10 pages. BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=192949

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 7

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -32 lines) Patch
M Source/platform/heap/Heap.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/platform/heap/Heap.cpp View 1 2 3 4 5 6 7 1 chunk +42 lines, -17 lines 0 comments Download
M Source/platform/heap/ThreadState.h View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M Source/platform/heap/ThreadState.cpp View 1 2 3 4 5 6 5 chunks +54 lines, -13 lines 0 comments Download

Messages

Total messages: 23 (4 generated)
haraken
PTAL I'll collect performance numbers from now, but early feedback is welcome :)
5 years, 8 months ago (2015-03-31 09:17:25 UTC) #2
haraken
As far as I tested in real-world websites manually, the patch set 4 looks working ...
5 years, 8 months ago (2015-03-31 11:15:47 UTC) #3
kouhei (in TOK)
https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp#newcode637 Source/platform/heap/Heap.cpp:637: if (pageCount % 10 == 0) { Why 10? ...
5 years, 8 months ago (2015-03-31 11:42:07 UTC) #5
haraken
https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp#newcode637 Source/platform/heap/Heap.cpp:637: if (pageCount % 10 == 0) { On 2015/03/31 ...
5 years, 8 months ago (2015-03-31 12:46:59 UTC) #6
kouhei (in TOK)
lgtm On 2015/03/31 12:46:59, haraken wrote: > https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp > File Source/platform/heap/Heap.cpp (right): > > https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp#newcode637 ...
5 years, 8 months ago (2015-03-31 12:47:51 UTC) #7
haraken
> https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp#newcode637 > > Source/platform/heap/Heap.cpp:637: if (pageCount % 10 == 0) { > > On ...
5 years, 8 months ago (2015-03-31 12:49:55 UTC) #8
kouhei (in TOK)
still lgtm
5 years, 8 months ago (2015-03-31 12:50:53 UTC) #9
Sami
https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp#newcode637 Source/platform/heap/Heap.cpp:637: if (pageCount % 10 == 0) { On 2015/03/31 ...
5 years, 8 months ago (2015-03-31 12:52:00 UTC) #10
rmcilroy
lgtm with a question. https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp#newcode637 Source/platform/heap/Heap.cpp:637: if (pageCount % 10 == ...
5 years, 8 months ago (2015-03-31 13:01:30 UTC) #11
haraken
https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/1046123002/diff/60001/Source/platform/heap/Heap.cpp#newcode637 Source/platform/heap/Heap.cpp:637: if (pageCount % 10 == 0) { On 2015/03/31 ...
5 years, 8 months ago (2015-03-31 13:07:45 UTC) #12
rmcilroy
https://codereview.chromium.org/1046123002/diff/80001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/1046123002/diff/80001/Source/platform/heap/Heap.cpp#newcode640 Source/platform/heap/Heap.cpp:640: if (deadlineSeconds <= Platform::current()->monotonicallyIncreasingTime()) { On 2015/03/31 13:07:45, haraken ...
5 years, 8 months ago (2015-03-31 13:19:26 UTC) #13
haraken
On 2015/03/31 13:19:26, rmcilroy wrote: > https://codereview.chromium.org/1046123002/diff/80001/Source/platform/heap/Heap.cpp > File Source/platform/heap/Heap.cpp (right): > > https://codereview.chromium.org/1046123002/diff/80001/Source/platform/heap/Heap.cpp#newcode640 > ...
5 years, 8 months ago (2015-03-31 13:32:41 UTC) #14
rmcilroy
> Done. Used 0.001 sec. Great, thanks! > In terms of a risk of violating ...
5 years, 8 months ago (2015-03-31 15:59:03 UTC) #15
rmcilroy
> Done. Used 0.001 sec. Did you actually do this, it doesn't seem to be ...
5 years, 8 months ago (2015-03-31 16:01:16 UTC) #16
haraken
On 2015/03/31 16:01:16, rmcilroy wrote: > > Done. Used 0.001 sec. > > Did you ...
5 years, 8 months ago (2015-03-31 23:08:40 UTC) #17
haraken
On 2015/03/31 15:59:03, rmcilroy wrote: > > Done. Used 0.001 sec. > > Great, thanks! ...
5 years, 8 months ago (2015-03-31 23:09:57 UTC) #18
haraken
It looks like the CL passed tests. Landing.
5 years, 8 months ago (2015-04-01 14:22:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1046123002/140001
5 years, 8 months ago (2015-04-01 14:22:18 UTC) #22
commit-bot: I haz the power
5 years, 8 months ago (2015-04-01 15:46:29 UTC) #23
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=192949

Powered by Google App Engine
This is Rietveld 408576698