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

opaque_closure: Properly set world for OC from inferred CodeInfo #49029

Merged
merged 1 commit into from
Mar 17, 2023

Conversation

Keno
Copy link
Member

@Keno Keno commented Mar 16, 2023

For OpaqueClosures constructed from inferred code, there is only one valid age. We were incorrectly setting the primary world age of the method to 1, rather than the construction world age of the opaque closure, causing codegen to fail to emit direct calls for :invoke'd statements.

For OpaqueClosures constructed from inferred code, there is only
one valid age. We were incorrectly setting the primary world age
of the method to `1`, rather than the construction world age of
the opaque closure, causing codegen to fail to emit direct calls
for :invoke'd statements.
@Keno Keno requested a review from JeffBezanson March 17, 2023 17:47
@Keno Keno merged commit 4486bc4 into master Mar 17, 2023
@Keno Keno deleted the kf/ocworld branch March 17, 2023 22:17
oscardssmith pushed a commit to oscardssmith/julia that referenced this pull request Mar 20, 2023
…iaLang#49029)

For OpaqueClosures constructed from inferred code, there is only
one valid age. We were incorrectly setting the primary world age
of the method to `1`, rather than the construction world age of
the opaque closure, causing codegen to fail to emit direct calls
for :invoke'd statements.
Xnartharax pushed a commit to Xnartharax/julia that referenced this pull request Apr 19, 2023
…iaLang#49029)

For OpaqueClosures constructed from inferred code, there is only
one valid age. We were incorrectly setting the primary world age
of the method to `1`, rather than the construction world age of
the opaque closure, causing codegen to fail to emit direct calls
for :invoke'd statements.
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.

2 participants