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

Lock cfunction trampoline cache and freelist accesses. #39621

Merged
merged 2 commits into from
Feb 13, 2021

Conversation

maleadt
Copy link
Member

@maleadt maleadt commented Feb 11, 2021

Fixes #38709. Only a lock around cache accesses wasn't sufficient though, and I could trigger segfaults during freelist accesses, e.g., JuliaGPU/CUDA.jl#707 (comment). So also fixes JuliaGPU/CUDA.jl#707.

@maleadt maleadt added the domain:multithreading Base.Threads and related functionality label Feb 11, 2021
@maleadt maleadt requested a review from vtjnash February 11, 2021 16:15
@maleadt maleadt added backport 1.6 Change should be backported to release-1.6 kind:bugfix This change fixes an existing bug labels Feb 11, 2021
Copy link
Sponsor Member

@vtjnash vtjnash left a comment

Choose a reason for hiding this comment

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

SGTM. Can you uncomment the threads test?

@vchuravy vchuravy merged commit 6468dcb into master Feb 13, 2021
@vchuravy vchuravy deleted the tb/lock_cfunction_trampoline branch February 13, 2021 02:44
KristofferC pushed a commit that referenced this pull request Feb 17, 2021
Co-authored-by: Valentin Churavy <[email protected]>
(cherry picked from commit 6468dcb)
@KristofferC KristofferC mentioned this pull request Feb 17, 2021
52 tasks
@KristofferC KristofferC removed the backport 1.6 Change should be backported to release-1.6 label Mar 14, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
staticfloat pushed a commit that referenced this pull request Dec 23, 2022
Co-authored-by: Valentin Churavy <[email protected]>
(cherry picked from commit 6468dcb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
domain:multithreading Base.Threads and related functionality kind:bugfix This change fixes an existing bug
Projects
None yet
5 participants