We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dfcb46a commit c268ee2Copy full SHA for c268ee2
src/shims/posix/linux/sync.rs
@@ -30,6 +30,8 @@ pub fn futex<'tcx>(
30
31
// The raw pointer value is used to identify the mutex.
32
// Not all mutex operations actually read from this address or even require this address to exist.
33
+ // This will make FUTEX_WAKE fail on an integer cast to a pointer. But FUTEX_WAIT on
34
+ // such a pointer can never work anyway, so that seems fine.
35
let futex_ptr = this.force_ptr(addr.to_scalar()?)?;
36
37
let thread = this.get_active_thread();
0 commit comments