Closed
Bug 1376884
Opened 7 years ago
Closed 7 years ago
stylo: Check stack depth in invalidation machinery and re-enable limits
Categories
(Core :: CSS Parsing and Computation, enhancement, P2)
Core
CSS Parsing and Computation
Tracking
()
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(4 files)
11.59 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
8.34 KB,
patch
|
jseward
:
review+
|
Details | Diff | Splinter Review |
1.94 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
2.21 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
This will allow us to use small stacks in bug 1376883.
Assignee | ||
Updated•7 years ago
|
Priority: -- → P2
Assignee | ||
Comment 1•7 years ago
|
||
NI emilio to do this when bug 1376883 lands, and also to check for other recursive stuff.
Comment 2•7 years ago
|
||
So, re. other recursive stuff, selector-matching is recursive in the following way: A selector like `* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *` will recurse `max(star_count, dom_depth)`. So it's controlled by the user, just not dependent on only DOM shape, but also selectors. Do we care about this one, Bobby? We could also track depth there, but that'd be kinda unfortunate (and affect correctness).
Flags: needinfo?(emilio+bugs) → needinfo?(bobbyholley)
Assignee | ||
Comment 3•7 years ago
|
||
(In reply to Emilio Cobos Álvarez [:emilio] from comment #2) > So, re. other recursive stuff, selector-matching is recursive in the > following way: > > A selector like `* * * * * * * * * * * * * * * * * * * * * * * * * * * * * > * *` will recurse `max(star_count, dom_depth)`. > > So it's controlled by the user, just not dependent on only DOM shape, but > also selectors. > > Do we care about this one, Bobby? We could also track depth there, but > that'd be kinda unfortunate (and affect correctness). Yeah, if we need to we can probably just store the base stack address on the MatchContext and do a depth check. dbaron said on IRC though that he wouldn't expect a selector like that to require recursion. So it's worth seeing if we can fix that somehow.
Flags: needinfo?(bobbyholley)
Assignee | ||
Comment 4•7 years ago
|
||
MozReview-Commit-ID: 3tX3gHFTBT
Attachment #8901332 -
Flags: review+
Assignee | ||
Comment 5•7 years ago
|
||
MozReview-Commit-ID: ILblsins91P
Attachment #8901333 -
Flags: review?(jseward)
Assignee | ||
Comment 6•7 years ago
|
||
MozReview-Commit-ID: GJkLyigMK34
Attachment #8901334 -
Flags: review+
Assignee | ||
Comment 7•7 years ago
|
||
MozReview-Commit-ID: 8AjqX6y4FCI
Attachment #8901335 -
Flags: review+
Assignee | ||
Comment 8•7 years ago
|
||
Expanding the scope of this bug a bit, see bug 1376883 comment 26.
Assignee: emilio+bugs → bobbyholley
Summary: stylo: Check stack depth in invalidation machinery → stylo: Check stack depth in invalidation machinery and re-enable limits
Assignee | ||
Updated•7 years ago
|
Attachment #8901332 -
Attachment description: Part 1 - Hook the recursive invalidation traversal up to the stack checker machinery. → Part 1 - Hook the recursive invalidation traversal up to the stack checker machinery. r=bholley
Assignee | ||
Updated•7 years ago
|
Attachment #8901334 -
Attachment description: Part 3 - Reenable tight stacks sizes. v1 → Part 3 - Reenable tight stacks sizes. r=me
Updated•7 years ago
|
Attachment #8901333 -
Flags: review?(jseward) → review+
Assignee | ||
Comment 9•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=c6c7d8e98c559bc2ae832b4d5c873dbc9680f912
Assignee | ||
Comment 10•7 years ago
|
||
https://treeherder.mozilla.org/#/jobs?repo=try&revision=4e3f61f26cbcb90f2999b9ac8ad1ef92250bec8c
Assignee | ||
Comment 11•7 years ago
|
||
https://github.com/servo/servo/pull/18248
Comment 12•7 years ago
|
||
Pushed by bholley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fd7ac7bc3fdf Add a tweaked version of our existing invalidation stress test that runs parallel in adaptive mode. r=me
Comment 13•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/fd7ac7bc3fdf
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
You need to log in
before you can comment on or make changes to this bug.
Description
•