Clean up task sources and make all tasks cancellable#12404
Clean up task sources and make all tasks cancellable#12404bors-servo merged 4 commits intoservo:masterfrom
Conversation
Make tasks a wrapper over runnables
|
Heads up! This PR modifies the following files:
|
|
@bors-servo r+ |
|
📌 Commit 6b0ce8e has been approved by |
Clean up task sources and make all tasks cancellable <!-- Please describe your changes on the following line: --> This makes it so each task is a thin wrapper over a runnable and whenever a task is queued, it is automatically wrapped by the window's `runnable_wrapper`. --- <!-- 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 - [ ] These changes fix #__ (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/12404) <!-- Reviewable:end -->
|
💔 Test failed - linux-rel |
|
All the webstorage tests now time out, suggesting that something went wrong here :) |
|
Woops, |
8f565d8 to
714215c
Compare
|
May fix #11703? |
|
Mostly this looks good, and yay for one less intermittent! My only question is about the amount of boxing we're doing, can we replace Reviewed 1 of 9 files at r1, 1 of 3 files at r2, 12 of 13 files at r3, 1 of 1 files at r4, 1 of 1 files at r5. components/script/script_thread.rs, line 177 [r5] (raw file):
Why are we taking a components/script/task_source/mod.rs, line 16 [r5] (raw file):
Why are we taking a Comments from Reviewable |
|
Review status: all files reviewed at latest revision, 2 unresolved discussions. components/script/script_thread.rs, line 177 [r5] (raw file):
|
Implement all Runnable methods on CancellableRunnable to redirect to their inner runnable
2b42b8f to
523cd73
Compare
|
Review status: 5 of 16 files reviewed at latest revision, 2 unresolved discussions. components/script/script_thread.rs, line 177 [r5] (raw file):
|
|
@asajeffrey Because |
523cd73 to
862dc00
Compare
|
Reviewed 10 of 11 files at r8, 1 of 1 files at r9. components/script/script_thread.rs, line 177 [r5] (raw file):
|
|
@bors-servo r+ |
|
📌 Commit 862dc00 has been approved by |
|
⌛ Testing commit 862dc00 with merge 3011d4b... |
Clean up task sources and make all tasks cancellable <!-- Please describe your changes on the following line: --> This makes it so each task is a thin wrapper over a runnable and whenever a task is queued, it is automatically wrapped by the window's `runnable_wrapper`. --- <!-- 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 - [X] These changes fix #11703 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/12404) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, arm64, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, windows |
This makes it so each task is a thin wrapper over a runnable and whenever a task is queued, it is automatically wrapped by the window's
runnable_wrapper../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is