Add note about use of force_ptr in futex implementation.
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
dfcb46a4e0
commit
c268ee2bcb
1 changed files with 2 additions and 0 deletions
|
|
@ -30,6 +30,8 @@ pub fn futex<'tcx>(
|
|||
|
||||
// The raw pointer value is used to identify the mutex.
|
||||
// Not all mutex operations actually read from this address or even require this address to exist.
|
||||
// This will make FUTEX_WAKE fail on an integer cast to a pointer. But FUTEX_WAIT on
|
||||
// such a pointer can never work anyway, so that seems fine.
|
||||
let futex_ptr = this.force_ptr(addr.to_scalar()?)?;
|
||||
|
||||
let thread = this.get_active_thread();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue