diff options
author | bors-servo <lbergstrom+bors@mozilla.com> | 2017-09-20 00:59:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-09-20 00:59:35 -0500 |
commit | 8000efac75c96f87a5e242be84b246f98a1b61e5 (patch) | |
tree | a93b505bf556f7bf8105d0068c40a7941967d327 /components/script/task.rs | |
parent | 2a97b2cd7cb7e2e52ea48f857d1687b8dcee6604 (diff) | |
parent | 37879260a962e8c23a37e15e8b6f7e83ba043e29 (diff) | |
download | servo-8000efac75c96f87a5e242be84b246f98a1b61e5.tar.gz servo-8000efac75c96f87a5e242be84b246f98a1b61e5.zip |
Auto merge of #18569 - mrbkap:1398393-cooperative-thread-tagging, r=emilio
Bug 1398393 - Add a way to initialize a cooperative thread in servo.
<!-- Please describe your changes on the following line: -->
Over in [bug 1398393](https://bugzilla.mozilla.org/show_bug.cgi?id=1398393), I found that when we turn Quantum DOM's cooperative threads on, we hit a Servo panic because we assume that we've set some state in the TLD. The cooperative threads currently have no way of doing this without also re-initializing the log module and some other static data. This small patch gives the cooperative threads a way of informing Servo about themselves.
---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
<!-- Either: -->
- [X] These changes do not require tests because they will be tested on Gecko's tinderbox once we get cooperative threading working.
<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->
<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/18569)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/task.rs')
0 files changed, 0 insertions, 0 deletions