Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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

Provide feedback

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

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Get the "Current" Thread State from a Thread-local #103323

Closed
Labels
3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement
@ericsnowcurrently

Description

@ericsnowcurrently

(This is a revival ofgh-84702, which@vstinner worked on several years ago.)

For a per-interpreter GIL (PEP 684) we need to start storing the "current" thread state in a thread-local variable, rather than_PyRuntime.tstate_current. There may be other benefits to the approach if we can take advantage of native compiler support (e.g. C11's__thread_local).

Also seehttps://discuss.python.org/t/how-to-get-the-current-thread-state/22655.

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.12only security fixesinterpreter-core(Objects, Python, Grammar, and Parser dirs)type-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp