Make rekillable consistent with unkillable#8581
Closed
flaper87 wants to merge 6 commits intorust-lang:masterfrom
Closed
Make rekillable consistent with unkillable#8581flaper87 wants to merge 6 commits intorust-lang:masterfrom
flaper87 wants to merge 6 commits intorust-lang:masterfrom
Conversation
Contributor
Author
|
@bblum here it is 😃 |
Contributor
Author
|
@bblum I added a small test but I'm not 100% that's what is needed. I'll add more if so. I'd appreciate if you could elaborate more on the various cases you think worth testing. (I'm pretty new to rust). Thanks a lot! |
Contributor
|
The test you added looks good but there should also be a test for the advertised behaviour, namely, that a task can get killed inside a rekillable block. Something like this: You also have not added any code to the runtime that will actually make the task fail, which you will need to do if you want the tests to pass. |
Contributor
|
This needs a rebase (it no longer merges cleanly). |
Contributor
Author
|
Will do! I'm out and I'll be back tomorrow!!! |
As for now, rekillable is an unsafe function, instead, it should behave just like unkillable by encapsulating unsafe code within an unsafe block. This patch does that and removes unsafe blocks that were encapsulating rekillable calls throughout rust's libs. Fixes rust-lang#8232
Contributor
Author
|
rebased |
bors
added a commit
that referenced
this pull request
Aug 27, 2013
As for now, rekillable is an unsafe function, instead, it should behave just like unkillable by encapsulating unsafe code within an unsafe block. This patch does that and removes unsafe blocks that were encapsulating rekillable calls throughout rust's libs. Fixes #8232
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.
As for now, rekillable is an unsafe function, instead, it should behave
just like unkillable by encapsulating unsafe code within an unsafe
block.
This patch does that and removes unsafe blocks that were encapsulating
rekillable calls throughout rust's libs.
Fixes #8232