servo/components/script
bors-servo 302e2cf5a4
Auto merge of #21647 - AgustinCB:fix-space-leak-when-pipeline-is-closed, r=asajeffrey
Fix space leak when pipeline is closed

Add a new control message to drop remove worklets.

Implement `Drop` for `Worklet` and get the worklet thread pool. Use that
pool to send `ExitWorklet` to all the threads with the id of the
`Worklet` that it's dropping.

---
- [x] `./mach build -d` does not report any errors
- [x] `./mach test-tidy` does not report any errors
- [x] These changes fix #17442
- [ ] There are tests for these changes OR
- [x] These changes do not require tests because I don't know how to add a test for this :(

If you consider this needs a test, could you point me out on how to write (and run!) one in this project? I gave this a couple tries, but I wasn't very successful.

<!-- 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/21647)
<!-- Reviewable:end -->
2018-09-20 15:35:19 -04:00
..
docs Rename Root<T> to DomRoot<T> 2017-09-26 09:49:10 +02:00
dom Auto merge of #21647 - AgustinCB:fix-space-leak-when-pipeline-is-closed, r=asajeffrey 2018-09-20 15:35:19 -04:00
task_source Format script component 2018-09-19 17:40:47 -04:00
body.rs Format script component 2018-09-19 17:40:47 -04:00
build.rs Format script component 2018-09-19 17:40:47 -04:00
Cargo.toml This updates the smallvec crate and enables the union feature 2018-09-19 07:16:30 +02:00
clipboard_provider.rs make use of ScriptToConstellationChan 2017-08-15 08:22:09 +02:00
CMakeLists.txt build(cmake): detect python binary for specified version 2018-03-13 09:25:06 -07:00
devtools.rs Format script component 2018-09-19 17:40:47 -04:00
document_loader.rs Format script component 2018-09-19 17:40:47 -04:00
fetch.rs Format script component 2018-09-19 17:40:47 -04:00
layout_image.rs Format script component 2018-09-19 17:40:47 -04:00
lib.rs Format script component 2018-09-19 17:40:47 -04:00
mem.rs Format script component 2018-09-19 17:40:47 -04:00
microtask.rs Format script component 2018-09-19 17:40:47 -04:00
network_listener.rs Introduce TaskOnce 2017-09-20 10:37:09 +02:00
script_runtime.rs Format script component 2018-09-19 17:40:47 -04:00
script_thread.rs Format script component 2018-09-19 17:40:47 -04:00
serviceworker_manager.rs Format script component 2018-09-19 17:40:47 -04:00
serviceworkerjob.rs Format script component 2018-09-19 17:40:47 -04:00
stylesheet_loader.rs Format script component 2018-09-19 17:40:47 -04:00
task.rs Format script component 2018-09-19 17:40:47 -04:00
task_queue.rs Format script component 2018-09-19 17:40:47 -04:00
test.rs Remove unused code for parsing a sizes attribute. 2018-07-01 10:53:42 +02:00
textinput.rs Format script component 2018-09-19 17:40:47 -04:00
timers.rs Format script component 2018-09-19 17:40:47 -04:00
unpremultiplytable.rs Format script component 2018-09-19 17:40:47 -04:00
webdriver_handlers.rs Format script component 2018-09-19 17:40:47 -04:00