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

Use LLVM in a threadsafe fashion #7040

Closed

Conversation

alexcrichton
Copy link
Member

This is a reopening of #6570, and almost fixes #6511.

Note that this doesn't actually enable building a threadsafe LLVM, because that will require an LLVM rebuild which will be bundled with the upgrades in #6713.

What this does do, however, is removes all thread-unsafe usage of LLVM from the compiler.

This allows parallel usage of the rustc library
Also stop leaking the ExecutionEngine created for jit code by forcibly disposing
of it after the JIT code has finished executing
bors added a commit that referenced this pull request Jun 11, 2013
…=graydon

This is a reopening of #6570, and almost fixes #6511.

Note that this doesn't actually enable building a threadsafe LLVM, because that will require an LLVM rebuild which will be bundled with the upgrades in #6713.

What this does do, however, is removes all thread-unsafe usage of LLVM from the compiler.
@alexcrichton
Copy link
Member Author

@catamorphism, does this look like a similar error to #7006? Running this locally everything passes just fine, so could bors retry this?

@catamorphism
Copy link
Contributor

@alexcrichton Yeah, could be a race condition in that test :-(

bors added a commit that referenced this pull request Jun 11, 2013
…=graydon

This is a reopening of #6570, and almost fixes #6511.

Note that this doesn't actually enable building a threadsafe LLVM, because that will require an LLVM rebuild which will be bundled with the upgrades in #6713.

What this does do, however, is removes all thread-unsafe usage of LLVM from the compiler.
@bors bors closed this Jun 11, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 14, 2022
new lint that detects useless match expression

fixes rust-lang#7040

changelog: Add new  lint [`needless_match`] under complexity lint group
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants