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

Issue 1190883003: Set HistogramEnumerationFunction even when Partitions are initialized (Closed)

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

Description

Set HistogramEnumerationFunction even when Partitions are initialized PartitionAlloc.CommittedSize isn't collected because we don't set m_histogramEnumeration correctly when we try to allocate memory before Partitions::initialize() is called. As a workaround, this CL separates partitions initialization and m_histogramEnumeration setting so that we can overrides m_histogramEnumeration. This workaround should be removed when we can make sure that initialize() is always called before memory allocation. This CL also remove a spin lock because initialization must happen on the main thread. BUG=501171 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=197413

Patch Set 1 #

Total comments: 4

Patch Set 2 : Remove lock #

Total comments: 2

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -8 lines) Patch
M Source/wtf/Partitions.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M Source/wtf/Partitions.cpp View 1 2 1 chunk +7 lines, -6 lines 0 comments Download
M Source/wtf/WTF.cpp View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 21 (5 generated)
bashi
PTAL? I think https://codereview.chromium.org/1182083006/ fixes the issue but we might want to have a workaround.
5 years, 6 months ago (2015-06-17 04:54:06 UTC) #2
haraken
Thanks for working on this! https://codereview.chromium.org/1190883003/diff/1/Source/wtf/Partitions.cpp File Source/wtf/Partitions.cpp (right): https://codereview.chromium.org/1190883003/diff/1/Source/wtf/Partitions.cpp#newcode65 Source/wtf/Partitions.cpp:65: spinLockLock(&s_lock); I don't think ...
5 years, 6 months ago (2015-06-17 05:24:20 UTC) #3
bashi
https://codereview.chromium.org/1190883003/diff/1/Source/wtf/Partitions.cpp File Source/wtf/Partitions.cpp (right): https://codereview.chromium.org/1190883003/diff/1/Source/wtf/Partitions.cpp#newcode65 Source/wtf/Partitions.cpp:65: spinLockLock(&s_lock); On 2015/06/17 05:24:20, haraken wrote: > > I ...
5 years, 6 months ago (2015-06-17 05:25:27 UTC) #4
haraken
https://codereview.chromium.org/1190883003/diff/1/Source/wtf/Partitions.cpp File Source/wtf/Partitions.cpp (right): https://codereview.chromium.org/1190883003/diff/1/Source/wtf/Partitions.cpp#newcode65 Source/wtf/Partitions.cpp:65: spinLockLock(&s_lock); On 2015/06/17 05:25:27, bashi1 wrote: > On 2015/06/17 ...
5 years, 6 months ago (2015-06-17 05:29:37 UTC) #5
bashi
https://codereview.chromium.org/1190883003/diff/1/Source/wtf/Partitions.cpp File Source/wtf/Partitions.cpp (right): https://codereview.chromium.org/1190883003/diff/1/Source/wtf/Partitions.cpp#newcode65 Source/wtf/Partitions.cpp:65: spinLockLock(&s_lock); On 2015/06/17 05:29:37, haraken wrote: > On 2015/06/17 ...
5 years, 6 months ago (2015-06-17 05:49:41 UTC) #7
haraken
LGTM On 2015/06/17 05:49:41, bashi1 wrote: > https://codereview.chromium.org/1190883003/diff/1/Source/wtf/Partitions.cpp > File Source/wtf/Partitions.cpp (right): > > https://codereview.chromium.org/1190883003/diff/1/Source/wtf/Partitions.cpp#newcode65 ...
5 years, 6 months ago (2015-06-17 14:18:44 UTC) #8
haraken
https://codereview.chromium.org/1190883003/diff/40001/Source/wtf/Partitions.cpp File Source/wtf/Partitions.cpp (right): https://codereview.chromium.org/1190883003/diff/40001/Source/wtf/Partitions.cpp#newcode52 Source/wtf/Partitions.cpp:52: // rely on isMainThread() at this point. Sorry, I ...
5 years, 6 months ago (2015-06-17 14:20:33 UTC) #9
haraken
+cevans for owner review.
5 years, 6 months ago (2015-06-17 14:21:13 UTC) #11
Chris Evans
On 2015/06/17 14:21:13, haraken wrote: > +cevans for owner review. I don't quite understand what ...
5 years, 6 months ago (2015-06-17 16:36:36 UTC) #12
haraken
On 2015/06/17 16:36:36, Chris Evans wrote: > On 2015/06/17 14:21:13, haraken wrote: > > +cevans ...
5 years, 6 months ago (2015-06-17 16:42:21 UTC) #13
Chris Evans
On 2015/06/17 16:42:21, haraken wrote: > On 2015/06/17 16:36:36, Chris Evans wrote: > > On ...
5 years, 6 months ago (2015-06-17 17:04:05 UTC) #14
haraken
On 2015/06/17 17:04:05, Chris Evans wrote: > On 2015/06/17 16:42:21, haraken wrote: > > On ...
5 years, 6 months ago (2015-06-17 17:45:07 UTC) #15
Chris Evans
On 2015/06/17 17:45:07, haraken wrote: > On 2015/06/17 17:04:05, Chris Evans wrote: > > On ...
5 years, 6 months ago (2015-06-17 18:00:16 UTC) #16
bashi
https://codereview.chromium.org/1190883003/diff/40001/Source/wtf/Partitions.cpp File Source/wtf/Partitions.cpp (right): https://codereview.chromium.org/1190883003/diff/40001/Source/wtf/Partitions.cpp#newcode52 Source/wtf/Partitions.cpp:52: // rely on isMainThread() at this point. On 2015/06/17 ...
5 years, 6 months ago (2015-06-18 22:53:37 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1190883003/60001
5 years, 6 months ago (2015-06-18 22:54:41 UTC) #20
commit-bot: I haz the power
5 years, 6 months ago (2015-06-19 00:18:39 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:60001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=197413

Powered by Google App Engine
This is Rietveld 408576698