Skip to content

Commit

Permalink
explain windows sync layouts
Browse files Browse the repository at this point in the history
  • Loading branch information
beepster4096 committed Jun 3, 2023
1 parent 9d1d651 commit 7380a4d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/tools/miri/src/shims/windows/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ trait EvalContextExtPriv<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
Ok(())
}

// Windows sync primitives are pointer sized.
// We only use the first 4 bytes for the id.

fn srwlock_get_id(
&mut self,
rwlock_op: &OpTy<'tcx, Provenance>,
Expand Down

0 comments on commit 7380a4d

Please sign in to comment.