Implement FreeBSD syscall _umtx_op for futex support#4209
Implement FreeBSD syscall _umtx_op for futex support#4209RalfJung merged 1 commit intorust-lang:masterfrom
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. |
RalfJung
left a comment
There was a problem hiding this comment.
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. |
| this.write_scalar(res, dest)?; | ||
| } | ||
|
|
||
| // Futex |
There was a problem hiding this comment.
| // 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 |
RalfJung
left a comment
There was a problem hiding this comment.
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_opsyscall.Enable sync and concurrency tests in
ci/ci.shand add tests that calls_umtx_opdirectly.