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

fix generated_body_to_codeinfo to avoid string (which is not always defined) #57925

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vtjnash
Copy link
Member

@vtjnash vtjnash commented Mar 28, 2025

Fixes a discrepancy between the code in C before #57230 and in Julia afterwards, making sure to sequence these method definitions correctly. Not sure how to write a reliable test since it is specific to when this generated function is defined relative to the helpers used by this thunk, but the issue/fix is visible with:

$ ./julia -e 'code_lowered(ntuple, (Returns{Nothing}, Val{1000000}))'

Fix #57301

…efined)

Fixes a discrepancy between the code in C before #57230 and in Julia
afterwards, making sure to sequence these definitions correctly. Not
sure how to write a reliable test since it is specific to when this
generated function is defined relative to the helpers used by this
thunk, but the issue/fix is visible with:

```
$ ./julia -e 'code_lowered(ntuple, (Returns{Nothing}, Val{1000000}))'
```
@vtjnash vtjnash added the backport 1.12 Change should be backported to release-1.12 label Mar 28, 2025
@Keno
Copy link
Member

Keno commented Mar 28, 2025

Can we add a test that we get the right error?

@KristofferC KristofferC mentioned this pull request Mar 31, 2025
36 tasks
@vtjnash
Copy link
Member Author

vtjnash commented Apr 1, 2025

I wasn't certain how, without testing/relying pretty heavily on what seemed like implementation details, since this seemed pretty specifically an implementation issue with just the ntuple implementation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 1.12 Change should be backported to release-1.12
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(spurious?) global binding world age warning involving function that returns a huge tuple
2 participants