-
Notifications
You must be signed in to change notification settings - Fork 381
Implement FreeBSD syscall _umtx_op for futex support #4209
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@rustbot ready |
Thanks for the PR! We have a significant backlog currently so unfortunately it could take a while until you get a proper review, sorry.
You should add Also, please add a test that directly calls the FreeBSD functions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for the long wait! These PRs are kinda tricky to review. Overall it looks good but I have a lot of questions. :)
When resolving these comments, please do not force-push or amend commits. Instead, make new commits for your new changes. We'll worry about cleaning up the git history later.
@rustbot author |
Those are not my commits, I hope I didn't do something wrong. As for the changes, I:
Only thing that I can think of is problem with the |
@rustbot ready |
Yeah something is definitely wrong with the PR, I can't review it in this state. Please make sure only your commits are on this branch. Probably a rebase can fix this. @rustbot author |
Reminder, once the PR becomes ready for a review, use |
4b3db72
to
032514f
Compare
I think i fixed it, only my commits are present on this branch @rustbot ready |
In the future, please avoid rebasing unless there are conflicts. Github is pretty bad at dealing with changes to the PR, and rebasing throws it off entirely, causing a bunch of extra work on my side. |
Sorry ):, you said that a rebase would probably fix it, and it sort of did. I had never seen something like that before and could not find anything that resembled that. Hopefully it doesn't cause to much problems. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rustbot author
@@ -55,6 +56,13 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> { | |||
this.write_scalar(res, dest)?; | |||
} | |||
|
|||
// Futex |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Futex | |
// Synchronization primitives |
Yeah you must have done a rebase or a merge first to even cause the problem that the rebase then fixed. That first step is what I referred to. :) |
@rustbot ready |
@rustbot author |
@rustbot ready |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some minor nits for the test. :)
@rustbot author |
The tests should be ok, at least on my machine. @rustbot ready |
This looks great, thanks! Please squash the commits, then we can land this. Please use the @rustbot author |
Sorry, I have never squashed commits before. And I don't want to break te history Again. How do I do this correctly? |
It should be something like |
… for Futex support
4358c18
to
dd880cd
Compare
I learned something new about git today, I hope this is what you meant :). @rustbot ready |
Looks good, thanks :) |
Links to #3553.
Currently This implements the WAIT and WAKE operations of the
_umtx_op
syscall.Enable sync and concurrency tests in
ci/ci.sh
and add tests that calls_umtx_op
directly.