You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The native_thread_id field of PyThreadState is not updated after fork #100649
The native_thread_id field of the PyThreadState object is not updated after a fork on Linux (at least). This means that child processes spawned by the main thread of the parent process will have a main thread with the parent thread ID.
The native_thread_id is meant to be consumed by tools like Austin and therefore the behaviour is easily observed with these tools. One way to reproduce this is to profile this with Austin
Activity
gh-100649: Update native_thread_id after fork (gh-100650)
pythongh-100649: Update native_thread_id after fork (pythongh-100650)
gh-100649: Update native_thread_id after fork (gh-100650)