diff options
author | Mukilan Thiyagarajan <me@mukilan.in> | 2023-05-24 21:25:37 +0530 |
---|---|---|
committer | Mukilan Thiyagarajan <me@mukilan.in> | 2023-05-26 20:09:50 +0530 |
commit | 05239f879e7ff53b3240ca4ed5e7a01125770c61 (patch) | |
tree | bb80d3cfcd65013562a434e04c7c9e09074217ac /components/script/dom/htmlprogresselement.rs | |
parent | 43ebf6c82cf8a391e5c0e64061a12e3948cec001 (diff) | |
download | servo-05239f879e7ff53b3240ca4ed5e7a01125770c61.tar.gz servo-05239f879e7ff53b3240ca4ed5e7a01125770c61.zip |
Layout-2020: Serialize access to stylo thread pool.
When rendering a page containing an iframe, layout 2020
creates parallel 'Layout' threads which share workers
in the stylo thread pool.
Because of the way the 'StyleSharingCache' is designed
using TLS for storage of the LRU cache, this leads to
a double borrow of the cache when both layout threads
run concurrently.
More details about the issue can be found here:
https://gist.github.com/mukilan/ed57eb61b83237a05fbf6360ec5e33b0
This PR is a workaround until we find a more elegant/optimal
design that also can work for gecko. The fix for now is
simply to not allow multiple layouts in parallel.
Signed-off-by: Mukilan Thiyagarajan <me@mukilan.in>
Diffstat (limited to 'components/script/dom/htmlprogresselement.rs')
0 files changed, 0 insertions, 0 deletions