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

[3.15] gh-152635: Raise MemoryError when the lock allocation fails in `_interpchannels.create()` (GH-152642) by miss-islington · Pull Request #152671 · python/cpython · GitHub

/ cpython Public

[3.15] gh-152635: Raise MemoryError when the lock allocation fails in _interpchannels.create() (GH-152642) - #152671

Merged
sobolevn merged 1 commit into
python:3.15from
miss-islington:backport-b383aa6-3.15
Jun 30, 2026
Merged

[3.15] gh-152635: Raise MemoryError when the lock allocation fails in _interpchannels.create() (GH-152642)#152671
sobolevn merged 1 commit into
python:3.15from
miss-islington:backport-b383aa6-3.15

Conversation

miss-islington commented Jun 30, 2026
edited by bedevere-app Bot
Loading

Copy link
Copy Markdown
Contributor

Previously, an allocation failure when creating
the lock for a channel in _interpchannels would trigger an assert.
Caused by handle_channel_error being passed an error code of -1
which is only allowed if an exception has been set.
(in this case, no exception was set)

channelsmod_create now forwards the error code from channel_create
which handle_channel_error already handled.
(cherry picked from commit b383aa6)

Co-authored-by: Steve Stagg stestagg@gmail.com
Co-authored-by: sobolevn mail@sobolevn.me

…`_interpchannels.create()` (pythonGH-152642)

Previously, an allocation failure when creating
the lock for a channel in `_interpchannels` would trigger an assert.
Caused by `handle_channel_error` being passed an error code of -1
which is only allowed if an exception has been set.
(in this case, no exception was set)

`channelsmod_create` now forwards the error code from `channel_create`
which `handle_channel_error` already handled.
(cherry picked from commit b383aa6)

Co-authored-by: Steve Stagg <stestagg@gmail.com>
Co-authored-by: sobolevn <mail@sobolevn.me>
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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants


Back | FazBrowse Home | New Git URL