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

util: store thread assigned id in thread-local storage #2003

Closed
wants to merge 1 commit into from
Closed

util: store thread assigned id in thread-local storage #2003

wants to merge 1 commit into from

Conversation

rkojedzinszky
Copy link
Contributor

Fixes #2002

@bitprophet
Copy link
Member

Thanks! Looks like this only actually impacts that log_to_file function, which I suppose some users are referencing, but of course the practical effect is that it bloats memory for ALL users. Works for me under Python 2 and 3 (wasn't sure when threadlocals grew an 'id' attribute - not seeing it in a trivial test, but it's clearly working in the real...).

bitprophet added a commit that referenced this pull request Mar 18, 2022
bitprophet added a commit that referenced this pull request Mar 18, 2022
@bitprophet
Copy link
Member

Cherry-picked into 2.10 tree.

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.

Memory leak with long-running processes
2 participants