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

Require method ownership #154

Merged
merged 1 commit into from
Nov 25, 2020
Merged

Require method ownership #154

merged 1 commit into from
Nov 25, 2020

Conversation

timholy
Copy link
Owner

@timholy timholy commented Nov 25, 2020

Based on poking around Julia's src/dump.c, it's my understanding
that a disconnected (backedge-free) MethodInstance needs to be
cached in the module owning the Method.
The implication is that Base methods that get called on
package-defined objects cannot be cached on their own merits, so we
should exclude such MethodInstances.

The way to fix this is to make such calls inferrable,
in which case they will be cached in the package module thanks to
their backedges.

Based on poking around Julia's `src/dump.c`, it's my understanding
that a *disconnected* (backedge-free) `MethodInstance` needs to be
cached in the module owning the `Method`.
The implication is that Base methods that get called on
package-defined objects cannot be cached on their own merits, so we
should exclude such `MethodInstance`s.

The way to fix this is to make such calls inferrable,
in which case they will be cached in the package module thanks to
their backedges.
@timholy timholy merged commit 65b4924 into master Nov 25, 2020
@timholy timholy deleted the teh/ownership branch November 25, 2020 16:03
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.

1 participant