Anthony Ramine
036f123c4e
Implement concept of dirty root
2020-05-19 16:26:36 +02:00
Emilio Cobos Álvarez
3d1df8dce7
style: Fix two regressions from #26113 .
2020-04-16 21:16:02 +02:00
Anthony Ramine
e7cb736796
Replace ScopedTLS::unsafe_get by ScopedTLS::into_slots
...
We only ever look at the slots after we are done with the thread pool,
so we don't need to expose any unsafety to inspect the slots.
2020-04-05 01:20:39 +02:00
Bastien Orivel
28fa0f8009
Update rayon to dedupe crossbeam-epoch
...
As a bonus this also removes one version of crossbeam-utils
2019-07-12 21:01:33 +02:00
Cameron McCormack
3a22bb6c49
style: Add Gecko profiler labels for when the style threads are doing work.
...
Differential Revision: https://phabricator.services.mozilla.com/D30869
2019-05-29 16:14:06 +02:00
Bobby Holley
af1bbd7b06
style: Derive more.
...
Differential Revision: https://phabricator.services.mozilla.com/D17029
2019-01-29 02:39:13 +01:00
Jan Andre Ikenmeyer
1d6fe65401
Update MPL license to https (part 4)
2018-11-19 14:47:27 +01:00
Simon Sapin
b1822a39fa
cargo fix --edition --features gecko
2018-11-10 17:47:28 +01:00
Simon Sapin
a15d33a10e
cargo fix --edition
2018-11-10 17:47:28 +01:00
Bobby Holley
c99bcdd4b8
Run rustfmt on selectors, servo_arc, and style.
...
This was generated with:
./mach cargo fmt --package selectors &&
./mach cargo fmt --package servo_arc &&
./mach cargo fmt --package style
Using rustfmt 0.4.1-nightly (a4462d1 2018-03-26)
2018-04-10 17:35:15 -07:00
Xidorn Quan
368fb574f8
Have servo report traversal statistics to gecko.
2018-03-15 11:57:52 +11:00
Xidorn Quan
d700fa16a1
Split TraversalStatistics into two parts.
2018-03-15 11:57:48 +11:00
Bobby Holley
4a2e1be874
Stop unconditionally collecting traversal statistics in nightly builds.
...
The current code also makes us panic when DUMP_STYLE_STATISTICS=1 is
set. :-(
MozReview-Commit-ID: JWGMojOnGFK
2018-03-08 11:32:21 -08:00
Manish Goregaokar
9d23962d8e
Remove traversal telemetry
2018-02-08 03:04:34 -08:00
Manish Goregaokar
337e5288c2
Add weighted telemetry probes for parallel restyles
2017-12-12 10:13:23 -06:00
Manish Goregaokar
d573081fe5
Add telemetry probe for fraction of restyles that are parallel
2017-12-12 10:08:11 -06:00
Emilio Cobos Álvarez
07d55a4bf8
style: Lazily tweak the traversal root to account for sibling invalidations.
...
Bug: 1403078
Reviewed-by: heycam
MozReview-Commit-ID: Ij3nMOKu5FO
Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
2017-09-26 13:09:03 +02:00
Emilio Cobos Álvarez
b81f6b3286
style: Avoid unnecessarily using Borrow.
2017-09-04 13:23:56 +02:00
Emilio Cobos Álvarez
2d1b387a4c
style: Avoid dropping the other threads' TLS contexts too early.
...
When collecting style statistics, we have this path that moves the TLS contexts
to be dropped before the local context.
Since destroying the TLS context runs the sequential task queue, that means that
sequential tasks would be executed sooner than usual, before we drop the main
thread TLS context.
Since we have that reuse of the main thread context's bloom filter, and some
tasks end up creating one (Servo_StyleSet_GetBaseComputedValuesForElement, I'm
looking at you), we may borrow the bloom filter before we're done with it on the
traversal code path.
This was hitting on YouTube, when DUMP_STYLE_STATISTICS was used.
2017-09-04 13:17:45 +02:00
Bobby Holley
707ab455bb
Eliminate the sequential/traversal parallel distinction in favor of a unified adaptive driver.
...
MozReview-Commit-ID: ADVTNJntzmp
2017-08-25 10:00:27 -07:00