Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miri should support concurrency #811

Closed
RalfJung opened this issue Jun 30, 2019 · 3 comments
Closed

Miri should support concurrency #811

RalfJung opened this issue Jun 30, 2019 · 3 comments
Labels
A-concurrency Area: affects our concurrency (multi-thread) support A-interpreter Area: affects the core interpreter C-proposal Category: a proposal for something we might want to do, or maybe not; details still being worked out

Comments

@RalfJung
Copy link
Member

Miri currently does not support spawning threads. Would be nice if it did! This seems like a big project though.

Notice that this is about concurrency, not parallelism. So the Miri interpreter can remain single-threaded for this, it "just" has to support multiple interpreted threads each with their own stack, and then have a scheduler to pick which one to choose next.

Beyond the implementation effort, other issues that arise is: can we sometimes or even reliably detect UB due to data races? And how does Stacked Borrows fare with concurrency?

@RalfJung RalfJung added A-interpreter Area: affects the core interpreter C-proposal Category: a proposal for something we might want to do, or maybe not; details still being worked out labels Jun 30, 2019
@RalfJung
Copy link
Member Author

@christianpoveda @vakaras you both privately told me you were working on this. I figured I'd probably tell you both before too much work gets duplicated. ;)

@RalfJung RalfJung added the A-concurrency Area: affects our concurrency (multi-thread) support label Apr 27, 2020
@Aaron1011
Copy link
Member

Can this issue be closed, or is there still more work to do?

@RalfJung
Copy link
Member Author

We have A-concurrency Area: affects our concurrency (multi-thread) support for the remaining open issues around concurrency, so this one can likely be closed -- thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-concurrency Area: affects our concurrency (multi-thread) support A-interpreter Area: affects the core interpreter C-proposal Category: a proposal for something we might want to do, or maybe not; details still being worked out
Projects
None yet
Development

No branches or pull requests

2 participants