FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.7] bpo-32710: Fix _overlapped.Overlapped memory leaks (GH-11489) by miss-islington · Pull Request #11519 · python/cpython · GitHub

Repository navigation

[3.7] bpo-32710: Fix _overlapped.Overlapped memory leaks (GH-11489) - #11519

Merged
miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-5485085-3.7
Jan 11, 2019
Merged

miss-islington merged 1 commit into
python:3.7from
miss-islington:backport-5485085-3.7

Conversation

miss-islington commented Jan 11, 2019 •
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Contributor

Fix memory leaks in asyncio ProactorEventLoop on overlapped operation
failures.

Changes:

  • Implement the tp_traverse slot in the _overlapped.Overlapped type
    to help to break reference cycles and identify referrers in the
    garbage collector.
  • Always clear overlapped on failure: not only set type to
    TYPE_NOT_STARTED, but release also resources.
    (cherry picked from commit 5485085)

Co-authored-by: Victor Stinner vstinner@redhat.com

https://bugs.python.org/issue32710

Fix memory leaks in asyncio ProactorEventLoop on overlapped operation
failures.

Changes:

* Implement the tp_traverse slot in the _overlapped.Overlapped type
  to help to break reference cycles and identify referrers in the
  garbage collector.
* Always clear overlapped on failure: not only set type to
  TYPE_NOT_STARTED, but release also resources.
(cherry picked from commit 5485085)

Co-authored-by: Victor Stinner <vstinner@redhat.com>

vstinner left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

LGTM, good bot.

Copy link
Copy Markdown
Contributor Author

@vstinner: Status check is done, and it's a success ✅ .

miss-islington merged commit 059997d into python:3.7 Jan 11, 2019
miss-islington deleted the backport-5485085-3.7 branch January 11, 2019 14:01
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants


Back | FazBrowse Home | New Git URL