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

Issue 638223003: [oilpan]: Attempt to make allocation faster by only updating the GC stats when needed, rather than …

Created:
6 years, 2 months ago by wibling-chromium
Modified:
6 years, 2 months ago
CC:
blink-reviews, kouhei+heap_chromium.org, Mads Ager (chromium), mkwst+moarreviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

[oilpan]: Attempt to make allocation faster by only updating the GC stats when needed, rather than for each inline allocation. NOTE: Should test how much going through thread local storage matters in Heap::allocate when looking up threadstate. BUG=

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -32 lines) Patch
M Source/platform/heap/Heap.h View 3 chunks +20 lines, -19 lines 0 comments Download
M Source/platform/heap/Heap.cpp View 10 chunks +21 lines, -13 lines 0 comments Download

Messages

Total messages: 5 (2 generated)
wibling-chromium
6 years, 2 months ago (2014-10-10 09:38:04 UTC) #2
Erik Corry
I like this change, it feels far too heaviweight to update the stats on each ...
6 years, 2 months ago (2014-10-10 11:16:16 UTC) #4
haraken
6 years, 2 months ago (2014-10-10 12:01:02 UTC) #5
On 2014/10/10 11:16:16, Erik Corry wrote:
> I like this change, it feels far too heaviweight to update the stats on each
> tiny bump allocation.
> 
> In ThreadState.h we find the comment that m_totalObjectSpace does not include
> the allocation headers. That's not true any more with this change.
> 
> I can't quite see how the heap unit tests can pass, given this change.

I like this too. I confirmed that Heap::allocate is one of the main bottlenecks
of several benchmarks.

I'll handle this CL.

Powered by Google App Engine
This is Rietveld 408576698