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

prevent deadlock when releasing the jl_unique_gcsafe_lock causes gc #56563

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Nov 14, 2024

Caught this by running threads test repeatedly locally: the sweep needs to acquire engine_lock, so we need to make sure to release that first (the other jl_unique_gcsafe_lock users shouldn't care about this ordering since they don't acquire their locks during sweeping)

@vtjnash vtjnash added the multithreading Base.Threads and related functionality label Nov 14, 2024
@vtjnash vtjnash requested a review from gbaraldi November 14, 2024 18:29
@vtjnash vtjnash merged commit 100e305 into master Nov 14, 2024
5 of 8 checks passed
@vtjnash vtjnash deleted the jn/engine-lock-gcsweep branch November 14, 2024 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
multithreading Base.Threads and related functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants