_remote_debugging 在自由线程构建中增长后会保留过时的 TLBC 数组
作者: liuzhijie-0614创建于 2026年9月17日更新于 2026年9月17日
标签type-bugextension-modulestopic-free-threadingtopic-profiling
Save as repro_tlbc_simple.py and run with a free-threaded build containing _remote_debugging:
./Python -X gil=0 repro_tlbc_simple.py
All 18 worker threads are created before sampling begins. The first worker executes leaf; the last worker waits for a signal before entering the same function. No target threads are created or destroyed between the three sampling phases. The sampler is the target's parent.
内容来源: python/cpython