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

Issue 415743005: Move ScopedStyleResolver and ScopedStyleTree to oilpan's heap (Closed)

Created:
6 years, 5 months ago by haraken
Modified:
6 years, 5 months ago
CC:
blink-reviews, blink-reviews-css, eae+blinkwatch, ed+blinkwatch_opera.com, blink-reviews-dom_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, darktears, rune+blink, rwlbuis
Project:
blink
Visibility:
Public.

Description

Move ScopedStyleResolver and ScopedStyleTree to oilpan's heap In oilpan, TreeScope, all Nodes in the TreeScope, StyleEngine, StyleResolver and ScopedStyleTree live and die together. Thus we can make raw pointers in ScopedStyleTree Members. Also we can remove clearScopedStyleResolver() from ScopedStyleTree's destructor, because the TreeScope and ScopedStyleTree live and die together. BUG=340522 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178817

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 2

Patch Set 4 : #

Patch Set 5 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+69 lines, -35 lines) Patch
M Source/core/animation/css/CSSAnimations.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/core/css/resolver/ScopedStyleResolver.h View 2 chunks +12 lines, -9 lines 0 comments Download
M Source/core/css/resolver/ScopedStyleResolver.cpp View 1 2 3 4 2 chunks +10 lines, -1 line 1 comment Download
M Source/core/css/resolver/ScopedStyleTree.h View 1 2 3 chunks +23 lines, -13 lines 0 comments Download
M Source/core/css/resolver/ScopedStyleTree.cpp View 1 2 3 4 5 chunks +15 lines, -5 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/css/resolver/StyleResolver.cpp View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M Source/core/dom/TreeScope.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/dom/TreeScope.cpp View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
haraken
PTAL
6 years, 5 months ago (2014-07-24 02:05:49 UTC) #1
haraken
I noticed that this CL is not enough to fix crashes happening on oilpan bots. ...
6 years, 5 months ago (2014-07-24 02:40:04 UTC) #2
haraken
This fixes a lot of outstanding crashes in oilpan bots. PTAL. In a follow-up CL, ...
6 years, 5 months ago (2014-07-24 04:11:55 UTC) #3
kochi
blind lgtm (defer real reviews to oilpan experts) Thanks for fixing my breakage.
6 years, 5 months ago (2014-07-24 04:16:45 UTC) #4
haraken
tkent-san: Would you take a look?
6 years, 5 months ago (2014-07-24 04:29:12 UTC) #5
tkent
lgtm https://codereview.chromium.org/415743005/diff/40001/Source/core/css/resolver/ScopedStyleResolver.cpp File Source/core/css/resolver/ScopedStyleResolver.cpp (right): https://codereview.chromium.org/415743005/diff/40001/Source/core/css/resolver/ScopedStyleResolver.cpp#newcode80 Source/core/css/resolver/ScopedStyleResolver.cpp:80: resolver->processScopedRules(ruleSet, cssSheet, m_scope->rootNode()); nit: We prefer a reference. ...
6 years, 5 months ago (2014-07-24 04:30:10 UTC) #6
haraken
https://codereview.chromium.org/415743005/diff/40001/Source/core/css/resolver/ScopedStyleResolver.cpp File Source/core/css/resolver/ScopedStyleResolver.cpp (right): https://codereview.chromium.org/415743005/diff/40001/Source/core/css/resolver/ScopedStyleResolver.cpp#newcode80 Source/core/css/resolver/ScopedStyleResolver.cpp:80: resolver->processScopedRules(ruleSet, cssSheet, m_scope->rootNode()); On 2014/07/24 04:30:09, tkent wrote: > ...
6 years, 5 months ago (2014-07-24 04:37:41 UTC) #7
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 5 months ago (2014-07-24 04:37:50 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/415743005/60001
6 years, 5 months ago (2014-07-24 04:38:19 UTC) #9
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_blink_compile_dbg on tryserver.blink ...
6 years, 5 months ago (2014-07-24 05:14:50 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-24 05:21:22 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_blink_dbg on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/linux_blink_dbg/builds/17815) mac_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/mac_blink_rel/builds/16850)
6 years, 5 months ago (2014-07-24 05:21:23 UTC) #12
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 5 months ago (2014-07-24 05:27:10 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/415743005/80001
6 years, 5 months ago (2014-07-24 05:27:49 UTC) #14
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_blink_rel on tryserver.blink ...
6 years, 5 months ago (2014-07-24 06:35:06 UTC) #15
commit-bot: I haz the power
Change committed as 178817
6 years, 5 months ago (2014-07-24 07:05:45 UTC) #16
sof
Seems like this caused a number of crashes, https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Win_Oilpan__dbg_/2723/layout-test-results/results.html
6 years, 5 months ago (2014-07-24 11:23:16 UTC) #17
wibling-chromium
On 2014/07/24 11:23:16, sof wrote: > Seems like this caused a number of crashes, > ...
6 years, 5 months ago (2014-07-24 11:29:30 UTC) #18
haraken
On 2014/07/24 11:29:30, wibling-chromium wrote: > On 2014/07/24 11:23:16, sof wrote: > > Seems like ...
6 years, 5 months ago (2014-07-24 11:32:34 UTC) #19
wibling-chromium
On 2014/07/24 11:32:34, haraken wrote: > On 2014/07/24 11:29:30, wibling-chromium wrote: > > On 2014/07/24 ...
6 years, 5 months ago (2014-07-24 11:35:03 UTC) #20
sof
On 2014/07/24 11:32:34, haraken wrote: > On 2014/07/24 11:29:30, wibling-chromium wrote: > > On 2014/07/24 ...
6 years, 5 months ago (2014-07-24 11:36:26 UTC) #21
haraken
On 2014/07/24 11:36:26, sof wrote: > On 2014/07/24 11:32:34, haraken wrote: > > On 2014/07/24 ...
6 years, 5 months ago (2014-07-24 11:45:40 UTC) #22
haraken
https://codereview.chromium.org/415743005/diff/80001/Source/core/css/resolver/ScopedStyleResolver.cpp File Source/core/css/resolver/ScopedStyleResolver.cpp (right): https://codereview.chromium.org/415743005/diff/80001/Source/core/css/resolver/ScopedStyleResolver.cpp#newcode87 Source/core/css/resolver/ScopedStyleResolver.cpp:87: if (contents->hasOneClient() || visitedSharedStyleSheetContents.add(contents).isNewEntry) I noticed that this condition ...
6 years, 5 months ago (2014-07-24 11:58:50 UTC) #23
wibling-chromium
On 2014/07/24 11:45:40, haraken wrote: > On 2014/07/24 11:36:26, sof wrote: > > On 2014/07/24 ...
6 years, 5 months ago (2014-07-24 12:10:08 UTC) #24
haraken
On 2014/07/24 12:10:08, wibling-chromium wrote: > On 2014/07/24 11:45:40, haraken wrote: > > On 2014/07/24 ...
6 years, 5 months ago (2014-07-24 12:15:40 UTC) #25
sof
On 2014/07/24 11:58:50, haraken wrote: > https://codereview.chromium.org/415743005/diff/80001/Source/core/css/resolver/ScopedStyleResolver.cpp > File Source/core/css/resolver/ScopedStyleResolver.cpp (right): > > https://codereview.chromium.org/415743005/diff/80001/Source/core/css/resolver/ScopedStyleResolver.cpp#newcode87 > ...
6 years, 5 months ago (2014-07-24 12:18:03 UTC) #26
haraken
On 2014/07/24 12:18:03, sof wrote: > On 2014/07/24 11:58:50, haraken wrote: > > > https://codereview.chromium.org/415743005/diff/80001/Source/core/css/resolver/ScopedStyleResolver.cpp ...
6 years, 5 months ago (2014-07-24 12:22:30 UTC) #27
haraken
On 2014/07/24 12:22:30, haraken wrote: > On 2014/07/24 12:18:03, sof wrote: > > On 2014/07/24 ...
6 years, 5 months ago (2014-07-24 12:23:13 UTC) #28
sof
On 2014/07/24 12:23:13, haraken wrote: > On 2014/07/24 12:22:30, haraken wrote: > > On 2014/07/24 ...
6 years, 5 months ago (2014-07-24 12:27:39 UTC) #29
sof
6 years, 5 months ago (2014-07-24 17:53:57 UTC) #30
Message was sent while issue was closed.
On 2014/07/24 12:10:08, wibling-chromium wrote:
> On 2014/07/24 11:45:40, haraken wrote:
> > On 2014/07/24 11:36:26, sof wrote:
> > > On 2014/07/24 11:32:34, haraken wrote:
> > > > On 2014/07/24 11:29:30, wibling-chromium wrote:
> > > > > On 2014/07/24 11:23:16, sof wrote:
> > > > > > Seems like this caused a number of crashes,
> > > > > > 
> > > > > > 
> > > > > >
> > > > >
> > > >
> > >
> >
>
https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Win_Oilpa...
> > > > > 
> > > > > Should we just revert it for now or is there anyone looking at a fix?
> > > > 
> > > > I'm looking. Reverting this CL will cause other crashes in layout
tests...
> > > > 
> > > > Also some CL in r178791 - r178820 caused a lot of failures of
> style-related
> > > > tests.
> > > >
> > >
> >
>
http://build.chromium.org/p/chromium.webkit/builders/WebKit%20Linux%20Oilpan/...
> > > 
> > > It seems like the same set (but the stacks aren't of much use atm on that
> > > platform.) This CL is in that range :)
> > 
> > Yes, this CL is in the range, but a lot of things have been broken since the
> > original CL (r178795) was landed. It's possible that they are crashes
> introduced
> > in the original CL.
> 
> I suspect that is the case. I tried reverting 178795, 178800, and 178817 and
> there are significantly less tests failing (25 after reverting and 68 without
> reverting) and no crashes after reverting.

That matches up fairly well with where we are now after r178840; some tests
fail, but no crashes --


https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Mac_Oilpa...

Powered by Google App Engine
This is Rietveld 408576698