Comments (1)
As discussed on Zulip, it would probably make sense to use mio
on the Miri side here. Fundamentally, the primitives we need are:
- each time the active thread yields, do a non-blocking poll on a set of host sockets -- that's generalizing what we already do here where we check whether there's a timer we need to fire
- if all Miri threads are blocked, do a blocking poll on a set of host sockets (potentially with a timeout) -- that's generalizing what we do here and here where we just sleep until the next timeout expires
The hope is that mio would give us both of these in a platform-independent way, so that we can run on Windows hosts. (Note that this issue is only about Unix targets, using the typical POSIX socket API. Support for sockets on Windows targets is out-of-scope here. But if possible we should support running Unix targets on Windows hosts, as we already do with file system access.)
from miri.
Related Issues (20)
- Implement blocking support for eventfd and socketpair HOT 6
- Memory-reusing custom allocator fails in miri HOT 1
- Use strict_{add,sub,...} instead of checked_{add,sub,...}.unwrap()
- Support setting Miri flags in the rustc file via attributes HOT 2
- Calling a method on `&mut Box<T>` is not detected as a Unique retag HOT 6
- mention MIRIFLAGS in unsupported operation error and --help HOT 1
- FreeBSD: clean up readdir_r
- Trying to allocate isize::MAX + 1 bytes ICEs Miri HOT 1
- Trying to SeekFrom::Start past i64::MAX ICEs Miri
- Attempting to allocate with alignment greater than 2^29 ICEs Miri HOT 1
- Remove dead Intel intrinsics
- ICE for wcslen on Windows HOT 9
- Miri does not complain about use-after-move HOT 1
- ./miri.bat silently exits unconditionally HOT 2
- terminal APIs not supported: can't call foreign function `ioctl` on OS `linux` HOT 3
- #[used] statics in the local crate are not found
- Support atexit, and detect racy calls to `exit` as UB
- unsupported operation: can't call foreign function `posix_spawnattr_init` on OS `macos` HOT 2
- [Question] About option to skip Inline assembly HOT 3
- Implement `gettid` HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miri.