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

TMemoCache refactor + double assign race condition fix #321

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

madMAx43v3r
Copy link
Contributor

@madMAx43v3r madMAx43v3r commented Jan 10, 2022

TMemoCache also has a similar global init race condition where the tables are computed by multiple threads in parallel and then assigned multiple times, whereby leaking memory (albeit only once).
This PR fixes that, among a little refactoring + thread safety for the destructor to avoid crashes in rare cases.

@github-actions
Copy link

'This PR has been flagged as stale due to no activity for over 60
days. It will not be automatically closed, but it has been given
a stale-pr label and should be manually reviewed.'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant