Skip to content

Conversation

@hyongtao-code
Copy link
Contributor

@hyongtao-code hyongtao-code commented Jan 4, 2026

Fix inverted mapping between all_threads and only_active_thread in the non-free-threaded RemoteUnwinder code path.

Add a regression test to ensure the correct behavior.

sysconfig.get_config_var("Py_GIL_DISABLED") may be defined as 0 on non-free-threaded builds. The previous check used is not None, which incorrectly treated Py_GIL_DISABLED=0 as a free-threaded build.

`sysconfig.get_config_var("Py_GIL_DISABLED")` may be defined as 0 on
non-free-threaded builds. The previous check used `is not None`, which
incorrectly treated `Py_GIL_DISABLED=0` as a free-threaded build.

Signed-off-by: Yongtao Huang <yongtaoh2022@gmail.com>
@hyongtao-code hyongtao-code marked this pull request as draft January 4, 2026 03:17
@hyongtao-code hyongtao-code changed the title gh-143405: Fix inverted only_active_thread mapping for all_threads gh-143405: Fix free-threaded build detection for Py_GIL_DISABLED Jan 4, 2026
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.

1 participant