Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix memory leak in finalizer#836

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

Martin-Molinero
Copy link
Contributor

What does this implement/fix? Explain your changes.

  • finalizer was leaking_pendingArgs (global memory) when the call
    toPy_AddPendingCall was unsuccessful.
  • Changinglock forMonitor.TryEnter atAddPendingCollect() so
    threads don't block each other.

Does this close any currently open issues?

...

Any other comments?

...

Checklist

Check all those that are applicable and complete.

  • Make sure to include one or more tests for your change
  • If an enhancement PR, please create docs and at best an example
  • Add yourself toAUTHORS
  • Updated theCHANGELOG

- `finalizer` was leaking `_pendingArgs` (global memory) when the callto `Py_AddPendingCall` was unsuccessful.- Changing `lock` for `Monitor.TryEnter` at `AddPendingCollect()` sothreads don't block each other.
@filmorfilmor merged commit4919915 intopythonnet:masterApr 2, 2019
@filmor
Copy link
Member

Thank you very much for this, I was already starting to rebase the PR from the fork :)

@Martin-Molinero
Copy link
ContributorAuthor

Sure! thank you, happy to help :)

@Martin-MolineroMartin-Molinero deleted the fix-for-memory-leak-finalizer branchAugust 27, 2019 20:40
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@Martin-Molinero@filmor

[8]ページ先頭

©2009-2025 Movatter.jp