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

Bugfix: Memory leak in diff plugin #3555

Merged
merged 5 commits into from
Jun 12, 2024
Merged

Bugfix: Memory leak in diff plugin #3555

merged 5 commits into from
Jun 12, 2024

Conversation

scudette
Copy link
Contributor

The diff plugin did not run each iteration in an isolated scope so cleanup destructors where not being called.

Additionally registry cache was not installed in the root scope which limited its usefulness in sub queries mostly leading to cache misses.

The default behaviour of TTL cache is to extend the ttl on each Get() operation. This is hardly ever what we want because then some cached items will never expire.

The diff plugin did not run each iteration in an isolated scope so
cleanup destructors where not being called.

Additionally registry cache was not installed in the root scope which
limited its usefulness in sub queries mostly leading to cache misses.

The default behaviour of TTL cache is to extend the ttl on each Get()
operation. This is hardly ever what we want because then some cached
items will never expire.
@scudette scudette merged commit 13fa842 into master Jun 12, 2024
3 checks passed
@scudette scudette deleted the diff branch June 12, 2024 08:18
scudette added a commit that referenced this pull request Jun 30, 2024
The diff plugin did not run each iteration in an isolated scope so
cleanup destructors where not being called.

Additionally registry cache was not installed in the root scope which
limited its usefulness in sub queries mostly leading to cache misses.

The default behaviour of TTL cache is to extend the ttl on each Get()
operation. This is hardly ever what we want because then some cached
items will never expire.
scudette added a commit that referenced this pull request Jun 30, 2024
The diff plugin did not run each iteration in an isolated scope so
cleanup destructors where not being called.

Additionally registry cache was not installed in the root scope which
limited its usefulness in sub queries mostly leading to cache misses.

The default behaviour of TTL cache is to extend the ttl on each Get()
operation. This is hardly ever what we want because then some cached
items will never expire.
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.

None yet

1 participant