← 返回首页
bpo-40522: Use PyThreadState_Get() in _lsprof.c by corona10 · Pull Request #24596 · python/cpython · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

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

Provide feedback

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

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

bpo-40522: Use PyThreadState_Get() in _lsprof.c#24596

Closed
corona10 wants to merge 1 commit into
python:masterfrom
corona10:bpo-40522
Closed

bpo-40522: Use PyThreadState_Get() in _lsprof.c#24596
corona10 wants to merge 1 commit into
python:masterfrom
corona10:bpo-40522

Conversation

corona10 commented Feb 20, 2021
edited by bedevere-bot
Loading

Copy link
Copy Markdown
Member

Copy link
Copy Markdown
Member

In commit 6207810, I wanted to clarify that the function is used in practice rather than the macro in public Python header files. But in _lsprof, I suggest either to leave it unchanged, or switch to faster _PyThreadState_GET() which is always inlined.

Copy link
Copy Markdown
Member Author

@vstinner Got it, Okay let's leave it to be unchanged ;)

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

Footer

© 2026 GitHub, Inc.