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

Issue 634243004: Oilpan: Simplify Heap::allocate (Closed)

Created:
6 years, 2 months ago by haraken
Modified:
6 years, 2 months ago
CC:
blink-reviews, kouhei+heap_chromium.org, Mads Ager (chromium), mkwst+moarreviews_chromium.org
Project:
blink
Visibility:
Public.

Description

Oilpan: Simplify Heap::allocate This CL simplifies Heap::allocate for an upcoming optimization (I'm planning to implement size-aware Heap). This CL doesn't improve performance. - The key change is in Heap::allocate. - After this CL, ThreadState::getStats and ThreadState::getStatsForTesting return different stats. ThreadState::getStats returns the size of allocated objects *including* object headers, whereas ThreadState::getStatsForTesting returns the size of allocated objects *excluding* object headers. This is because there is no easy way to know the header size of each object in tests, and thus tests cannot test the size of allocated objects unless ThreadState::getStatsForTesting returns the size of allocated objects *excluding* object headers. - This CL renames Heap::getStats to Heap::getStatsForTesting because it is used by testing only. BUG=420515 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=184285

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : #

Total comments: 3

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -66 lines) Patch
M Source/platform/heap/Heap.h View 1 2 3 4 8 chunks +28 lines, -27 lines 0 comments Download
M Source/platform/heap/Heap.cpp View 1 2 3 12 chunks +48 lines, -18 lines 0 comments Download
M Source/platform/heap/HeapTest.cpp View 1 2 3 chunks +1 line, -13 lines 0 comments Download
M Source/platform/heap/ThreadState.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/heap/ThreadState.cpp View 1 2 3 1 chunk +7 lines, -8 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
haraken
PTAL
6 years, 2 months ago (2014-10-12 08:36:46 UTC) #2
sof
Some failures to address before it is ready?
6 years, 2 months ago (2014-10-13 08:08:46 UTC) #3
Erik Corry
https://codereview.chromium.org/634243004/diff/1/Source/platform/heap/Heap.h File Source/platform/heap/Heap.h (right): https://codereview.chromium.org/634243004/diff/1/Source/platform/heap/Heap.h#newcode1410 Source/platform/heap/Heap.h:1410: size_t allocationSize = size + sizeof(Header); You can't move ...
6 years, 2 months ago (2014-10-13 13:20:32 UTC) #5
haraken
keishi@: I fixed all crashes in the patch set 3, but at the same time ...
6 years, 2 months ago (2014-10-14 10:36:09 UTC) #6
haraken
This CL is not yet for review. The CL fixes all crashes but I cannot ...
6 years, 2 months ago (2014-10-14 10:43:08 UTC) #7
keishi
On 2014/10/14 10:36:09, haraken wrote: > keishi@: I fixed all crashes in the patch set ...
6 years, 2 months ago (2014-10-20 04:54:46 UTC) #8
haraken
On 2014/10/20 04:54:46, keishi wrote: > On 2014/10/14 10:36:09, haraken wrote: > > keishi@: I ...
6 years, 2 months ago (2014-10-20 05:02:03 UTC) #9
haraken
PTAL Although this CL doesn't improve performance, I'm going to land this CL to clean ...
6 years, 2 months ago (2014-10-23 04:20:50 UTC) #10
Erik Corry
https://codereview.chromium.org/634243004/diff/190001/Source/platform/heap/Heap.h File Source/platform/heap/Heap.h (right): https://codereview.chromium.org/634243004/diff/190001/Source/platform/heap/Heap.h#newcode1364 Source/platform/heap/Heap.h:1364: if (LIKELY(nextAllocationPoint <= m_allocationLimit)) { I'm not sure this ...
6 years, 2 months ago (2014-10-23 07:18:36 UTC) #11
haraken
Thanks for review! PTAL. In the end, this is a CL that just made Gustav's ...
6 years, 2 months ago (2014-10-23 08:37:53 UTC) #12
Erik Corry
lgtm https://codereview.chromium.org/634243004/diff/210001/Source/platform/heap/Heap.h File Source/platform/heap/Heap.h (right): https://codereview.chromium.org/634243004/diff/210001/Source/platform/heap/Heap.h#newcode1372 Source/platform/heap/Heap.h:1372: m_currentAllocationPoint = m_currentAllocationPoint + allocationSize; This should use ...
6 years, 2 months ago (2014-10-23 09:29:34 UTC) #13
haraken
https://codereview.chromium.org/634243004/diff/210001/Source/platform/heap/Heap.h File Source/platform/heap/Heap.h (right): https://codereview.chromium.org/634243004/diff/210001/Source/platform/heap/Heap.h#newcode1372 Source/platform/heap/Heap.h:1372: m_currentAllocationPoint = m_currentAllocationPoint + allocationSize; On 2014/10/23 09:29:34, Erik ...
6 years, 2 months ago (2014-10-23 11:29:59 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/634243004/230001
6 years, 2 months ago (2014-10-23 11:31:13 UTC) #16
commit-bot: I haz the power
6 years, 2 months ago (2014-10-23 16:51:47 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:230001) as 184285

Powered by Google App Engine
This is Rietveld 408576698