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

build inst request binding cursors from signature invocation #570

Merged
merged 7 commits into from
Feb 17, 2025

Conversation

metagn
Copy link
Collaborator

@metagn metagn commented Feb 17, 2025

follows up #566

The inferred table passed to requestRoutineInstance is added to global memory, hence every type cursor included in it also has to be in global memory. To ensure this, we rebuild the cursors from the added invocation node in the signature, so that the cursors live as long as the signature does.

Another way might be to ensure everything saved to inferred in sigmatch passes through typeToCursor, but maybe this would be slower.

@Araq Araq merged commit d4d4717 into nim-lang:master Feb 17, 2025
3 checks passed
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