Skip to content

Commit 59cb24d

Browse files
committed
Auto merge of #3865 - Mandragorian:doc_fixes_pthreads, r=RalfJung
Fix comment in mutex_id_offset We no longer store the kind inside the pthread_mutex_t, so this comment is outdated. Sorry I didn't catch this in the original PR.
2 parents 72aa65b + 4dfafb1 commit 59cb24d

File tree

1 file changed

+0
-1
lines changed
  • src/tools/miri/src/shims/unix

1 file changed

+0
-1
lines changed

Diff for: src/tools/miri/src/shims/unix/sync.rs

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ fn is_mutex_kind_normal<'tcx>(ecx: &MiriInterpCx<'tcx>, kind: i32) -> InterpResu
6262
// pthread_mutex_t is between 24 and 48 bytes, depending on the platform.
6363
// We ignore the platform layout and store our own fields:
6464
// - id: u32
65-
// - kind: i32
6665

6766
fn mutex_id_offset<'tcx>(ecx: &MiriInterpCx<'tcx>) -> InterpResult<'tcx, u64> {
6867
let offset = match &*ecx.tcx.sess.target.os {

0 commit comments

Comments
 (0)