Skip to content

Conversation

@Keno
Copy link
Member

@Keno Keno commented Apr 10, 2025

_jl_invoke has a manually inlined version of jl_method_compiled that was missing the ->owner check. I don't think there's any strong reason to duplicate this code path, so unify them and make sure the ->owner path is there. This fixes an issue where calling CompilerDevTools's with_new_compiler would cause the creation of CodeInstances that would then be dispatched to outside the with_new_compiler context.

@Keno Keno force-pushed the kf/invokeownerfix branch from 3382650 to 9b48a26 Compare April 10, 2025 22:02
`_jl_invoke` has a manually inlined version of `jl_method_compiled`
that was missing the `->owner` check. I don't think there's any
strong reason to duplicate this code path, so unify them and make
sure the `->owner` path is there. This fixes an issue where calling
`CompilerDevTools`'s `with_new_compiler` would cause the creation
of CodeInstances that would then be dispatched to outside the
`with_new_compiler` context.
@Keno Keno force-pushed the kf/invokeownerfix branch from 9b48a26 to 41baa00 Compare April 11, 2025 01:37
@Keno Keno merged commit 92fc06f into master Apr 11, 2025
4 of 7 checks passed
@Keno Keno deleted the kf/invokeownerfix branch April 11, 2025 06:21
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