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

[release-1.5] threads: avoid deadlock from recursive lock acquire (PR #38487) #38753

Merged
merged 1 commit into from
Dec 10, 2020

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Dec 7, 2020

Finalizers can't safely acquire many essential locks (such as the
iolock, to cleanup libuv objects) if they are run inside another lock.
Therefore, inhibit all finalizers on the thread until all locks are
released (previously, this was only true for our internal locks).

(cherry-picked from 59aedd1)

@NHDaly
Copy link
Member

NHDaly commented Dec 7, 2020

Thanks Jameson!

Finalizers can't safely acquire many essential locks (such as the
iolock, to cleanup libuv objects) if they are run inside another lock.
Therefore, inhibit all finalizers on the thread until all locks are
released (previously, this was only true for our internal locks).

(cherry-picked from 59aedd1)
@vtjnash vtjnash force-pushed the jn/backport-v1.5-lock-finalizers branch from 9d7db10 to 1aa4848 Compare December 8, 2020 16:47
@vtjnash vtjnash merged commit ebcc603 into release-1.5 Dec 10, 2020
@vtjnash vtjnash deleted the jn/backport-v1.5-lock-finalizers branch December 10, 2020 15:29
@vchuravy vchuravy mentioned this pull request Jan 21, 2021
27 tasks
vchuravy pushed a commit to JuliaLang/Distributed.jl that referenced this pull request Oct 6, 2023
…ia#38487) (JuliaLang/julia#38753)

Finalizers can't safely acquire many essential locks (such as the
iolock, to cleanup libuv objects) if they are run inside another lock.
Therefore, inhibit all finalizers on the thread until all locks are
released (previously, this was only true for our internal locks).

(cherry-picked from ec8466b)
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