aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/task_source
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2017-09-04 13:17:45 +0200
committerEmilio Cobos Álvarez <emilio@crisal.io>2017-09-04 13:17:45 +0200
commit2d1b387a4c30b45e56d949ab64534efc47dda0db (patch)
tree5223a8cc0256dff5ccaa2e55ad1ba8b7d612a4ee /components/script/task_source
parent862f3b4369aca4fcc601743be64d685516c5a2cf (diff)
downloadservo-2d1b387a4c30b45e56d949ab64534efc47dda0db.tar.gz
servo-2d1b387a4c30b45e56d949ab64534efc47dda0db.zip
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.
Diffstat (limited to 'components/script/task_source')
0 files changed, 0 insertions, 0 deletions