Emilio Cobos Álvarez
bd9c53c5da
style: Manually extinguish multi-line use statements.
2018-11-10 21:42:24 +01:00
Simon Sapin
b1822a39fa
cargo fix --edition --features gecko
2018-11-10 17:47:28 +01:00
Pyfisch
9e92eb205a
Reorder imports
2018-11-06 22:35:07 +01:00
Bobby Holley
50a85a5dd6
style: Cap the number of style threads at six.
...
Differential Revision: https://phabricator.services.mozilla.com/D1928
Bug: 1431285
Reviewed-by: emilio
2018-07-09 03:04:01 +02:00
Xidorn Quan
20ec610e68
Do not disable thread pool in the parent process.
2018-03-07 09:40:33 +11:00
Bastien Orivel
fae2d9839f
Bump rayon to 1.0
2018-02-24 13:50:03 +01:00
Bobby Holley
90e9bbbadc
Explicitly register rayon threads, rather than assuming that as the default.
...
MozReview-Commit-ID: E4kUyy8HjmV
2017-09-19 13:04:35 -07:00
Bobby Holley
ffc42db030
Reenable tight stacks sizes.
...
MozReview-Commit-ID: GJkLyigMK34
2017-08-25 21:29:18 -07:00
Bobby Holley
be67bb87d4
Revert rayon stack limits until we sort out the crashtest bustage.
2017-08-25 12:32:24 -07:00
Julian Seward
8b15347217
stylo: Drop thread pool stack size to 100K.
...
Reviewed in bug 1376883 by bholley.
2017-08-25 15:36:21 +02:00
Bobby Holley
d2842daa2d
Avoid creating a stylo thread pool in e10s parent processes.
...
MozReview-Commit-ID: LW92yNDKZf4
2017-08-17 19:14:16 -07:00
Mike Hommey
513833d9b9
Separate thread pool from global state for Gecko
...
When stylo is not enabled in Gecko, the global state initialization
still creates the style thread pool, even when it's not going to be
used. This wastes address space and a little memory.
See https://bugzilla.mozilla.org/show_bug.cgi?id=1374824#c38 and
following comment.
2017-06-23 19:36:58 +09:00
Bobby Holley
ce19c949db
Enable breadth-first traversal.
...
MozReview-Commit-ID: KJA2drcLTb5
2017-06-14 22:50:27 -07:00
Bobby Holley
5a28c87b8e
Allow forcing a style threadpool of size 1.
2017-05-18 16:18:12 +02:00
Mike Hommey
6818cdb249
Bug 1361258 - Opt-in to thread-local jemalloc arenas for stylo rayon threads. r=bholley
2017-05-13 08:38:49 +09:00
Nathan Froyd
74ce5bd0ae
register stylo threads with the gecko profiler
...
Now that we require rayon 0.7, we can register start and stop handlers
that take care of dealing with the Gecko profiler for rayon threads in
the style thread pool.
2017-05-09 19:43:53 -04:00
Nathan Froyd
681b578326
bump required rayon version to 0.7
...
...and bring jpeg-decoder along for the ride. Minor tweaks were
necessary because of rayon API changes.
2017-05-05 10:36:01 -04:00
Bobby Holley
dc5dbd5542
Store style system options in the global style data and shared style context.
...
I wanted to add an environmental variable to disable the style sharing
cache for gecko, but the current pattern involves lazy_static!, which
involves an atomic operation on lookup, which is a bit hot to do each
time we try to share styles. This makes that work happen once per
process.
2017-04-12 14:34:42 +08:00
Simon Sapin
1bacd0eb15
Move all PropertyDeclarationBlock from RwLock<_> to Locked<_>
2017-03-19 22:30:38 +01:00