Skip to content

Commit d537ab9

Browse files
committed
explain windows sync layouts
1 parent c6eec52 commit d537ab9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/shims/windows/sync.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@ trait EvalContextExtPriv<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
3838
Ok(())
3939
}
4040

41+
// Windows sync primitives are pointer sized.
42+
// We only use the first 4 bytes for the id.
43+
4144
fn srwlock_get_id(
4245
&mut self,
4346
rwlock_op: &OpTy<'tcx, Provenance>,

0 commit comments

Comments
 (0)