We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 070a94a commit 662fd14Copy full SHA for 662fd14
src/shims/unix/sync.rs
@@ -74,6 +74,8 @@ fn mutex_id_offset<'tcx>(ecx: &MiriInterpCx<'tcx>) -> InterpResult<'tcx, u64> {
74
75
// Sanity-check this against PTHREAD_MUTEX_INITIALIZER (but only once):
76
// the id must start out as 0.
77
+ // FIXME on some platforms (e.g linux) there are more static initializers for
78
+ // recursive or error checking mutexes. We should also add thme in this sanity check.
79
static SANITY: AtomicBool = AtomicBool::new(false);
80
if !SANITY.swap(true, Ordering::Relaxed) {
81
let static_initializer = ecx.eval_path(&["libc", "PTHREAD_MUTEX_INITIALIZER"]);
0 commit comments