Skip to content

Commit 662fd14

Browse files
committed
add fixme comment
1 parent 070a94a commit 662fd14

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/shims/unix/sync.rs

+2
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ fn mutex_id_offset<'tcx>(ecx: &MiriInterpCx<'tcx>) -> InterpResult<'tcx, u64> {
7474

7575
// Sanity-check this against PTHREAD_MUTEX_INITIALIZER (but only once):
7676
// 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.
7779
static SANITY: AtomicBool = AtomicBool::new(false);
7880
if !SANITY.swap(true, Ordering::Relaxed) {
7981
let static_initializer = ecx.eval_path(&["libc", "PTHREAD_MUTEX_INITIALIZER"]);

0 commit comments

Comments
 (0)