Skip to content

Take the GIL in sequence and list wrappers#118

Open
Martin-Molinero wants to merge 1 commit into
masterfrom
cherry/gil-sequence-list-wrappers
Open

Take the GIL in sequence and list wrappers#118
Martin-Molinero wants to merge 1 commit into
masterfrom
cherry/gil-sequence-list-wrappers

Conversation

@Martin-Molinero

Copy link
Copy Markdown
Member

Cherry-pick from upstream pythonnet/pythonnet: acquire the GIL in ListWrapper/SequenceWrapper before calling into CPython, matching the GIL-safety the fork already applies to methods/properties/fields. Prevents crashes / heap corruption when .NET enumerates wrapped sequences off the GIL.

  • Upstream commit: pythonnet/pythonnet@698bf009 ("Take the GIL in sequence and list wrappers", by Benedikt Reinartz)
  • Cherry-picked with -x (original authorship preserved). Applied cleanly; builds clean.

🤖 Generated with Claude Code

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.

2 participants