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

Issue 616483002: Oilpan: Replace the positive heap-contains cache with a binary search tree of memory regions. (Closed)

Created:
6 years, 2 months ago by zerny-chromium
Modified:
6 years, 2 months ago
CC:
blink-reviews, kouhei+heap_chromium.org, mkwst+moarreviews_chromium.org, oilpan-reviews
Project:
blink
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : lock and deletion #

Patch Set 3 : dead code #

Patch Set 4 : committed state on region #

Patch Set 5 : remove ThreadState::checkAndMarkPointer #

Total comments: 16

Patch Set 6 : osPageSize #

Patch Set 7 : revert osPageSize #

Patch Set 8 : relocate alignment #

Total comments: 8

Patch Set 9 : RC #

Patch Set 10 : RC2 #

Total comments: 11

Patch Set 11 : RC3 #

Patch Set 12 : fix heap tests #

Patch Set 13 : don't scan orphaned pages (which are zapped) #

Patch Set 14 : fix detachMainThread issue #

Patch Set 15 : revert detachMainThread fix and delete assertion in remove #

Patch Set 16 : lookup assert #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -213 lines) Patch
M Source/platform/heap/Heap.h View 1 2 3 5 chunks +48 lines, -86 lines 0 comments Download
M Source/platform/heap/Heap.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 17 chunks +224 lines, -61 lines 0 comments Download
M Source/platform/heap/HeapTest.cpp View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/heap/ThreadState.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 9 chunks +7 lines, -14 lines 0 comments Download
M Source/platform/heap/ThreadState.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 6 chunks +10 lines, -51 lines 0 comments Download

Messages

Total messages: 36 (8 generated)
zerny-chromium
https://codereview.chromium.org/616483002/diff/80001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/616483002/diff/80001/Source/platform/heap/Heap.cpp#newcode319 Source/platform/heap/Heap.cpp:319: bool m_committed[blinkPagesPerRegion]; Regarding PageMemory state in the region, it ...
6 years, 2 months ago (2014-10-01 09:28:55 UTC) #1
zerny-chromium
https://codereview.chromium.org/616483002/diff/80001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/616483002/diff/80001/Source/platform/heap/Heap.cpp#newcode315 Source/platform/heap/Heap.cpp:315: return (address - base()) / blinkPageSize; This was incorrect. ...
6 years, 2 months ago (2014-10-01 10:35:00 UTC) #2
zerny-chromium
https://codereview.chromium.org/616483002/diff/80001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/616483002/diff/80001/Source/platform/heap/Heap.cpp#newcode315 Source/platform/heap/Heap.cpp:315: return (address - base()) / blinkPageSize; On 2014/10/01 10:34:59, ...
6 years, 2 months ago (2014-10-01 11:06:33 UTC) #3
Mads Ager (chromium)
LGTM https://codereview.chromium.org/616483002/diff/80001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/616483002/diff/80001/Source/platform/heap/Heap.cpp#newcode191 Source/platform/heap/Heap.cpp:191: decommitPage(page); Can we use another name than decommit/commit ...
6 years, 2 months ago (2014-10-01 11:29:01 UTC) #4
zerny-chromium
Thanks for the review! https://codereview.chromium.org/616483002/diff/80001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/616483002/diff/80001/Source/platform/heap/Heap.cpp#newcode191 Source/platform/heap/Heap.cpp:191: decommitPage(page); On 2014/10/01 11:29:01, Mads ...
6 years, 2 months ago (2014-10-01 12:05:35 UTC) #5
wibling-chromium
lgtm, nice change! https://codereview.chromium.org/616483002/diff/140001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/616483002/diff/140001/Source/platform/heap/Heap.cpp#newcode211 Source/platform/heap/Heap.cpp:211: ASSERT(Heap::heapDoesNotContainCacheIsEmpty()); NIT: It would be nice ...
6 years, 2 months ago (2014-10-01 13:12:17 UTC) #6
zerny-chromium
Thanks for the feedback. Fixes uploaded. FYI, I get between 10-15% improvement for LargeDistributionWithoutLayout and ...
6 years, 2 months ago (2014-10-01 14:19:55 UTC) #7
haraken
This is a nice change! LGTM. https://codereview.chromium.org/616483002/diff/170001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/616483002/diff/170001/Source/platform/heap/Heap.cpp#newcode213 Source/platform/heap/Heap.cpp:213: ASSERT(numPages == 1 ...
6 years, 2 months ago (2014-10-02 02:31:35 UTC) #9
zerny-chromium
Thanks for the review! https://codereview.chromium.org/616483002/diff/170001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/616483002/diff/170001/Source/platform/heap/Heap.cpp#newcode213 Source/platform/heap/Heap.cpp:213: ASSERT(numPages == 1 || size ...
6 years, 2 months ago (2014-10-02 07:48:42 UTC) #10
haraken
https://codereview.chromium.org/616483002/diff/170001/Source/platform/heap/Heap.cpp File Source/platform/heap/Heap.cpp (right): https://codereview.chromium.org/616483002/diff/170001/Source/platform/heap/Heap.cpp#newcode1249 Source/platform/heap/Heap.cpp:1249: } On 2014/10/02 07:48:42, zerny-chromium wrote: > On 2014/10/02 ...
6 years, 2 months ago (2014-10-02 07:51:04 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/616483002/190001
6 years, 2 months ago (2014-10-02 08:35:15 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/27408)
6 years, 2 months ago (2014-10-02 08:54:14 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/616483002/210001
6 years, 2 months ago (2014-10-02 09:19:50 UTC) #17
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_rel/builds/27413)
6 years, 2 months ago (2014-10-02 09:46:31 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/616483002/230001
6 years, 2 months ago (2014-10-02 13:05:52 UTC) #21
commit-bot: I haz the power
Committed patchset #13 (id:230001) as 183139
6 years, 2 months ago (2014-10-02 14:55:56 UTC) #22
zerny-chromium
A revert of the patch was committed in https://codereview.chromium.org/618353004 The problem was that detaching the ...
6 years, 2 months ago (2014-10-03 08:09:28 UTC) #23
Mads Ager (chromium)
LGTM
6 years, 2 months ago (2014-10-03 08:11:26 UTC) #24
haraken
LGTM
6 years, 2 months ago (2014-10-03 08:14:25 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/616483002/250001
6 years, 2 months ago (2014-10-03 09:06:44 UTC) #27
commit-bot: I haz the power
Committed patchset #14 (id:250001) as 183184
6 years, 2 months ago (2014-10-03 10:16:04 UTC) #28
zerny-chromium
This was reverted again due to crbug.com/420086. The cause is that detachMainThread does not happen ...
6 years, 2 months ago (2014-10-06 08:34:27 UTC) #29
haraken
Still LGTM. Thanks for working on this!
6 years, 2 months ago (2014-10-06 08:41:50 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/616483002/290001
6 years, 2 months ago (2014-10-06 09:23:34 UTC) #32
commit-bot: I haz the power
Committed patchset #16 (id:290001) as 183259
6 years, 2 months ago (2014-10-06 10:36:21 UTC) #33
ccameron
Any chance this is causing the hangs in: https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20(dbg)(1)/builds/31488 I'm considering a speculative revert in ...
6 years, 2 months ago (2014-10-06 16:38:55 UTC) #34
Mads Ager (chromium)
On 2014/10/06 16:38:55, ccameron1 wrote: > Any chance this is causing the hangs in: > ...
6 years, 2 months ago (2014-10-06 16:42:03 UTC) #35
Mads Ager (chromium)
6 years, 2 months ago (2014-10-06 16:43:15 UTC) #36
Message was sent while issue was closed.
On 2014/10/06 16:42:03, Mads Ager (chromium) wrote:
> On 2014/10/06 16:38:55, ccameron1 wrote:
> > Any chance this is causing the hangs in:
> > 
> >
>
https://build.chromium.org/p/chromium.win/builders/Win7%20Tests%20(dbg)(1)/bu...
> > 
> > I'm considering a speculative revert in the next few minutes.
> 
> I would say that there is very little chance that this is related. That test
was
> flaky when I was the gardener two weeks ago as well.

https://code.google.com/p/chromium/issues/detail?id=417756

Marked as fixed, but maybe it isn't?

Powered by Google App Engine
This is Rietveld 408576698