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 unsound mark_volatile_vars implementation #57131

Merged
merged 1 commit into from
Jan 23, 2025
Merged

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Jan 22, 2025

The previous implementation was incorrect, leading to failing to mark variables correctly. The new implementation is more conservative. This simple analysis assumes that inference has normally run or that performance doesn't matter for a particular block of code.

Fixes #56996

@vtjnash vtjnash added compiler:codegen Generation of LLVM IR and native code backport 1.10 Change should be backported to the 1.10 release backport 1.11 Change should be backported to release-1.11 labels Jan 22, 2025
@gbaraldi
Copy link
Member

Does it make sense to move this code to julia in the future?

@vtjnash
Copy link
Member Author

vtjnash commented Jan 22, 2025

No, this is for bootstrap before we get to Julia code

The previous implementation was incorrect, leading to failing to mark
variables correctly. The new implementation is more conservative. This
simple analysis assumes that inference has normally run or that
performance doesn't matter for a particular block of code.

Fixes #56996
@vtjnash vtjnash merged commit b76fd9f into master Jan 23, 2025
5 of 7 checks passed
@vtjnash vtjnash deleted the jn/56996 branch January 23, 2025 20:02
xal-0 pushed a commit to xal-0/julia that referenced this pull request Jan 24, 2025
The previous implementation was incorrect, leading to failing to mark
variables correctly. The new implementation is more conservative. This
simple analysis assumes that inference has normally run or that
performance doesn't matter for a particular block of code.

Fixes JuliaLang#56996
This was referenced Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.10 Change should be backported to the 1.10 release backport 1.11 Change should be backported to release-1.11 compiler:codegen Generation of LLVM IR and native code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Segfault in jl_is_globally_rooted
2 participants