Skip to content

Change the implementation of supports_parallel to signal tha cg_gcc is not thread safe. - #732

Merged
antoyo merged 1 commit into
rust-lang:masterfrom
FractalFir:thread_soundness_fix
Jul 9, 2025
Merged

Change the implementation of supports_parallel to signal tha cg_gcc is not thread safe.#732
antoyo merged 1 commit into
rust-lang:masterfrom
FractalFir:thread_soundness_fix

Conversation

@FractalFir

Copy link
Copy Markdown
Contributor

This explicitly disables multithreading in cg_gcc. libgccjit is not thread-safe, and this option should not have been accidentally enabled in the first place.

Comment thread src/lib.rs Outdated
@FractalFir
FractalFir force-pushed the thread_soundness_fix branch from 25ae4e6 to 63c53fc Compare July 8, 2025 20:56
@FractalFir

Copy link
Copy Markdown
Contributor Author

Ready for review.

@antoyo antoyo left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find!
Thanks for making this PR.

Comment thread src/lib.rs
@FractalFir
FractalFir force-pushed the thread_soundness_fix branch 2 times, most recently from 8e6e2dc to 94fa5fe Compare July 9, 2025 18:28
@FractalFir
FractalFir force-pushed the thread_soundness_fix branch from 94fa5fe to 2961464 Compare July 9, 2025 18:29
@FractalFir

Copy link
Copy Markdown
Contributor Author

Ready for review

@antoyo
antoyo merged commit 86f5318 into rust-lang:master Jul 9, 2025
@antoyo

antoyo commented Jul 9, 2025

Copy link
Copy Markdown
Contributor

Thanks a lot for your contribution!

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.

3 participants