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

Issue 1382353002: Oilpan: promptly dispose style resolvers upon clearing.

Created:
5 years, 2 months ago by sof
Modified:
5 years, 2 months ago
Reviewers:
haraken, oilpan-reviews
CC:
chromium-reviews, asanka, blink-reviews-style_chromium.org, benjhayden+dwatch_chromium.org, blink-reviews-css, eae+blinkwatch, blink-reviews-dom_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, darktears, blink-reviews, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Oilpan: promptly dispose style resolvers upon clearing. Try to balance the tables somewhat on storage allocation reuse for Oilpan wrt (Scoped)StyleResolver: - when the StyleEngine clears out its resolver, use that end-of-life signal to (promptly) release all its collections. This might bring about collection backing storage reuse. - similarly for TreeScope and its ScopedStyleResolver; explicitly dispose() the resolver object being cleared. R= BUG=

Patch Set 1 #

Patch Set 2 : Add ScopedStyleResolver::dispose() also #

Patch Set 3 : tweak #

Patch Set 4 : take InvalidationSet off the heap #

Patch Set 5 : rebased #

Total comments: 4

Patch Set 6 : Only expose dispose()s to Oilpan #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -7 lines) Patch
M third_party/WebKit/Source/core/css/RuleSet.h View 1 2 3 4 5 1 chunk +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/RuleSet.cpp View 1 2 3 4 5 1 chunk +27 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.cpp View 1 2 3 4 5 2 chunks +21 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.h View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/css/resolver/StyleResolver.cpp View 1 2 3 4 5 2 chunks +23 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/dom/StyleEngine.cpp View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/dom/TreeScope.cpp View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
haraken
Given that this code is for oilpan-only, let's add ENABLE(OILPAN). One question: Does blink_style.top_25 create ...
5 years, 2 months ago (2015-10-08 06:15:46 UTC) #2
sof
On 2015/10/08 06:15:46, haraken wrote: > Given that this code is for oilpan-only, let's add ...
5 years, 2 months ago (2015-10-08 06:24:40 UTC) #3
haraken
On 2015/10/08 06:24:40, sof wrote: > On 2015/10/08 06:15:46, haraken wrote: > > Given that ...
5 years, 2 months ago (2015-10-08 07:23:45 UTC) #4
sof
On 2015/10/08 07:23:45, haraken wrote: > On 2015/10/08 06:24:40, sof wrote: > > On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 07:34:27 UTC) #5
haraken
On 2015/10/08 07:34:27, sof wrote: > On 2015/10/08 07:23:45, haraken wrote: > > On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 07:39:06 UTC) #6
sof
On 2015/10/08 07:39:06, haraken wrote: > On 2015/10/08 07:34:27, sof wrote: > > On 2015/10/08 ...
5 years, 2 months ago (2015-10-08 07:42:37 UTC) #7
sof
5 years, 2 months ago (2015-10-08 08:50:02 UTC) #9
Updated with ENABLE(OILPAN) protections + added explanatory comments.

Powered by Google App Engine
This is Rietveld 408576698