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

Issue 1393863004: Oilpan: always shrink tail-allocated backing storage (reland.) (Closed)

Created:
5 years, 2 months ago by sof
Modified:
5 years, 2 months ago
Reviewers:
oilpan-reviews, haraken
CC:
chromium-reviews, oilpan-reviews, blink-reviews, kouhei+heap_chromium.org, 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: always shrink tail-allocated backing storage (reland.) When shrinking backing storage allocations, some care is taken not to introduce excessive fragmentation and/or limit later expansion of the same object. That logic does not need to apply if the backing store is at the tail of the current heap chunk: unconditionally reset the allocation point, if it is. (Reland of r353321; it asserted on empty shrink attempts on 32-bit windows.) R=haraken BUG=420515 Committed: https://crrev.com/73fe1f117f1cc427fa987d7b572fe42b126707e0 Cr-Commit-Position: refs/heads/master@{#354474}

Patch Set 1 #

Total comments: 2

Patch Set 2 : rename predicate #

Patch Set 3 : handle no-op shrink attempts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -8 lines) Patch
M third_party/WebKit/Source/platform/heap/HeapAllocator.cpp View 1 2 2 chunks +8 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapPage.h View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/heap/HeapPage.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
sof
please take a look. Initial blink_perf results looks about the same, but need more runs ...
5 years, 2 months ago (2015-10-09 14:18:19 UTC) #2
haraken
LGTM https://codereview.chromium.org/1393863004/diff/1/third_party/WebKit/Source/platform/heap/HeapPage.cpp File third_party/WebKit/Source/platform/heap/HeapPage.cpp (right): https://codereview.chromium.org/1393863004/diff/1/third_party/WebKit/Source/platform/heap/HeapPage.cpp#newcode702 third_party/WebKit/Source/platform/heap/HeapPage.cpp:702: if (isObjectAllocatedLast(header) && expandSize <= m_remainingAllocationSize) { isObjectAllocatedAtAllocationPoint ...
5 years, 2 months ago (2015-10-09 14:21:42 UTC) #4
sof
https://codereview.chromium.org/1393863004/diff/1/third_party/WebKit/Source/platform/heap/HeapPage.cpp File third_party/WebKit/Source/platform/heap/HeapPage.cpp (right): https://codereview.chromium.org/1393863004/diff/1/third_party/WebKit/Source/platform/heap/HeapPage.cpp#newcode702 third_party/WebKit/Source/platform/heap/HeapPage.cpp:702: if (isObjectAllocatedLast(header) && expandSize <= m_remainingAllocationSize) { On 2015/10/09 ...
5 years, 2 months ago (2015-10-09 14:26:40 UTC) #5
sof
On 2015/10/09 14:18:19, sof wrote: > please take a look. > > Initial blink_perf results ...
5 years, 2 months ago (2015-10-09 17:31:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1393863004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1393863004/20001
5 years, 2 months ago (2015-10-09 17:33:03 UTC) #9
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-09 17:39:43 UTC) #10
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/afa3e61596ebb5d648a6e9923de85534926d27fa Cr-Commit-Position: refs/heads/master@{#353321}
5 years, 2 months ago (2015-10-09 17:40:22 UTC) #11
Yuta Kitamura
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/1395493008/ by yutak@chromium.org. ...
5 years, 2 months ago (2015-10-15 09:54:42 UTC) #12
sof
Re-opened this one so as to address the case where vector backing storage shrink attempts ...
5 years, 2 months ago (2015-10-16 07:07:24 UTC) #13
haraken
LGTM
5 years, 2 months ago (2015-10-16 07:07:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1393863004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1393863004/40001
5 years, 2 months ago (2015-10-16 07:35:21 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 2 months ago (2015-10-16 08:36:49 UTC) #17
commit-bot: I haz the power
5 years, 2 months ago (2015-10-16 08:37:47 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/73fe1f117f1cc427fa987d7b572fe42b126707e0
Cr-Commit-Position: refs/heads/master@{#354474}

Powered by Google App Engine
This is Rietveld 408576698