Skip to content

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

@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

@Keno
Copy link
Member

Keno commented Apr 2, 2025

I think just doing the code_lowered(ntuple, (Returns{Nothing}, Val{1000000})) test is fine - might be an implementation detail, but it does reproduce the behavior.

…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 merge me PR is reviewed. Merge when all tests are passing label Apr 2, 2025
@IanButterworth IanButterworth merged commit a3c48d7 into master Apr 4, 2025
8 checks passed
@IanButterworth IanButterworth deleted the jn/57301 branch April 4, 2025 02:13
@oscardssmith oscardssmith removed the merge me PR is reviewed. Merge when all tests are passing label Apr 4, 2025
KristofferC pushed a commit that referenced this pull request Apr 4, 2025
… defined) (#57925)

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

(cherry picked from commit a3c48d7)
@KristofferC KristofferC mentioned this pull request Apr 4, 2025
51 tasks
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Apr 25, 2025
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.

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

5 participants