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

Reduce memory usage when LLVM is enabled. #1535

Merged
merged 1 commit into from
Oct 4, 2024

Conversation

MarkMankins
Copy link
Collaborator

Function pass manager objects were being created, but never destroyed.

When a function pass manager object is destroyed, it destroys all pass objects that have been registered. Previously pass objects were being reused, which is why the pass managers were never being freed, but this results in a large memory leak. This commit shuffles things around so the pass managers can be freed.

a891

Function pass manager objects were being created, but never destroyed.

When a function pass manager object is destroyed, it destroys all pass
objects that have been registered.  Previously pass objects were being
reused, which is why the pass managers were never being freed, but this
results in a large memory leak.  This commit shuffles things around so
the pass managers can be freed.

a891
@MarkMankins MarkMankins marked this pull request as ready for review October 2, 2024 13:15
@AndrewFasano AndrewFasano merged commit a103cd5 into panda-re:dev Oct 4, 2024
4 of 5 checks passed
@AndrewFasano
Copy link
Contributor

Thanks Mark!

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