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

Allow GIL state debugging; require GILState to be properly disposed by lostmsu · Pull Request #1397 · pythonnet/pythonnet · GitHub

Allow GIL state debugging; require GILState to be properly disposed - #1397

Merged
lostmsu merged 1 commit into
pythonnet:masterfrom
losttech:GIL-Threading
Mar 10, 2021
Merged

Allow GIL state debugging; require GILState to be properly disposed#1397
lostmsu merged 1 commit into
pythonnet:masterfrom
losttech:GIL-Threading

Conversation

lostmsu commented Feb 24, 2021

Copy link
Copy Markdown
Member

What does this implement/fix? Explain your changes.

PyGILState_Release must always be called from the same thread, that called PyGILState_Acquire. Which means it is illegal to try to dispose GILState from .NET finalizer thread.

See the following thread #1389 (comment)

filmor commented Mar 10, 2021

Copy link
Copy Markdown
Member

Is there any particular reason why we shouldn't just do this unconditionally?

lostmsu commented Mar 10, 2021

Copy link
Copy Markdown
Member Author

I am concerned about performance. Once we get perf tests back online, I'd compare.

lostmsu merged commit 1e5338f into pythonnet:master Mar 10, 2021
lostmsu deleted the GIL-Threading branch March 10, 2021 21:38
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.

2 participants


Back | FazBrowse Home | New Git URL