Make ThreadRef the owner of the C Thread and rename to Thread#2705
Merged
sporksmith merged 11 commits intoshadow:mainfrom Jan 31, 2023
Merged
Make ThreadRef the owner of the C Thread and rename to Thread#2705sporksmith merged 11 commits intoshadow:mainfrom
sporksmith merged 11 commits intoshadow:mainfrom
Conversation
e0431d5 to
00923f4
Compare
Contributor
Author
|
Sorry, jumped the gun again on requesting review. Taking a look at the failing test... |
00923f4 to
6ee9ebd
Compare
6ee9ebd to
66a66a5
Compare
Codecov ReportBase: 67.58% // Head: 68.07% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2705 +/- ##
==========================================
+ Coverage 67.58% 68.07% +0.49%
==========================================
Files 203 202 -1
Lines 30472 30410 -62
Branches 5960 5949 -11
==========================================
+ Hits 20595 20703 +108
+ Misses 5201 5004 -197
- Partials 4676 4703 +27
Flags with carried forward coverage won't be shown. Click here to find out more.
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
stevenengler
approved these changes
Jan 31, 2023
This is a step towards making Thread itself not ref-counted, for its transition to Rust.
We already have a comment in `struct _SysCallHandler` stating that the handler must not outlive the Thread.
This makes ThreadRef a "borrowing" accessor to Thread, since it no longer necessarily "owns" the pointer.
We want to make ThreadRef own the cshadow::Thread, so we can no longer construct ephemeral ones on the fly.
An earlier version of this PR had a bug in cross-process signals that was only caught by one of the extra tests (basic-file-transfer). This is a more focused test for the corresponding functionality.
66a66a5 to
8cc9964
Compare
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.
No description provided.