Repository navigation
constellation: join on script-threads - #38424
Merged
Merged
Conversation
gterzian
marked this pull request as draft
August 2, 2025 02:06
Member
Author
|
I'm not sure about this one because it means we are leaking the join handles until final shutdown, whereas a user could open and close any number of pipelines before then. EDIT: addressed this by switching to a map of webview to join handle. |
gterzian
force-pushed
the
join_script_threads
branch
3 times, most recently
from
August 2, 2025 08:46
76ffcfb to
77d1c2c
Compare
gterzian
marked this pull request as ready for review
August 2, 2025 08:47
jdm
approved these changes
Aug 2, 2025
| for (_, join_handle) in self.script_join_handles.drain() { | ||
| join_handle | ||
| .join() | ||
| .expect("Failed to join on a script-thread."); |
Member
There was a problem hiding this comment.
I don't think this is worth panicking over. Log an error instead?
Member
Author
There was a problem hiding this comment.
Ok, I've done it for the bhm thread join as well then.
… shutdown Signed-off-by: gterzian <[email protected]>
Signed-off-by: gterzian <[email protected]>
or if join on the bhm thread fails Signed-off-by: gterzian <[email protected]>
gterzian
force-pushed
the
join_script_threads
branch
from
August 6, 2025 11:20
521eea4 to
08f89ad
Compare
PotatoCP
added a commit
to PotatoCP/servo
that referenced
this pull request
Aug 7, 2025
{"fail_fast": false, "matrix": [{"name": "Linux (WPT)", "workflow": "linux", "wpt": true, "profile": "release", "unit_tests": false, "build_libservo": false, "bencher": false, "build_args": "", "wpt_args": "./tests/wpt/tests/webdriver/tests/classic/ --product servodriver --headless --processes 1", "number_of_wpt_chunks": 2}]}
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
We currently send exit signals to script-threads, and we also join on the BHM worker. This ensure the constellation shuts-down only after script has dropped it's sender to the BHM worker. By joining on the script-threads, we have a guarantee that they have exited(which is stronger than having dropped their senders) by the time the constellation exits.
Testing: Manually opened many tabs and closed the window, both in single- and multi-process modes.
Fixes: Part of - #30849