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

Free up memory at the end of scope #2798

Closed
wants to merge 3 commits into from

Conversation

advikkabra
Copy link
Collaborator

Free lists, dictionaries and sets when they go out of scope. This is not complete, as there are still some places where memory is being leaked.

@certik
Copy link
Contributor

certik commented Aug 9, 2024

This is freeing some memory used by the compiler, correct?

There is a separate issue of freeing the memory at runtime, and that should be fixed by explicit ASR support for finalization: lfortran/lfortran#3770 (comment).

@advikkabra
Copy link
Collaborator Author

Yes, this is memory freeing at runtime. I did not know about the explicit ASR support, so this PR can be finished when that ASR support is ready.

@advikkabra advikkabra closed this Aug 11, 2024
@certik
Copy link
Contributor

certik commented Aug 11, 2024

It would be good though to work on that, if you want to give it a shot, that would be awesome.

@advikkabra
Copy link
Collaborator Author

I'll try my hand at it.

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