Skip to content

Conversation

@vtjnash
Copy link
Member

@vtjnash vtjnash commented May 21, 2025

We only put debuginfo here if we ran the optimizer, so if there isn't debuginfo here, then we either didn't run the optimizer or were the result of const-prop. In the former case, we don't need to invalidate the code for instrumentation (it cannot have code from it). In the later case, we should already have an edge from the non-const-prop result. This only matters for generated functions, since otherwise we have Method's source's accurate debuginfo already and this is just a duplicate reference to it.

Fix #58227

We only put debuginfo here if we ran the optimizer, so if there isn't
debuginfo here, then we either didn't run the optimizer or were the
result of const-prop. In the former case, we don't need to invalidate
the code for instrumentation (it cannot have code from it). In the later
case, we should already have an edge from the non-const-prop result.
This only matters for generated functions, since otherwise we have
Method's source's accurate debuginfo already and this is just a
duplicate reference to it.

Fix #58227
@vtjnash vtjnash added the backport 1.12 Change should be backported to release-1.12 label May 21, 2025
@Keno
Copy link
Member

Keno commented May 22, 2025

Is there an easy test for this we can add?

@vtjnash vtjnash merged commit d5442db into master May 27, 2025
5 of 8 checks passed
@vtjnash vtjnash deleted the jn/58227 branch May 27, 2025 14:39
@vtjnash
Copy link
Member Author

vtjnash commented May 27, 2025

Not that I know of. I didn't write up a reproducer, just logged the details of what failed, made the patch and confirmed it didn't fail

@KristofferC KristofferC mentioned this pull request May 28, 2025
58 tasks
KristofferC pushed a commit that referenced this pull request May 28, 2025
We only put debuginfo here if we ran the optimizer, so if there isn't
debuginfo here, then we either didn't run the optimizer or were the
result of const-prop. In the former case, we don't need to invalidate
the code for instrumentation (it cannot have code from it). In the later
case, we should already have an edge from the non-const-prop result.
This only matters for generated functions, since otherwise we have
Method's source's accurate debuginfo already and this is just a
duplicate reference to it.

Fix #58227

(cherry picked from commit d5442db)
@KristofferC KristofferC removed the backport 1.12 Change should be backported to release-1.12 label Jun 4, 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.

Access to undefined reference in verify_method

4 participants