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

codegen: fix gc rooting bug #51744

Merged
merged 2 commits into from
Oct 18, 2023
Merged

codegen: fix gc rooting bug #51744

merged 2 commits into from
Oct 18, 2023

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Oct 17, 2023

ccall was not creating roots for the contents of struct values which contained roots on the stack, as expected to align with GC.@preserve, and causing many segfaults for #51319

ccall was not creating roots for the contents of struct values which
contained roots on the stack, as expected to align with `GC.@preserve`
@vtjnash vtjnash added compiler:codegen Generation of LLVM IR and native code backport 1.10 Change should be backported to the 1.10 release labels Oct 17, 2023
test/compiler/codegen.jl Outdated Show resolved Hide resolved
@vtjnash vtjnash added the merge me PR is reviewed. Merge when all tests are passing label Oct 17, 2023
@vtjnash vtjnash merged commit e36f65f into master Oct 18, 2023
5 of 7 checks passed
@vtjnash vtjnash deleted the jn/ccall-struct-roots branch October 18, 2023 13:54
@oscardssmith oscardssmith removed the merge me PR is reviewed. Merge when all tests are passing label Oct 18, 2023
KristofferC pushed a commit that referenced this pull request Oct 23, 2023
ccall was not creating roots for the contents of struct values which
contained roots on the stack, as expected to align with `GC.@preserve`,
and causing many segfaults for #51319

(cherry picked from commit e36f65f)
@KristofferC KristofferC removed the backport 1.10 Change should be backported to the 1.10 release label Nov 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler:codegen Generation of LLVM IR and native code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants