Skip to content

Commit 69bd724

Browse files
author
Vytautas Astrauskas
committed
Add a warning that Miri does not check for data-races.
1 parent b361d98 commit 69bd724

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ program, and cannot run all programs:
4242
* Miri runs the program as a platform-independent interpreter, so the program
4343
has no access to most platform-specific APIs or FFI. A few APIs have been
4444
implemented (such as printing to stdout) but most have not: for example, Miri
45-
currently does not support concurrency, or SIMD, or networking.
45+
currently does not support SIMD or networking.
46+
* Miri currently does not check for data-races and other concurrency related
47+
issues.
4648

4749
[rust]: https://www.rust-lang.org/
4850
[mir]: https://github.com/rust-lang/rfcs/blob/master/text/1211-mir.md

src/shims/foreign_items/posix.rs

+2
Original file line numberDiff line numberDiff line change
@@ -313,6 +313,8 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
313313

314314
// Threading
315315
"pthread_create" => {
316+
println!("WARNING: The thread support is experimental. \
317+
For example, Miri does not detect data races yet.");
316318
assert_eq!(args.len(), 4);
317319
let func = args[2];
318320
let fn_ptr = this.read_scalar(func)?.not_undef()?;

0 commit comments

Comments
 (0)